From: Andy Furniss <adf.lists@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: Can't get tc to limit network traffic
Date: Mon, 15 Sep 2014 17:27:59 +0000 [thread overview]
Message-ID: <5417219F.8070305@gmail.com> (raw)
In-Reply-To: <541642D6.4040104@gmail.com>
Dave Taht wrote:
>> tc qdisc add dev ifb0 parent 1:1 handle 10: fq_codel noecn target
>> 50ms interval 100ms
>
> the fq_codel internet draft[1] suggests that "interval"
>
> SHOULD be set on the order of the worst-case RTT through the
> bottleneck to give end-points sufficient time to react.
>
> so if you are using a satellite comms system, use 1200ms as the
> interval, if you are in new zealand, use 240ms, for most of the rest
> of the world, 100ms is the default and "good enough".
>
> As for "interval"
>
> The default target value is 5 ms, but this value SHOULD be tuned to
> be at least the transmission time of a single MTU-sized packet at
> the prevalent egress link speed (which for e.g. 1Mbps and MTU 1500
> is ~15ms).
>
> and should be 5-10% of the interval, regardless. We hope to remove
> the target parameter entirely in some future version of codel - it's
> actually the interaction with tbf/htb/hfsc which buffers up an extra
> packet here that requires it be increased at very low bandwidths.
>
> So in this case, 2mbit, a target 8ms would be sufficient. It doesn't
> hurt to go bigger, but 50ms is overmuch.
Thanks for that, I am really out of date with the new stuff.
While doing a quick test of this I just noticed that fq_codel saw
maxpacket 4542 but htb didn't count a giant - so I guess htbs limit is
higher than it used to be at least.
Of course the packet was fake (I know nothing that big goes on the
wire), but it serves to remind me that generic-receive-offload is on by
default and if I were to shape for real on this box it would be better
off (for low speed shaping).
ethtool -K eth0 gro off
next prev parent reply other threads:[~2014-09-15 17:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-15 1:37 Can't get tc to limit network traffic Teresa e Junior
2014-09-15 4:18 ` Mike Schmidt
2014-09-15 5:09 ` Teresa e Junior
2014-09-15 5:49 ` Mike Schmidt
2014-09-15 16:03 ` Andy Furniss
2014-09-15 16:33 ` Dave Taht
2014-09-15 17:27 ` Andy Furniss [this message]
2014-09-15 17:41 ` Dave Taht
2014-09-15 21:56 ` Teresa e Junior
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=5417219F.8070305@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.