* [LARTC] HTB3 big problem
@ 2002-08-14 10:56 Daniel Sercaianu
2002-08-14 12:41 ` Alexey Talikov
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Sercaianu @ 2002-08-14 10:56 UTC (permalink / raw)
To: lartc
With the following setup I can get maxim of 4Mbit bandwidth when
downloading to ip dst 10.0.0.1. When I remove the shapers it works at
full 100Mbit.
What could be the problem?
tc -s -d class ls dev eth0
class htb 1:1 root rate 100Mbit ceil 100Mbit burst 2031b/8 mpu 0b cburst
132644b/8 mpu 0b level 7
Sent 30473118 bytes 20564 pkts (dropped 0, overlimits 0)
rate 394194bps 261pps
lended: 0 borrowed: 0 giants: 0
tokens: -155 ctokens: 8009
class htb 1:2 parent 1:1 leaf 10: prio 5 quantum 200000 rate 50Mbit ceil
50Mbit burst 2Kb/8 mpu 0b cburst 67121b/8 mpu 0b level 0
Sent 30524594 bytes 20598 pkts (dropped 0, overlimits 0)
rate 395529bps 262pps backlog 34p
lended: 20564 borrowed: 0 giants: 0
tokens: -309 ctokens: 7827
class htb 1:3 parent 1:1 leaf 20: prio 5 quantum 1638 rate 128Kbit ceil
128Kbit burst 2Kb/8 mpu 0b cburst 1762b/8 mpu 0b level 0
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
lended: 0 borrowed: 0 giants: 0
tokens: 102400 ctokens: 88149
To kernel-2.4.18 I applied the following patches:
htb3.6_2.4.17.diff
imq-2.4.18.diff-10
iptables-1.2.6a-imq
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1: htb default 200
/sbin/tc class add dev eth0 parent 1:0 classid 1:1 htb\
rate 100Mbit ceil 100Mbit burst 2k prio 5
/sbin/tc filter add dev eth0 parent 1:0 protocol ip\
prio 5 handle 1: u32 divisor 256
/sbin/tc class add dev eth0 parent 1:1 classid 1:2 htb\
rate 50Mbit ceil 50Mbit burst 2k prio 5
/sbin/tc qdisc add dev eth0 parent 1:2 handle 10: sfq quantum 1514 perturb 10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 5 u32 \
match ip dst 10.0.0.1 flowid 1:2
/sbin/tc filter add dev eth0 parent 1:0 prio 5\
handle ::1 u32 ht 800:: match ip nofrag\
offset mask 0x0F00 shift 6\
hashkey mask 0x00ff0000 at 8 link 1:
Daniel Sercaianu
Terranet Virtual Media
sdan@terranet.ro
GSM +40 788 837723
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] HTB3 big problem
2002-08-14 10:56 [LARTC] HTB3 big problem Daniel Sercaianu
@ 2002-08-14 12:41 ` Alexey Talikov
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Talikov @ 2002-08-14 12:41 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-14 12:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-14 10:56 [LARTC] HTB3 big problem Daniel Sercaianu
2002-08-14 12:41 ` Alexey Talikov
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.