Re: Need big buffer!

Linux Advanced Routing and Traffic Control

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings Bob,

 : I've been trying to read up, and still not coming up with 
 : concrete info on queue sizes. Right now, my code for limiting to 
 : 300k is:
 : 
 : tc qdisc add dev eth0 root handle 1: htb default 21
 : tc class add dev eth0 parent 1: classid 1:1 htb rate 300kbit
 : tc class add dev eth0 parent 1:1 classid 1:20 htb prio 0 rate 100kbit
 : tc class add dev eth0 parent 1:1 classid 1:21 htb prio 1 rate 100kbit ceil 300k
 : 
 : ..with some matches for prioritizing other traffic into class 
 : 1:20.
 : 
 : I assume there is something I need to add to the first line, but 
 : everything I've read about never mentions htb.

Here are pointers to HTB documentation that I have written [0], and, 
of course, the author's own documentation [1].  Stef Coene, who used 
to be extraordinarily active on this list has some useful (if not 
currently maintained) documentation at [2].  See also Leonardo 
Balliache's thorough examination of traffic control under Linux [3].

As I see it, your problem is not that you haven't found the right 
HTB setting, but rather that you haven't embedded a (b)FIFO in the 
right place.

Try adding a fifo of the appropriate size (in bytes) to the class 
which is handling your bursty traffic.  This FIFO will hold your 
queued packets while HTB dequeues them at the ceil rate.  Trial and 
error will probably help you determine the optimal depth of the FIFO 
for your purposes.

   tc qdisc add dev eth0 parent 1:21 bfifo limit 256000

Best of luck,

- -Martin

 [0] 
 [1] http://luxik.cdi.cz/~devik/qos/htb/
 [2] http://www.docum.org/docum.org/
 [3] http://www.opalsoft.net/qos/DS-28.htm

- -- 
Martin A. Brown
http://linux-ip.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: pgf-0.72 (http://linux-ip.net/sw/pine-gpg-filter/)

iD8DBQFFzJqeHEoZD1iZ+YcRAvFyAJ9ARFRk02h1tY0COJnHvEvHs1HkwgCgpQwF
9AWk9kTyPSGmdxPtFYpFpGg=
=Y0gF
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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