From: Afanasov Dmitry <ender@altlinux.org> To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] Шейпинг в контейнерах Date: Tue, 27 Apr 2010 01:25:31 +0400 Message-ID: <20100426212528.GA11483@utvuk.ender.rk> (raw) In-Reply-To: <20100426120500.GQ17566@osdn.org.ua> <4BD54ABF.2030907@tversu.ru> [-- Attachment #1: Type: text/plain, Size: 1202 bytes --] On Mon, Apr 26, 2010 at 12:11:43PM +0400, Mike Grozak wrote: > В HN все работает хорошо, но в контейнере любой запуск утилиты tc > возвращает одно и то же: вообще-то не советую. tc прекрасно запускается в вроде работает внутри контейнеров. только это именно вроде - мне htb так и не выдал поведение как в HN. как мне помнится, была проблема с tick'ами - в контейнера они были другие, что сбивало весь отсчет по времени. это было давно, года 4 назад, но столкнувшись с подобным в xen, проведя эксперимент в virtualbox, я всюду получил неадекватное поведение shaper'а (у меня была идея-фикс сделать полноценный виртуальный маршрутизатор). на HN много проще. хотя может что и получится. > [root@vpn01 tc]# /sbin/tc qdisc add dev eth0 root tbf rate 512Kbit latency 50ms burst 10000 > RTNETLINK answers: Invalid argument самый просто вопрос: устройство внутри контейнера называется именно eth0? :) а по идее, для tc необходимо в HN подгрузить необходимые модули как для iptables. к примеру для htb нужен модуль sch_htb. для фильтров, классов тоже отдельные модули. их список можно получить, настроив прмерный конфиг в HN и расчесав lsmod. -- С уважением Афанасов Дмитрий [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2010-04-26 21:25 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-26 8:11 Mike Grozak 2010-04-26 12:05 ` Michael Shigorin 2010-04-26 21:25 ` Afanasov Dmitry [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100426212528.GA11483@utvuk.ender.rk \ --to=ender@altlinux.org \ --cc=sysadmins@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git