From: Andrew Beverley <andy@andybev.com>
To: lartc@vger.kernel.org
Subject: Re: Egress bandwidth limiting not working?
Date: Tue, 14 May 2013 19:38:16 +0000 [thread overview]
Message-ID: <1368560296.3543.302.camel@andrew-desktop> (raw)
In-Reply-To: <5188DD0D.4020708@open-t.co.uk>
On Wed, 2013-05-08 at 19:29 +0100, Sebastian Arcus wrote:
> > The one thing to watch out for is
> > that the sum of the bandwidth for all the leaf classes should add up to
> > the bandwidth of the root class.
>
> In that case is the HTB example in the LARTC cookbook
> (http://www.lartc.org/howto/lartc.cookbook.ultimate-tc.html) wrong? It
> assigns to the first leaf class 100% of parent bandwidth, and to the
> second 90% of it.
I've seen plenty of examples where people don't seem to have a problem.
However, I found this after a quick search, which seems to make sense:
"Because HTB does not shape in any class except the leaf class, the sum
of the rates of leaf classes should not exceed the ceil of a parent
class. Ideally, the sum of the rates of the children classes would match
the rate of the parent class, allowing the parent class to distribute
leftover bandwidth (ceil - rate) among the children classes"
http://www.tldp.org/HOWTO/Traffic-Control-HOWTO/classful-qdiscs.html
In other words, HTB only looks at each leaf separately when shaping, so
you could potentially have the total of the leaf classes trying to draw
more bandwidth than the total defined.
> It seems that HTB was added to the kernel in 2.4.20! - so it would be
> nice if somebody with access to LARTC.org would amend the mention about
> kernel patching on the page above. Also, it would be useful if the same
> page would mention that HTB is preferable and simpler than CBQ.
Agreed, there is a lot of work to be done updating the documentation.
The LARTC documentation is open to patches though, so if you get a
moment please consider submitting a patch!
Andy
prev parent reply other threads:[~2013-05-14 19:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-07 10:53 Egress bandwidth limiting not working? Sebastian Arcus
2013-05-08 6:10 ` Andrew Beverley
2013-05-08 7:03 ` Sebastian Arcus
2013-05-08 17:24 ` Andrew Beverley
2013-05-08 18:29 ` Sebastian Arcus
2013-05-14 19:38 ` Andrew Beverley [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=1368560296.3543.302.camel@andrew-desktop \
--to=andy@andybev.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.