All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bugzilla-Redirect <bugzilla@sysreset.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: htb traffic shaping problem
Date: Wed, 13 Sep 2006 04:59:39 +0000	[thread overview]
Message-ID: <6.2.0.14.2.20060912225307.02dd8f98@linux.sysreset.com> (raw)

Eric, here's the information you requested with the mtu set at 1500 (see 
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 
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 
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 
1500, which is what the card should be at as the switch I have does not 
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 
cannot seem to adjust the mpu setting.

-------------------------------------------------------------------------------------------------------------------------
updated classes:
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000mbit ceil 1000mbit 
mtu 40000
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 512kbit ceil 512kbit 
quantum 3000 mtu 40000
tc class add dev eth0 parent 1:1 classid 1:99 htb rate 900mbit ceil 
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 
1000Mbit burst 489825b/256 mpu 0b overhead 0b cburst 539875b/256 mpu 0b 
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 
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 
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 
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 
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:
>         <OFC2DEF3FD.3B18AAD9-ONC12571E7.002DA37A-C12571E7.002F2ADF@barcelo>
>Content-Type: text/plain; charset="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!! ¿Maybe 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

             reply	other threads:[~2006-09-13  4:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-13  4:59 Bugzilla-Redirect [this message]
2006-09-14 10:53 ` [LARTC] Re: htb traffic shaping problem e.janz
2006-09-16  1:38 ` Bugzilla-Redirect
2006-09-16 16:20 ` gypsy
2006-09-18 13:48 ` Andy Furniss
2006-09-19  2:42 ` Bugzilla-Redirect

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6.2.0.14.2.20060912225307.02dd8f98@linux.sysreset.com \
    --to=bugzilla@sysreset.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.