Skip to contentSkip to conversation

HTB Quatum values

LARTC Damion de Soto 2 participants 2 messages Feb 20, 2004

lore
Share & tools
lore
#0 lore raw

Hi guys,

I've just been playing and reading again, and come to the conclusion that although i've read a lot about quantum (& r2q) settings for the htb qdisc, i still don't understand it.

If the quantum for each class should be as small as possible, but larger than the MTU, then is there any reason I shouldn't always set it to the MTU size ?

If 2 classes are fulfulling their rate and you want them to share unequally, instead of making the quantums different of each one, why not just change the prio ?

regards,

Signature · 11 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     [email protected]
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 9 lines · Damion de Soto

Hi guys,

I've just been playing and reading again, and come to the conclusion that although i've read a lot about quantum (& r2q) settings for the htb qdisc, i still don't understand it.

If the quantum for each class should be as small as possible, but larger than the MTU, then is there any reason I shouldn't always set it to the MTU size ?

Yes. Each class will be able to send quantum bytes. If quantum is too low, the classes are maybe not able to send enough packets because the polling frequency is not high enough.

Quoted 3 lines

If 2 classes are fulfulling their rate and you want them to share unequally, instead of making the quantums different of each one, why not just change the prio ?

The prio does 2 things :
- a low prio class will have low latency if this class is not overlimited,
but if this class is overlimited, the latency can be very high
- a low prio class will have a higher priority to borrow tokens from the
parent class

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/