From: Afanasov Dmitry <ender@atrus.ru>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] shaping inside Openvz VPS
Date: Tue, 22 Jan 2008 18:48:45 +0000
Message-ID: <20080122184845.GF7348@utvuk.orbita> (raw)
[-- Attachment #1: Type: text/plain, Size: 2012 bytes --]
здравствуйте все. более года я тут не появлялся, так что не пинайтие, если
что пропустил :) да и google на данную тему мало что говорит.
ситуация: в машину воткнуто три сетевухи - inet (dsl0), локалка по району (un0),
домашняя локалка (hm0, типа home). моя машине находится со стороны hm0,
машина брата - un0. оба лезут в инет через dsl0.
задача: поднять shaper так на un0 и hm0 да так, чтобы он функционировал
как на одном. как я поиска подобное решает imq, но тут я придумал
поинтересней.
в итоге: поднят VPS, куда прокинул dsl0. создал veth, связывающий VPS и
HN.
картинка:
: un0
tc /
dsl0 :VPS: eth0 --> gw0 :HN:
\
: hm0
теперь через htb можно красиво шейперить на девайсе eth0 внтури tc. вроде
бы можно.
результат: недавно ни с того ни с сего вся машина стала, если можно так
выразится, "залипать" - на пинги отвечает с перерывами, samba выдает
данные также с перерывами, по ssh доступ хуже чем на модеме с 28kbps.
внтури HN top показывает, что простой ssh ест порядка 30% проца, samba
тоже где-то 30, и скриптик мой через LWP по инету бродящий ест те же 30%.
удаление qdisc с eth внутри VPS решает проблему.
добавляние qdisc и классов вида:
tc qdisc add dev eth0 handle 1: root htb default 1
tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit
дает интересную вещь: при подключении на VPS по ssh в класее 1:1 пакеты
начинают дропаться. если rate 1000Mbit воткнуть вроде жить можно. но такой
же эффект достигается через ping -f - вместо шейпинга получаем дроп. хотя
iftop показывает, что icmp поток не более 20Mbit/sec. HN слава богу живет.
если оставить tc qdisc без классов (выполняется только одна команда), то
через дня два машина опять "залипла". вместе с HN.
что за ересь - понять не могу. единственное похоже нашел
http://forum.openvz.org/index.php?t=msg&goto=16281
да не помогло.
--
С уважением
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next reply other threads:[~2008-01-22 18:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-22 18:48 Afanasov Dmitry [this message]
2008-01-23 5:27 ` Vladimir V. Kamarzin
2008-01-23 8:16 ` Afanasov Dmitry
2008-01-23 9:41 ` Afanasov Dmitry
2008-01-28 6:19 ` Vladimir V. Kamarzin
2008-01-28 6:58 ` Afanasov Dmitry
2008-01-28 10:40 ` Vladimir V. Kamarzin
2008-01-23 7:24 ` Serg Rychka
2008-01-23 9:52 ` Afanasov Dmitry
2008-01-23 15:35 ` Serg Rychka
2008-01-23 18:40 ` Afanasov Dmitry
2008-01-24 7:43 ` Serg Rychka
2008-01-24 8:03 ` ahtoh
2008-01-24 13:34 ` Serg Rychka
2008-01-24 8:06 ` ahtoh
2008-01-24 8:20 ` Konstantin A. Lepikhov
2008-01-24 9:41 ` ahtoh
2008-01-24 22:06 ` Afanasov Dmitry
2008-01-25 21:09 ` Afanasov Dmitry
2008-01-28 7:38 ` Serg Rychka
2008-01-28 20:48 ` Afanasov Dmitry
2008-01-29 7:23 ` Serg Rychka
2008-01-29 17:46 ` Afanasov Dmitry
2008-01-30 9:19 ` Serg Rychka
2008-01-30 17:33 ` Afanasov Dmitry
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=20080122184845.GF7348@utvuk.orbita \
--to=ender@atrus.ru \
--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