Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Over value in CEIL parameter..
Date: Tue, 29 Jul 2003 07:45:30 +0000	[thread overview]
Message-ID: <marc-lartc-105946485322566@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105893713024294@msgid-missing>

On Tuesday 29 July 2003 07:28, Rio Martin. wrote:
> On Thursday 24 July 2003 23:28, you wrote:
> > On Thursday 24 July 2003 04:22, Rio Martin. wrote:
> > Can you post your script and the output of tc -s -d class show dev eth0?
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10
Bad idea.  Class 0 is a special one and I dont't think you want unclassified 
traffic go out at full speed ....

> tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit
> burst 1 cburst 1
Argh.  Remove the burst and cburst parameters so htb can calculate the smalles 
one for you.  I think that's your problem.

> tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500
> tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil
> 20Kbit burst 1 cburst 1
> tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw
> classid 1:9100
>
> root@noc:/etc/sysconfig/htb# tc -s -d class show dev eth0
> class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8
> mpu 0b level 7
>  Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
>  rate 532bps 2pps
>  lended: 0 borrowed: 0 giants: 0
>  tokens: -7521 ctokens: -7521
>
> class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit
> ceil 20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
>  Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
>  rate 504bps 2pps
>  lended: 12398 borrowed: 0 giants: 0
>  tokens: -15041 ctokens: -15041

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2003-07-29  7:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23  5:14 [LARTC] Over value in CEIL parameter Rio Martin.
2003-07-23  5:40 ` Martin A. Brown
2003-07-23  6:53 ` Rio Martin.
2003-07-23 14:16 ` Stef Coene
2003-07-24  2:22 ` Rio Martin.
2003-07-24 16:28 ` Stef Coene
2003-07-29  5:28 ` Rio Martin.
2003-07-29  7:45 ` Stef Coene [this message]

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=marc-lartc-105946485322566@msgid-missing \
    --to=stef.coene@docum.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox