From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bugzilla-Redirect Date: Wed, 13 Sep 2006 04:59:39 +0000 Subject: [LARTC] Re: htb traffic shaping problem Message-Id: <6.2.0.14.2.20060912225307.02dd8f98@linux.sysreset.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Eric, here's the information you requested with the mtu set at 1500 (see=20 further below): ---------------------------------------------------------------------------= ---------------------------------------------- root@sysreset:~# tc -s -d qdisc show dev eth0 qdisc htb 1: r2q 10 default 99 direct_packets_stat 335 ver 3.17 Sent 10388909 bytes 763 pkt (dropped 0, overlimits 372 requeues 0) rate 0bit 0pps backlog 0b 11p requeues 0 qdisc sfq 10: parent 1:10 limit 128p quantum 1514b flows 128/1024 Sent 10328092 bytes 190 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 707234b 11p requeues 0 qdisc sfq 99: parent 1:99 limit 128p quantum 1514b flows 128/1024 Sent 19927 bytes 188 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 root@sysreset:~# tc filter show dev eth0 filter parent 1: protocol ip pref 49151 u32 filter parent 1: protocol ip pref 49151 u32 fh 801: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 801::800 order 2048 key ht=20 801 bkt 0 flowid 1:10 match 01bb0000/ffff0000 at 20 filter parent 1: protocol ip pref 49152 u32 filter parent 1: protocol ip pref 49152 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 49152 u32 fh 800::800 order 2048 key ht=20 800 bkt 0 flowid 1:10 match 00500000/ffff0000 at 20 root@sysreset:~# ---------------------------------------------------------------------------= ---------------------------------------------- Gypsy, I've been playing with the mtu settings. I had initially set it to= =20 1500, which is what the card should be at as the switch I have does not=20 support jumbo frames. If I set the mtu to 40,000 for the class the giants = go away and everything seems to fall back into place. However, this seems = waaaaay off what it should be, do you have any idea whats happening? I=20 cannot seem to adjust the mpu setting. ---------------------------------------------------------------------------= ---------------------------------------------- updated classes: tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit= =20 mtu 40000 tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit= =20 quantum 3000 mtu 40000 tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil=20 1000mbit quantum 3000 mtu 40000 root@sysreset:~# tc -s -d class show dev eth0 class htb 1:99 parent 1:1 leaf 99: prio 0 quantum 3000 rate 900000Kbit ceil= =20 1000Mbit burst 489825b/256 mpu 0b overhead 0b cburst 539875b/256 mpu 0b=20 overhead 0b level 0 Sent 31203 bytes 282 pkt (dropped 0, overlimits 0 requeues 0) rate 7264bit 8pps backlog 0b 0p requeues 0 lended: 282 borrowed: 0 giants: 0 tokens: 4695 ctokens: 4657 class htb 1:1 root rate 1000Mbit ceil 1000Mbit burst 539875b/256 mpu 0b=20 overhead 0b cburst 539875b/256 mpu 0b overhead 0b level 7 Sent 1126563 bytes 654 pkt (dropped 0, overlimits 0 requeues 0) rate 254848bit 15pps backlog 0b 0p requeues 0 lended: 0 borrowed: 0 giants: 0 tokens: 4657 ctokens: 4657 class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 3000 rate 512000bit ceil = 512000bit burst 40255b/256 mpu 0b overhead 0b cburst 40255b/256 mpu 0b=20 overhead 0b level 0 Sent 1104444 bytes 378 pkt (dropped 0, overlimits 0 requeues 0) rate 250464bit 10pps backlog 0b 6p requeues 0 lended: 372 borrowed: 0 giants: 0 tokens: -694028 ctokens: -694028 root@sysreset:~# tc -s -d qdisc show dev eth0 qdisc htb 1: r2q 10 default 99 direct_packets_stat 338 ver 3.17 Sent 1609761 bytes 1180 pkt (dropped 0, overlimits 369 requeues 0) rate 0bit 0pps backlog 0b 3p requeues 0 qdisc sfq 10: parent 1:10 limit 128p quantum 1514b flows 128/1024 Sent 1536378 bytes 509 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 29362b 3p requeues 0 qdisc sfq 99: parent 1:99 limit 128p quantum 1514b flows 128/1024 Sent 32175 bytes 283 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 root@sysreset:~# tc filter show dev eth0 filter parent 1: protocol ip pref 49151 u32 filter parent 1: protocol ip pref 49151 u32 fh 801: ht divisor 1 filter parent 1: protocol ip pref 49151 u32 fh 801::800 order 2048 key ht=20 801 bkt 0 flowid 1:10 match 01bb0000/ffff0000 at 20 filter parent 1: protocol ip pref 49152 u32 filter parent 1: protocol ip pref 49152 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 49152 u32 fh 800::800 order 2048 key ht=20 800 bkt 0 flowid 1:10 match 00500000/ffff0000 at 20 root@sysreset:~# ---------------------------------------------------------------------------= ---------------------------------------------- Thanks. -Ryan Power At 04:00 AM 9/12/2006, you wrote: >Message: 4 >Date: Tue, 12 Sep 2006 10:36:27 +0200 >From: e.janz@barceloviajes.com >Subject: Re: [LARTC] Re: htb traffic shaping problem (Charlie Meyer) >To: lartc@mailman.ds9a.nl >Message-ID: > >Content-Type: text/plain; charset=3D"iso-8859-1" > >Hi again, > >sorry for my late response. Could you give us also the output of > >tc -s -d qdisc show dev eth0 >tc filter show dev eth0 > >It is very strange that the rate and ceil from class 1:10 are set to >512Kbit but the class's rate goes over 3,5Mbits!! =BFMaybe it is a bug? >I'm preparing a similar setup (a linux wan router on a 100Mbit lan with >5Mbps upload/dowload to the Internet. We will see if I run into the same >issues... > > >Regards, >Eric Janz At 09:51 PM 9/12/2006, you wrote: >The giants indicate that your MPU (MTU) is wrong. Set it specifically. >Try 1500. Search the archives for "giants" and "MPU" or "MTU". >-- >gypsy _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc