From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gheorghe Marinca" Date: Sat, 12 Mar 2005 06:06:23 +0000 Subject: [LARTC] What are the proper values for rate/ceil in tc ? Message-Id: <00be01c526c9$e0597c10$90abb451@Ghitza> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1663007209==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============1663007209== Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A8_01C526DA.618FD7B0" This is a multi-part message in MIME format. ------=_NextPart_000_00A8_01C526DA.618FD7B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello! I am using shapping whith htb. My question is what are the propper = values I can use in rate/ceil. I use htb.init for quick building of my = classes/rules and have 2 groups of clients with 2 different bandwidth = assignemet : A. 16--->48kbps B. 16---->128Kbps It seems to work everything OK, but can I use lower values for rate like = 8Kbps ? What about using 32-->96Kbps? I let htb to compute quantum, I = just set R2Q.=20 I also get the following error: itr kernel: HTB: quantum of class 10002 is big. Consider r2q = change.<4>HTB: quantum of class 10010 is big. Consider r2q change Bellow is an exerpt from my coniguration(as produced by htb.init = script): tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1 htb default 99 r2q 1 tc qdisc del dev eth2 root tc qdisc add dev eth2 root handle 1 htb default 99 r2q 1 tc class add dev eth1 parent 1: classid 1:2 htb rate 10Mbit tc class add dev eth1 parent 1:2 classid 1:20 htb rate 768kbit ceil = 796kbit tc class add dev eth1 parent 1:20 classid 1:30 htb rate 612kbit ceil = 712kbit ..... tc class add dev eth1 parent 1:20 classid 1:40 htb rate 156kbit ceil = 224kbit ..... tc class add dev eth2 parent 1:30 classid 1:1099 htb rate 16Kbit ceil = 128Kbit tc qdisc add dev eth2 parent 1:1099 handle 1099 sfq perturb 10 tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip src = xx.xx.xx.xx classid 1:1099 ------=_NextPart_000_00A8_01C526DA.618FD7B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello!
I am using shapping whith htb. My = question is what=20 are the propper values I can use in rate/ceil. I use htb.init for quick = building=20 of my classes/rules and have 2 groups of clients with 2 different = bandwidth=20 assignemet :
  A. 16--->48kbps
  B. = 16---->128Kbps
It seems to work everything OK, but can = I use lower=20 values for rate like 8Kbps ? What about using 32-->96Kbps? I let htb = to=20 compute quantum, I just set R2Q.
 
I also get the following = error:
itr kernel: HTB: quantum of = class 10002 is=20 big. Consider r2q change.<4>HTB: quantum of class 10010 is big. = Consider=20 r2q change
Bellow is an exerpt from my = coniguration(as=20 produced by htb.init script):
 
tc qdisc del dev eth1 root
tc qdisc = add dev eth1=20 root handle 1 htb default 99 r2q 1
tc qdisc del dev eth2 root
tc qdisc = add dev eth2=20 root handle 1 htb default 99 r2q 1
 
tc class add dev eth1 parent 1: classid = 1:2 htb=20 rate 10Mbit
tc class add dev eth1 parent 1:2 = classid 1:20 htb=20 rate 768kbit ceil 796kbit
tc class add dev eth1 parent 1:20 = classid 1:30 htb=20 rate 612kbit ceil=20 712kbit
.....
tc class add dev eth1 parent 1:20 = classid 1:40 htb=20 rate 156kbit ceil 224kbit
 
 
.....
tc class add dev eth2 parent 1:30 = classid 1:1099=20 htb rate 16Kbit ceil 128Kbit
tc qdisc add dev eth2 parent 1:1099 = handle 1099=20 sfq perturb 10
tc filter add dev eth2 parent 1:0 protocol ip prio 100 = u32=20 match ip src xx.xx.xx.xx classid 1:1099
------=_NextPart_000_00A8_01C526DA.618FD7B0-- --===============1663007209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============1663007209==--