Re: [LARTC] How to be decided default burst , cburst value ?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 19 May 2003 05:16, openings wrote:
> Hi.
>
> I know that quantum value is decided by rate/r2q.
>
> but, I don't know how to be decided burst, cburst value.
>
> How to be decided default burst and cburst value?
If you don't specify the burst/cburst on the command line, htb will calculate 
the minimum bandwidth for you.  You can always a bigger value if you want a 
bigger burst/cburst.

From the tc source :

/* compute minimal allowed burst from rate; mtu is added here to make
 sure that buffer is larger than mtu and to have some safeguard space */
if (!buffer) buffer = opt.rate.rate / HZ + mtu;
if (!cbuffer) cbuffer = opt.ceil.rate / HZ + mtu;

So it also depends on your timer resolution (Hz).  The higher the resolution, 
the lower the burst can be.  

Stef

-- 

stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux