From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: Why are my cburst settings ignored?
Date: Tue, 09 Jul 2013 19:11:36 +0000 [thread overview]
Message-ID: <51DC6068.9070707@gmail.com> (raw)
In-Reply-To: <1988904.abTyuc7JXo@morgaine>
maillinglistredcap@gmx.de wrote:
> Hi there,
>
> I'm new to this list and new to traffic control as well. I want to do some traffic
> shaping on my home network and over the past few days I've studied the subject
> quite a lot. Today I decided to some first experiments on my network using the
> HTB queueing discpline which seems to suit my purposes best. Well the first
> results were disappointing... most likely due to my lack of knowledge. I tried
> to improve the result by tinkering with the burst and cburst parameters of HTB
> only to find that my cburst settings don't have any effect at all.
>
> parzival traffic # tc qdisc del dev eth0 root 2>/dev/null
> parzival traffic # tc qdisc add dev eth0 root handle 1: htb default 110
> parzival traffic # tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbit
> burst 1650b cburst 1800b
> parzival traffic # tc -s class show dev eth0
> class htb 1:1 root prio 0 rate 100000bit ceil 100000bit burst 1650b cburst
> 1650b
> Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
> rate 0bit 0pps backlog 0b 0p requeues 0
> lended: 0 borrowed: 0 giants: 0
> tokens: 2062500 ctokens: 2250000
I don't know how it works exactly, but in this example as the rate and
ceil are the same you get the same.
HTB seems to only allow certain values related to bandwidth of the
rate/ceil and possibly r2q/quantum.
Testing your example with burst and cburst at 10b (as I once used this
long ago) gives 10b and 10b, but changing ceil to 200kbit gives 10b and 20b.
I would only ever set low values on low bandwidth bulk classes.
next prev parent reply other threads:[~2013-07-09 19:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-06 16:23 Why are my cburst settings ignored? maillinglistredcap
2013-07-08 21:27 ` Andrew Beverley
2013-07-09 16:58 ` maillinglistredcap
2013-07-09 17:31 ` Andrew Beverley
2013-07-09 19:11 ` Andy Furniss [this message]
2013-07-09 19:38 ` Andy Furniss
2013-07-14 17:33 ` maillinglistredcap
2013-07-14 19:25 ` Andrew Beverley
2013-07-14 20:52 ` Andy Furniss
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=51DC6068.9070707@gmail.com \
--to=adf.lists@gmail.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.