Skip to contentSkip to conversation

HTB burst/cburst decremented by one

LARTC DervishD 2 participants 3 messages Dec 14, 2005 – Dec 16, 2005

lore
Share & tools
lore

DervishD

author
#0 lore raw

Hi all :)

If I set the burst/cburst parameter to, let's say, 1500, the
command "tc -s -d class show dev eth0" says that the value is 1499b/8 instead of the (correct?) 1500b/8.

Is this right or am I doing anything wrong?

Many thanks in advance :)

Raúl Núñez de Arenas Coronado

Signature · 7 lines
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#1 lore raw
Quoted 7 lines · DervishD

Hi all :)

If I set the burst/cburst parameter to, let's say, 1500, the
command "tc -s -d class show dev eth0" says that the value is 1499b/8 instead of the (correct?) 1500b/8.

Is this right or am I doing anything wrong?

No, this is related to an integer division loosing precision in some cases. I'm looking into a fix, but it might take a while.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

author
#2 lore raw
In reply to DervishD

Hi Patrick :)

* Patrick McHardy <[email protected]> dixit:

Quoted 9 lines
Quoted 5 lines · DervishD

If I set the burst/cburst parameter to, let's say, 1500, the
command "tc -s -d class show dev eth0" says that the value is 1499b/8 instead of the (correct?) 1500b/8.

Is this right or am I doing anything wrong?

No, this is related to an integer division loosing precision in some cases. I'm looking into a fix, but it might take a while.

OK, thanks a lot :) In the meantime I'll just add "1" by hand to
get the numbers I really want ;)

Raúl Núñez de Arenas Coronado

Signature · 7 lines
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc