All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] problem with htb rates | small rates question
@ 2003-07-15 13:18 Arkadiusz Miskiewicz
  2003-07-15 16:54 ` Atahualpa Jones
  2003-07-16 19:06 ` Arkadiusz Miskiewicz
  0 siblings, 2 replies; 3+ messages in thread
From: Arkadiusz Miskiewicz @ 2003-07-15 13:18 UTC (permalink / raw)
  To: lartc

Hi,

I'm using 2.4.20 kernel with htb updated to match htb from 2.4.21 +
patches on devik's page.

My setup is simple:
192.168.0.134(LAN machine)--eth0-linuxRT-ppp0 (adsl, pppoe involved)
192.168.0.234(LAN machine)+

tc qdisc add dev eth0 root handle 1:0 htb default 22 r2q 1
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 506kbit ceil 506kbit quantum 10000
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 98494kbit ceil 98494kbit prio 9
tc qdisc add dev eth0 parent 1:3 sfq perturb 10

tc class add dev eth0 parent 1:2 classid 1:21 htb rate 128kbit ceil 506kbit prio 2 quantum 1000
tc qdisc add dev eth0 parent 1:21 sfq perturb 10
tc filter add dev eth0 protocol ip parent 1:0 u32 match ip dst 192.168.0.134 flowid 1:21

tc class add dev eth0 parent 1:2 classid 1:22 htb rate 384kbit ceil 506kbit prio 2 quantum 1000
tc qdisc add dev eth0 parent 1:22 sfq perturb 10

Wihtout any qdisc on eth0 I'm able to download (lftp on .134 machine)
from some host in internet with about 55 kbyte/s speed.

After setting htb as described above when downloading something from my
linuxRT .134 machine gets whole bandwidtch. When I start downloading
something from linuxRT at that time to machine .234 bandwidtch is
distributed between these machines correctly (.134 gets 13Kbyte/s
and .234 gets 43 Kbyte/s). So far everything ok.

Stats for this:
[root@router root]# tc -s class show dev eth0
class htb 1:22 parent 1:2 leaf 8023: prio 2 rate 384Kbit ceil 506Kbit
burst 2090b cburst 2246b
 Sent 8308169 bytes 5829 pkts (dropped 0, overlimits 0)
 rate 49167bps 34pps backlog 12p
 lended: 5817 borrowed: 0 giants: 0
 tokens: -44078 ctokens: -9826

class htb 1:2 root rate 506Kbit ceil 506Kbit burst 2246b cburst 2246b
 Sent 11417717 bytes 8765 pkts (dropped 0, overlimits 0)
 rate 65549bps 51pps
 lended: 168 borrowed: 0 giants: 0
 tokens: -1715862 ctokens: -1715862

class htb 1:3 root leaf 8021: prio 7 rate 98494Kbit ceil 98494Kbit burst
127648b cburst 127648b
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 8295 ctokens: 8295

class htb 1:21 parent 1:2 leaf 8022: prio 2 rate 128Kbit ceil 506Kbit
burst 1762b cburst 2246b
 Sent 3159260 bytes 2976 pkts (dropped 0, overlimits 0)
 rate 16368bps 17pps backlog 28p
 lended: 2780 borrowed: 168 giants: 0
 tokens: -157002 ctokens: -11444


Same test but downloading from some internet machine.
no qdisc on eth0, inet->.134 download with 55 Kbyte/s speed
added qdisc as above, inet->.134 with ~20 Kbyte/s (if I remove
qdisc then I get back about 55 Kbyte/s)
added qdisc, .134 is downloading already, .234 starts downloading
and both are downloading with almost same speed 12-17 Kbyte/s

[root@router root]# tc -s class show dev eth0
class htb 1:22 parent 1:2 leaf 8026: prio 2 rate 384Kbit ceil 506Kbit
burst 2090b cburst 2246b
 Sent 4365142 bytes 3520 pkts (dropped 0, overlimits 0)
 rate 19243bps 14pps
 lended: 3207 borrowed: 313 giants: 0
 tokens: 19650 ctokens: 16885

class htb 1:2 root rate 506Kbit ceil 506Kbit burst 2246b cburst 2246b
 Sent 9911365 bytes 9904 pkts (dropped 0, overlimits 0)
 rate 32818bps 31pps
 lended: 3470 borrowed: 0 giants: 0
 tokens: 27004 ctokens: 27004

class htb 1:3 root leaf 8024: prio 7 rate 98494Kbit ceil 98494Kbit burst
127648b cburst 127648b
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
 lended: 0 borrowed: 0 giants: 0
 tokens: 8295 ctokens: 8295

class htb 1:21 parent 1:2 leaf 8025: prio 2 rate 128Kbit ceil 506Kbit
burst 1762b cburst 2246b
 Sent 5546223 bytes 6384 pkts (dropped 0, overlimits 0)
 rate 12899bps 17pps
 lended: 3227 borrowed: 3157 giants: 0
 tokens: 82550 ctokens: 27004


What is going on here? :/


Also what's better for really small rates like 1kbit, 5kbit? cbq or htb?
-- 
Arkadiusz Mi¶kiewicz     CS at FoE, Wroclaw University of Technology
arekmatssedotpl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-16 19:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-15 13:18 [LARTC] problem with htb rates | small rates question Arkadiusz Miskiewicz
2003-07-15 16:54 ` Atahualpa Jones
2003-07-16 19:06 ` Arkadiusz Miskiewicz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.