Hello Daniel,
Increase burst value or simple don''t set it,
htb calculate it for you.
Wednesday, August 14, 2002, 3:56:29 PM, you wrote:
DS> With the following setup I can get maxim of 4Mbit bandwidth when
DS> downloading to ip dst 10.0.0.1. When I remove the shapers it works at
DS> full 100Mbit.
DS> What could be the problem?
DS> tc -s -d class ls dev eth0
DS> class htb 1:1 root rate 100Mbit ceil 100Mbit burst 2031b/8 mpu 0b cburst
DS> 132644b/8 mpu 0b level 7
DS> Sent 30473118 bytes 20564 pkts (dropped 0, overlimits 0)
DS> rate 394194bps 261pps
DS> lended: 0 borrowed: 0 giants: 0
DS> tokens: -155 ctokens: 8009
DS> class htb 1:2 parent 1:1 leaf 10: prio 5 quantum 200000 rate 50Mbit ceil
DS> 50Mbit burst 2Kb/8 mpu 0b cburst 67121b/8 mpu 0b level 0
DS> Sent 30524594 bytes 20598 pkts (dropped 0, overlimits 0)
DS> rate 395529bps 262pps backlog 34p
DS> lended: 20564 borrowed: 0 giants: 0
DS> tokens: -309 ctokens: 7827
DS> class htb 1:3 parent 1:1 leaf 20: prio 5 quantum 1638 rate 128Kbit ceil
DS> 128Kbit burst 2Kb/8 mpu 0b cburst 1762b/8 mpu 0b level 0
DS> Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
DS> lended: 0 borrowed: 0 giants: 0
DS> tokens: 102400 ctokens: 88149
DS> To kernel-2.4.18 I applied the following patches:
DS> htb3.6_2.4.17.diff
DS> imq-2.4.18.diff-10
DS> iptables-1.2.6a-imq
DS> /sbin/tc qdisc del dev eth0 root
DS> /sbin/tc qdisc add dev eth0 root handle 1: htb default 200
DS> /sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb\
DS> rate 100Mbit ceil 100Mbit burst 2k prio 5
DS> /sbin/tc filter add dev eth0 parent 1:0 protocol ip\
DS> prio 5 handle 1: u32 divisor 256
DS> /sbin/tc class add dev eth0 parent 1:1 classid 1:2 htb\
DS> rate 50Mbit ceil 50Mbit burst 2k prio 5
DS> /sbin/tc qdisc add dev eth0 parent 1:2 handle 10: sfq quantum 1514
perturb 10
DS> /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 5 u32 \
DS> match ip dst 10.0.0.1 flowid 1:2
DS> /sbin/tc filter add dev eth0 parent 1:0 prio 5\
DS> handle ::1 u32 ht 800:: match ip nofrag\
DS> offset mask 0x0F00 shift 6\
DS> hashkey mask 0x00ff0000 at 8 link 1:
DS> Daniel Sercaianu
DS> Terranet Virtual Media
DS> sdan@terranet.ro
DS> GSM +40 788 837723
DS> _______________________________________________
DS> LARTC mailing list / LARTC@mailman.ds9a.nl
DS> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
-----------------------------------
mailto:alexey_talikov@texlab.com.uz
BR
Alexey Talikov
FORTEK
-----------------------------------
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/