From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nai-Hsien" Date: Tue, 01 Nov 2005 10:21:25 +0000 Subject: [LARTC] PowerPC can not accurately run HTM Message-Id: <014501c5dece$0376be30$0102000a@loop.com.tw> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============1041075271==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============1041075271== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0142_01C5DF11.117FBF70" This is a multi-part message in MIME format. ------=_NextPart_000_0142_01C5DF11.117FBF70 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable I am running HTB on a PowerPC platform and using following script to do = rate limit. When I set rate of class 1:11 lower than 4mbit, I can get traffic rate = close to the setting. However, if I set the rate higher than 4mbit, I will get much lower bandwidth (roughly 4.5mbit) than the setting, no matter how big = the setting is. To verify the script, I run it on PC with then I got correct result. Could anybody give me some hints? Thank you Dennis tc qdisc add dev wan1 root handle 1: htb default 10 tc class add dev wan1 parent 1: classid 1:1 htb rate 100mbit tc class add dev wan1 parent 1:1 classid 1:10 htb rate 1mbit ceil 2mbit tc class add dev wan1 parent 1:1 classid 1:11 htb rate 8mbit ceil 8mbit tc filter add dev wan1 protocol ip parent 1: u32 match ip dst 11.1.1.1 = flowid 1:11 ------=_NextPart_000_0142_01C5DF11.117FBF70 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
I am running HTB on a PowerPC = platform and=20 using following script to do rate limit.
When I set rate of class 1:11 lower = than=20 4mbit, I can get traffic rate = close to=20 the setting.
However, if I set the rate higher = than 4mbit,=20 I will get much
lower bandwidth (roughly 4.5mbit) = than the=20 setting, no matter how big the = setting=20 is.
To verify the script, I run it on PC = with then I got correct result.
 
Could anybody give me some = hints?
 
Thank you
Dennis
 
tc qdisc add dev wan1 root handle 1: = htb=20 default 10
tc class add dev wan1 parent 1: classid 1:1 htb rate = 100mbit
tc=20 class add dev wan1 parent 1:1 classid 1:10 htb rate 1mbit ceil = 2mbit
tc class=20 add dev wan1 parent 1:1 classid 1:11 htb rate 8mbit ceil 8mbit
tc = filter add=20 dev wan1 protocol ip parent 1: u32 match ip dst 11.1.1.1 flowid=20 1:11
 
 
------=_NextPart_000_0142_01C5DF11.117FBF70-- --===============1041075271== 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 --===============1041075271==--