Re: CBQ.init

Linux Advanced Routing and Traffic Control

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

 



>So I set CBQ.init following like this.
>
>/etc/rc.d/CBQ.init
>DEVICE=eth0,100Mbit,10Mbit
>RATE=10Mbit
>WEIGHT=1Mbit
>PRIO=5
>
>When I set RATE=6Mbit,I can limit bandwidth 6Mbps.
>But I set RATE=7Mbit,8Mbit,...
>     I can limit bandwidth only 6.95Mbps everytime.
>Why?

watch your default tbf settings!

----from cbq.init begin----
# BUFFER=<bytes>[/<bytes>]                      optional, default "10Kb/8"
#
#       This parameter controls the depth of the token bucket. In other
#       words it represents the maximal burst size the class can send.
#       The optional part of parameter is used to determine the length
#       of intervals in packet sizes, for which the transmission times
#       are kept.
-----from cbq.init end-----

>Could you tell me how to limit bandwidth more than 7Mbps.
Try BUFFER=100Kb/8.

-- 
Catalin Petrescu <taz at dntis dot ro>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CC/IT/S/MU d- s+: a- C++ ULAS++++$ P+>+++ L+++ E- W+ N+ o? K?
w-- O-- M- V? PS+ PE Y PGP+>++ t 5? X+ R? tv--() b+>++ DI++ D+ G
e++ h* r-- y? 
------END GEEK CODE BLOCK------

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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