* [Sysadmins] htb
@ 2008-01-25 20:15 Anton Gorlov
0 siblings, 0 replies; only message in thread
From: Anton Gorlov @ 2008-01-25 20:15 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Почитал search.altlinux.ru и так понял что cbq скорее мёртв, чем жив.
Убил онного и поставил iproute-htb. Почитал lartc.org и примеры в
/usr/share/doc/iproute-htb-0.8.4
Нарисовалась примерно такая конфигурация:
# cat eth0
DEFAULT=30
R2Q=100
# cat eth0-2.root
# root class containing total bandwidth
RATE=100Mbit
BURST=15k
# cat eth0-2:10.www
# class for outgoing WWW traffic
RATE=1Mbit
BURST=15k
LEAF=sfq
С соседней машинки попробовал качать. Качается, но явно меньше 1 мбита.
всего-то
46.45K/s
если верить wget и прочим качалкам.
Есть у кого идеи?
# /etc/init.d/htb list
### eth0: queueing disciplines
qdisc htb 1: r2q 100 default 30 direct_packets_stat 319
qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec
### eth0: traffic classes
class htb 1:10 parent 1:2 leaf 10: prio 0 rate 1000Kbit ceil 1000Kbit
burst 15Kb cburst 2099b
class htb 1:2 root rate 100000Kbit ceil 100000Kbit burst 15Kb cburst 51599b
### eth0: filtering rules
filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:10
match 00500000/ffff0000 at 20
# /etc/init.d/htb stats
### eth0: queueing disciplines
qdisc htb 1: r2q 100 default 30 direct_packets_stat 342
Sent 4952885 bytes 3583 pkt (dropped 0, overlimits 4838 requeues 0)
rate 0bit 0pps backlog 0b 31p requeues 0
qdisc sfq 10: parent 1:10 limit 128p quantum 1514b perturb 10sec
Sent 4890985 bytes 3241 pkt (dropped 0, overlimits 0 requeues 0)
rate 0bit 0pps backlog 46934b 31p requeues 0
### eth0: traffic classes
class htb 1:10 parent 1:2 leaf 10: prio 0 rate 1000Kbit ceil 1000Kbit
burst 15Kb cburst 2099b
Sent 4898555 bytes 3246 pkt (dropped 0, overlimits 0 requeues 0)
rate 711048bit 58pps backlog 0b 32p requeues 0
lended: 3214 borrowed: 0 giants: 0
tokens: 85074 ctokens: -23552
class htb 1:2 root rate 100000Kbit ceil 100000Kbit burst 15Kb cburst 51599b
Sent 4850107 bytes 3214 pkt (dropped 0, overlimits 0 requeues 0)
rate 719224bit 59pps backlog 0b 0p requeues 0
lended: 0 borrowed: 0 giants: 0
tokens: 1012 ctokens: 3981
### eth0: filtering rules
filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht
800 bkt 0 flowid 1:10 (rule hit 3608 success 3248)
match 00500000/ffff0000 at 20 (success 3248 )
--
np: silence
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-25 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-25 20:15 [Sysadmins] htb Anton Gorlov
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