* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
@ 2004-04-06 6:33 ` devik
2004-04-06 6:46 ` Michael Vasilenko
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: devik @ 2004-04-06 6:33 UTC (permalink / raw)
To: lartc
> I need to switch from htb2 to htb3, because of speed issues (for me,
> htb2 is unable to handle more then 100mbit duplex with ~550 classes),
> kernel profiling shows htb_dequeue_prio at 1st place with 3x isolation.
>
> So, I've moved from 2.4.19 to 2.4.25 kernel (hi-pac for classification/marking
> and htb3 for queueing), and traffic rate drop from 100 to 20mbit.
>
> What can be wrong? The only change I see is htb2 -> htb3
Hello,
I suppose the drop you see is CPU bound ? Did you profiled it
again ?
Both HTB algorithms are very different so that one can expect
different behavior with different data/rules. But I can admit
that this 5x drop is rather big and unfortunate.
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
2004-04-06 6:33 ` devik
@ 2004-04-06 6:46 ` Michael Vasilenko
2004-04-06 7:15 ` devik
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-06 6:46 UTC (permalink / raw)
To: lartc
devik (devik@cdi.cz) wrote:
> > I need to switch from htb2 to htb3, because of speed issues (for me,
> > htb2 is unable to handle more then 100mbit duplex with ~550 classes),
> > kernel profiling shows htb_dequeue_prio at 1st place with 3x isolation.
> >
> > So, I've moved from 2.4.19 to 2.4.25 kernel (hi-pac for classification/marking
> > and htb3 for queueing), and traffic rate drop from 100 to 20mbit.
> >
> > What can be wrong? The only change I see is htb2 -> htb3
>
> Hello,
>
> I suppose the drop you see is CPU bound ? Did you profiled it
> again ?
No, CPU is about times more in idle state in htb3, and
5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
reason of moving to htb3.
> Both HTB algorithms are very different so that one can expect
> different behavior with different data/rules. But I can admit
> that this 5x drop is rather big and unfortunate.
any ideas?
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
2004-04-06 6:33 ` devik
2004-04-06 6:46 ` Michael Vasilenko
@ 2004-04-06 7:15 ` devik
2004-04-06 11:53 ` Michael Vasilenko
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: devik @ 2004-04-06 7:15 UTC (permalink / raw)
To: lartc
> > I suppose the drop you see is CPU bound ? Did you profiled it
> > again ?
>
> No, CPU is about times more in idle state in htb3, and
> 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> reason of moving to htb3.
ok then it is config issue probably. you should pin it down
to smallest possible number of classes for test (say up to
5 classes) and then use tc -s show class ... to see internal
statistics. Look for classes with small (or negative)
tokens or ctokens - these are in throttling state and are
slowing throughtput - then think if it is ok ..
From data you send one can't decide what's bad. In any case
and as I said before, behavioue changed a bit so that results
can be a bit different a may need tc script changes.
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (2 preceding siblings ...)
2004-04-06 7:15 ` devik
@ 2004-04-06 11:53 ` Michael Vasilenko
2004-04-06 11:55 ` Michael Vasilenko
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-06 11:53 UTC (permalink / raw)
To: lartc
devik (devik@cdi.cz) wrote:
> > > I suppose the drop you see is CPU bound ? Did you profiled it
> > > again ?
> >
> > No, CPU is about times more in idle state in htb3, and
> > 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> > reason of moving to htb3.
>
> ok then it is config issue probably. you should pin it down
> to smallest possible number of classes for test (say up to
> 5 classes) and then use tc -s show class ... to see internal
> statistics. Look for classes with small (or negative)
> tokens or ctokens - these are in throttling state and are
> slowing throughtput - then think if it is ok ..
ok
I'm creating root with 200Mbit
and parent with 10Mbit/1Mbit
class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 131072 rate 10Mbit ceil 12Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
Sent 25443954 bytes 17155 pkts (dropped 0, overlimits 0)
rate 143050bps 97pps backlog 25p
lended: 17130 borrowed: 0 giants: 0
tokens: 335 ctokens: -787
class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
rate 2723bps 49pps
lended: 0 borrowed: 0 giants: 0
tokens: 8241 ctokens: 8241
class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
Sent 25406104 bytes 17130 pkts (dropped 0, overlimits 0)
rate 144147bps 98pps
lended: 0 borrowed: 0 giants: 0
tokens: 8195 ctokens: 8195
class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 13107 rate 1Mbit ceil 1Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
rate 2739bps 49pps
lended: 8712 borrowed: 0 giants: 0
tokens: 12501 ctokens: -294
so, rate is 1,2Mbit
and what is meaning of negative ctokens?
> >From data you send one can't decide what's bad. In any case
> and as I said before, behavioue changed a bit so that results
> can be a bit different a may need tc script changes.
>
> devik
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (3 preceding siblings ...)
2004-04-06 11:53 ` Michael Vasilenko
@ 2004-04-06 11:55 ` Michael Vasilenko
2004-04-06 12:02 ` devik
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-06 11:55 UTC (permalink / raw)
To: lartc
Michael Vasilenko (acid@dg.net.ua) wrote:
> devik (devik@cdi.cz) wrote:
> > > > I suppose the drop you see is CPU bound ? Did you profiled it
> > > > again ?
> > >
> > > No, CPU is about times more in idle state in htb3, and
> > > 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> > > reason of moving to htb3.
> >
> > ok then it is config issue probably. you should pin it down
> > to smallest possible number of classes for test (say up to
> > 5 classes) and then use tc -s show class ... to see internal
> > statistics. Look for classes with small (or negative)
> > tokens or ctokens - these are in throttling state and are
> > slowing throughtput - then think if it is ok ..
>
> ok
> I'm creating root with 200Mbit
> and parent with 10Mbit/1Mbit
and qdisc stats (I have sfq attached to each leaf htb class):
qdisc sfq 5500: quantum 1514b limit 128p flows 128/1024 perturb 5sec
Sent 52611108 bytes 35988 pkts (dropped 0, overlimits 0)
backlog 22p
qdisc sfq 3500: quantum 1514b limit 128p flows 128/1024 perturb 5sec
Sent 1004864 bytes 18073 pkts (dropped 0, overlimits 0)
qdisc htb 1: r2q 10 default 2500 direct_packets_stat 130 ver 3.13
Sent 53627322 bytes 54191 pkts (dropped 0, overlimits 89908)
backlog 22p
> class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 131072 rate 10Mbit ceil 12Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 25443954 bytes 17155 pkts (dropped 0, overlimits 0)
> rate 143050bps 97pps backlog 25p
> lended: 17130 borrowed: 0 giants: 0
> tokens: 335 ctokens: -787
>
> class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> rate 2723bps 49pps
> lended: 0 borrowed: 0 giants: 0
> tokens: 8241 ctokens: 8241
>
> class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> Sent 25406104 bytes 17130 pkts (dropped 0, overlimits 0)
> rate 144147bps 98pps
> lended: 0 borrowed: 0 giants: 0
> tokens: 8195 ctokens: 8195
>
> class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 13107 rate 1Mbit ceil 1Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> rate 2739bps 49pps
> lended: 8712 borrowed: 0 giants: 0
> tokens: 12501 ctokens: -294
>
>
> so, rate is 1,2Mbit
> and what is meaning of negative ctokens?
>
> > >From data you send one can't decide what's bad. In any case
> > and as I said before, behavioue changed a bit so that results
> > can be a bit different a may need tc script changes.
> >
> > devik
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> --
> Michael Vasilenko
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (4 preceding siblings ...)
2004-04-06 11:55 ` Michael Vasilenko
@ 2004-04-06 12:02 ` devik
2004-04-06 12:56 ` Michael Vasilenko
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: devik @ 2004-04-06 12:02 UTC (permalink / raw)
To: lartc
I see you have cburst 0 ! It is not allowed
and is described in docs. What was commands to
create the classes ?
-------------------------------
Martin Devera aka devik
Linux kernel QoS/HTB maintainer
http://luxik.cdi.cz/~devik/
On Tue, 6 Apr 2004, Michael Vasilenko wrote:
> devik (devik@cdi.cz) wrote:
> > > > I suppose the drop you see is CPU bound ? Did you profiled it
> > > > again ?
> > >
> > > No, CPU is about times more in idle state in htb3, and
> > > 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> > > reason of moving to htb3.
> >
> > ok then it is config issue probably. you should pin it down
> > to smallest possible number of classes for test (say up to
> > 5 classes) and then use tc -s show class ... to see internal
> > statistics. Look for classes with small (or negative)
> > tokens or ctokens - these are in throttling state and are
> > slowing throughtput - then think if it is ok ..
>
> ok
> I'm creating root with 200Mbit
> and parent with 10Mbit/1Mbit
>
>
> class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 131072 rate 10Mbit ceil 12Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 25443954 bytes 17155 pkts (dropped 0, overlimits 0)
> rate 143050bps 97pps backlog 25p
> lended: 17130 borrowed: 0 giants: 0
> tokens: 335 ctokens: -787
>
> class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> rate 2723bps 49pps
> lended: 0 borrowed: 0 giants: 0
> tokens: 8241 ctokens: 8241
>
> class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> Sent 25406104 bytes 17130 pkts (dropped 0, overlimits 0)
> rate 144147bps 98pps
> lended: 0 borrowed: 0 giants: 0
> tokens: 8195 ctokens: 8195
>
> class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 13107 rate 1Mbit ceil 1Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> rate 2739bps 49pps
> lended: 8712 borrowed: 0 giants: 0
> tokens: 12501 ctokens: -294
>
>
> so, rate is 1,2Mbit
> and what is meaning of negative ctokens?
>
> > >From data you send one can't decide what's bad. In any case
> > and as I said before, behavioue changed a bit so that results
> > can be a bit different a may need tc script changes.
> >
> > devik
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> --
> Michael Vasilenko
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (5 preceding siblings ...)
2004-04-06 12:02 ` devik
@ 2004-04-06 12:56 ` Michael Vasilenko
2004-04-06 13:06 ` devik
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-06 12:56 UTC (permalink / raw)
To: lartc
devik (devik@cdi.cz) wrote:
> I see you have cburst 0 ! It is not allowed
> and is described in docs. What was commands to
> create the classes ?
/sbin/tc.3 qdisc add dev eth0 root handle 1:0 htb default 2500 r2q 100
/sbin/tc.3 class add dev eth0 parent 1:0 classid 1:1 htb rate 200mbit ceil 200mbit quantum 200000
/sbin/tc.3 class add dev eth0 parent 1:0 classid 1:2 htb rate 200mbit ceil 200mbit quantum 200000
/sbin/tc.3 class add dev eth0 parent 1:1 classid 1:3500 htb rate 10Mbit ceil 10Mbit burst 2048b cburst 1
/sbin/tc.3 qdisc add dev eth0 parent 1:3500 handle 3500: sfq perturb 5
/sbin/tc.3 class add dev eth0 parent 1:2 classid 1:5500 htb rate 20Mbit ceil 20Mbit burst 2048b cburst 1 quantum 60000
/sbin/tc.3 qdisc add dev eth0 parent 1:5500 handle 5500: sfq perturb 5
/sbin/tc.3 filter add dev eth0 parent 1:0 protocol ip prio 50 handle 3500 fw classid 1:3500
/sbin/tc.3 filter add dev eth0 parent 1:0 protocol ip prio 50 handle 5500 fw classid 1:5500
tc.3 -V
tc utility, iproute2-ss020116
> On Tue, 6 Apr 2004, Michael Vasilenko wrote:
>
> > devik (devik@cdi.cz) wrote:
> > > > > I suppose the drop you see is CPU bound ? Did you profiled it
> > > > > again ?
> > > >
> > > > No, CPU is about times more in idle state in htb3, and
> > > > 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> > > > reason of moving to htb3.
> > >
> > > ok then it is config issue probably. you should pin it down
> > > to smallest possible number of classes for test (say up to
> > > 5 classes) and then use tc -s show class ... to see internal
> > > statistics. Look for classes with small (or negative)
> > > tokens or ctokens - these are in throttling state and are
> > > slowing throughtput - then think if it is ok ..
> >
> > ok
> > I'm creating root with 200Mbit
> > and parent with 10Mbit/1Mbit
> >
> >
> > class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 131072 rate 10Mbit ceil 12Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> > Sent 25443954 bytes 17155 pkts (dropped 0, overlimits 0)
> > rate 143050bps 97pps backlog 25p
> > lended: 17130 borrowed: 0 giants: 0
> > tokens: 335 ctokens: -787
> >
> > class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> > Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> > rate 2723bps 49pps
> > lended: 0 borrowed: 0 giants: 0
> > tokens: 8241 ctokens: 8241
> >
> > class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> > Sent 25406104 bytes 17130 pkts (dropped 0, overlimits 0)
> > rate 144147bps 98pps
> > lended: 0 borrowed: 0 giants: 0
> > tokens: 8195 ctokens: 8195
> >
> > class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 13107 rate 1Mbit ceil 1Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> > Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> > rate 2739bps 49pps
> > lended: 8712 borrowed: 0 giants: 0
> > tokens: 12501 ctokens: -294
> >
> >
> > so, rate is 1,2Mbit
> > and what is meaning of negative ctokens?
> >
> > > >From data you send one can't decide what's bad. In any case
> > > and as I said before, behavioue changed a bit so that results
> > > can be a bit different a may need tc script changes.
> > >
> > > devik
> > >
> > > _______________________________________________
> > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> >
> > --
> > Michael Vasilenko
> >
> >
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (6 preceding siblings ...)
2004-04-06 12:56 ` Michael Vasilenko
@ 2004-04-06 13:06 ` devik
2004-04-06 13:27 ` Michael Vasilenko
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: devik @ 2004-04-06 13:06 UTC (permalink / raw)
To: lartc
remove cburst 1
-------------------------------
Martin Devera aka devik
Linux kernel QoS/HTB maintainer
http://luxik.cdi.cz/~devik/
On Tue, 6 Apr 2004, Michael Vasilenko wrote:
> devik (devik@cdi.cz) wrote:
> > I see you have cburst 0 ! It is not allowed
> > and is described in docs. What was commands to
> > create the classes ?
>
>
> /sbin/tc.3 qdisc add dev eth0 root handle 1:0 htb default 2500 r2q 100
> /sbin/tc.3 class add dev eth0 parent 1:0 classid 1:1 htb rate 200mbit ceil 200mbit quantum 200000
> /sbin/tc.3 class add dev eth0 parent 1:0 classid 1:2 htb rate 200mbit ceil 200mbit quantum 200000
> /sbin/tc.3 class add dev eth0 parent 1:1 classid 1:3500 htb rate 10Mbit ceil 10Mbit burst 2048b cburst 1
> /sbin/tc.3 qdisc add dev eth0 parent 1:3500 handle 3500: sfq perturb 5
> /sbin/tc.3 class add dev eth0 parent 1:2 classid 1:5500 htb rate 20Mbit ceil 20Mbit burst 2048b cburst 1 quantum 60000
> /sbin/tc.3 qdisc add dev eth0 parent 1:5500 handle 5500: sfq perturb 5
> /sbin/tc.3 filter add dev eth0 parent 1:0 protocol ip prio 50 handle 3500 fw classid 1:3500
> /sbin/tc.3 filter add dev eth0 parent 1:0 protocol ip prio 50 handle 5500 fw classid 1:5500
>
>
>
> tc.3 -V
> tc utility, iproute2-ss020116
>
> > On Tue, 6 Apr 2004, Michael Vasilenko wrote:
> >
> > > devik (devik@cdi.cz) wrote:
> > > > > > I suppose the drop you see is CPU bound ? Did you profiled it
> > > > > > again ?
> > > > >
> > > > > No, CPU is about times more in idle state in htb3, and
> > > > > 5x lowest data rate. AFAIK, htb3 scheduler is faster, so that is the
> > > > > reason of moving to htb3.
> > > >
> > > > ok then it is config issue probably. you should pin it down
> > > > to smallest possible number of classes for test (say up to
> > > > 5 classes) and then use tc -s show class ... to see internal
> > > > statistics. Look for classes with small (or negative)
> > > > tokens or ctokens - these are in throttling state and are
> > > > slowing throughtput - then think if it is ok ..
> > >
> > > ok
> > > I'm creating root with 200Mbit
> > > and parent with 10Mbit/1Mbit
> > >
> > >
> > > class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 131072 rate 10Mbit ceil 12Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> > > Sent 25443954 bytes 17155 pkts (dropped 0, overlimits 0)
> > > rate 143050bps 97pps backlog 25p
> > > lended: 17130 borrowed: 0 giants: 0
> > > tokens: 335 ctokens: -787
> > >
> > > class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> > > Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> > > rate 2723bps 49pps
> > > lended: 0 borrowed: 0 giants: 0
> > > tokens: 8241 ctokens: 8241
> > >
> > > class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
> > > Sent 25406104 bytes 17130 pkts (dropped 0, overlimits 0)
> > > rate 144147bps 98pps
> > > lended: 0 borrowed: 0 giants: 0
> > > tokens: 8195 ctokens: 8195
> > >
> > > class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 13107 rate 1Mbit ceil 1Mbit burst 2Kb/8 mpu 0b cburst 0b/8 mpu 0b level 0
> > > Sent 482570 bytes 8712 pkts (dropped 0, overlimits 0)
> > > rate 2739bps 49pps
> > > lended: 8712 borrowed: 0 giants: 0
> > > tokens: 12501 ctokens: -294
> > >
> > >
> > > so, rate is 1,2Mbit
> > > and what is meaning of negative ctokens?
> > >
> > > > >From data you send one can't decide what's bad. In any case
> > > > and as I said before, behavioue changed a bit so that results
> > > > can be a bit different a may need tc script changes.
> > > >
> > > > devik
> > > >
> > > > _______________________________________________
> > > > LARTC mailing list / LARTC@mailman.ds9a.nl
> > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> > >
> > > --
> > > Michael Vasilenko
> > >
> > >
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> --
> Michael Vasilenko
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (7 preceding siblings ...)
2004-04-06 13:06 ` devik
@ 2004-04-06 13:27 ` Michael Vasilenko
2004-04-07 5:51 ` Martin Devera
2004-04-07 10:13 ` Michael Vasilenko
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-06 13:27 UTC (permalink / raw)
To: lartc
devik (devik@cdi.cz) wrote:
> remove cburst 1
thanks!
class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 65536 rate 5Mbit ceil 5Mbit burst 20Kb/8 mpu 0b cburst 8151b/8 mpu 0b level 0
Sent 45107618 bytes 42138 pkts (dropped 0, overlimits 0)
rate 608617bps 548pps backlog 40p
lended: 42098 borrowed: 0 giants: 0
tokens: 3908 ctokens: -11502
class htb 1:1 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
Sent 369059 bytes 6711 pkts (dropped 0, overlimits 0)
rate 5706bps 104pps
lended: 0 borrowed: 0 giants: 0
tokens: 8241 ctokens: 8241
class htb 1:2 root rate 200Mbit ceil 200Mbit burst 263690b/8 mpu 0b cburst 263690b/8 mpu 0b level 7
Sent 45055458 bytes 42098 pkts (dropped 0, overlimits 0)
rate 613755bps 549pps
lended: 0 borrowed: 0 giants: 0
tokens: 7822 ctokens: 7822
class htb 1:3500 parent 1:1 leaf 3500: prio 0 quantum 131072 rate 10Mbit ceil 10Mbit burst 20Kb/8 mpu 0b cburst 14704b/8 mpu 0b level 0
Sent 369059 bytes 6711 pkts (dropped 0, overlimits 0)
rate 5833bps 106pps
lended: 6711 borrowed: 0 giants: 0
tokens: 12713 ctokens: 9104
but I see only 330Kbytes/sec flow (half of 5Mbit rate)
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (8 preceding siblings ...)
2004-04-06 13:27 ` Michael Vasilenko
@ 2004-04-07 5:51 ` Martin Devera
2004-04-07 10:13 ` Michael Vasilenko
10 siblings, 0 replies; 12+ messages in thread
From: Martin Devera @ 2004-04-07 5:51 UTC (permalink / raw)
To: lartc
> > remove cburst 1
>
> thanks!
>
> class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 65536 rate 5Mbit
> ceil 5Mbit burst 20Kb/8 mpu 0b cburst 8151b/8 mpu 0b level 0
> Sent 45107618 bytes 42138 pkts (dropped 0, overlimits 0)
> rate 608617bps 548pps backlog 40p
> lended: 42098 borrowed: 0 giants: 0
> tokens: 3908 ctokens: -11502
>
> but I see only 330Kbytes/sec flow (half of 5Mbit rate)
From above I see rate 608617bps = 4.7MBit. Probably it will settle down
after some while. I suspect there is problem in your way of measuring the
rate. Also you can deliberately increase (c)burst to more than default,
say to 20kB - the larger the burst it the more insensitive to CPU load
it is ...
devik
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] htb2 -> htb3 problems
2004-04-06 6:16 [LARTC] htb2 -> htb3 problems Michael Vasilenko
` (9 preceding siblings ...)
2004-04-07 5:51 ` Martin Devera
@ 2004-04-07 10:13 ` Michael Vasilenko
10 siblings, 0 replies; 12+ messages in thread
From: Michael Vasilenko @ 2004-04-07 10:13 UTC (permalink / raw)
To: lartc
Martin Devera (devik@cdi.cz) wrote:
> > > remove cburst 1
> >
> > thanks!
> >
> > class htb 1:5500 parent 1:2 leaf 5500: prio 0 quantum 65536 rate 5Mbit
> > ceil 5Mbit burst 20Kb/8 mpu 0b cburst 8151b/8 mpu 0b level 0
> > Sent 45107618 bytes 42138 pkts (dropped 0, overlimits 0)
> > rate 608617bps 548pps backlog 40p
> > lended: 42098 borrowed: 0 giants: 0
> > tokens: 3908 ctokens: -11502
> >
> > but I see only 330Kbytes/sec flow (half of 5Mbit rate)
>
> >From above I see rate 608617bps = 4.7MBit. Probably it will settle down
> after some while. I suspect there is problem in your way of measuring the
> rate. Also you can deliberately increase (c)burst to more than default,
> say to 20kB - the larger the burst it the more insensitive to CPU load
> it is ...
OK, I removed all manual settings of burst/cburst, and it works just
fine. htb3 rocks! 30%/90% CPU Usage on 80Mbit stream with >500 classes
on htb3/htb2 (P4 2Ghz, 2.4.25 kernel with APIC, e1000 NIC)
--
Michael Vasilenko
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread