From: Pete Heist <peteheist@gmail.com>
To: Dave Taht <dave@taht.net>
Cc: "Toke Høiland-Jørgensen" <toke@toke.dk>,
"Cake List" <cake@lists.bufferbloat.net>
Subject: Re: [Cake] lan keyword affects host fairness
Date: Fri, 24 Nov 2017 14:49:53 +0100 [thread overview]
Message-ID: <0D339F2F-F2CB-4800-84B9-E7321AE4D15E@gmail.com> (raw)
In-Reply-To: <87609zapmt.fsf@toke.dk>
[-- Attachment #1: Type: text/plain, Size: 2735 bytes --]
> On Nov 24, 2017, at 12:21 PM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
> Dave Taht <dave@taht.net> writes:
>
>> Pete Heist <peteheist@gmail.com> writes:
>>
>>> On Nov 23, 2017, at 10:44 AM, Jonathan Morton <chromatix99@gmail.com> wrote:
>>>
>>> This is most likely an interaction of the AQM with Linux' scheduling
>>> latency.
>>>
>>> At the 'lan' setting, the time comstants are similar in magnitude to the
>>> delays induced by Linux itself, so congestion might be signalled
>>> prematurely. The flows will then become sparse and total throughput reduced,
>>> leaving little or no back-pressure for the fairness logic to work against.
>>
>> Agreed.
>>
>> man page add:
>>
>> At the 'lan' setting(1ms), the time constants are similar in magnitude
>> to the jitter in the Linux kernel itself, so congestion might be
>> signalled prematurely. The flows will then become sparse and total
>> throughput reduced, leaving little or no back-pressure for the fairness
>> logic to work against. Use the "metro" setting for local lans unless you
>> have a custom kernel.
>
> Erm, doesn't this make the 'lan' keyword pretty much useless? So why not
> just remove it? Or redefine it to something that actually works? 3ms?
Removing the bandwidth keywords altogether and going back to fq_codel’s specification of target and interval would be my personal preference (unless we can figure out how to make the keywords work well with one another in all cases).
If we want to keep them, I’ll look for more holes where things might not behave as people expect so we can further clear up the docs.
Also, note that even at ‘metro’, fairness is better, but still not fully fair on my hardware:
https://docs.google.com/spreadsheets/d/1SMXWw2fLfmBRU622urfdvA_Ujsuf_KQ4P3uyOH1skOM/edit#gid=2072687073 <https://docs.google.com/spreadsheets/d/1SMXWw2fLfmBRU622urfdvA_Ujsuf_KQ4P3uyOH1skOM/edit#gid=2072687073>
With 950mbit rate limiting, it’s pretty good at 1.16:1. But with bql it’s still ~2:1. At what rtt will fairness actually work? That may depend on hardware, OS version, number of flows, whether bql is being used or not, or other factors. At rtt 100ms fairness worked well for this test with both bql and rate limiting.
Also note that I’m glossing over the fact that on my hardware (Ethernet device with four queues), sometimes there was a bandwidth asymmetry and corresponding fluctuation in fairness when using bql that changed with each flent run, so I had to retry the test once or twice to get a “good” run. I would try to quantify that separately before I get into it further. But that’s something that may also throw folks for a loop.
[-- Attachment #2: Type: text/html, Size: 4058 bytes --]
next prev parent reply other threads:[~2017-11-24 13:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-23 9:21 Pete Heist
2017-11-23 9:44 ` Jonathan Morton
2017-11-23 10:25 ` Pete Heist
2017-11-23 17:03 ` Dave Taht
2017-11-24 11:21 ` Toke Høiland-Jørgensen
2017-11-24 12:06 ` Sebastian Moeller
2017-11-24 13:15 ` Marcelo Ricardo Leitner
2017-11-24 13:49 ` Pete Heist [this message]
2017-11-24 19:41 ` Pete Heist
2017-11-24 19:48 ` Jonathan Morton
2017-11-24 20:24 ` Pete Heist
[not found] ` <CAJq5cE2eX4AJCPaBL-FW7Oj_afthXKnZn1RHQPH1VBCJfCyXDg@mail.gmail.com>
2017-11-24 20:32 ` Jonathan Morton
2017-11-25 7:18 ` Pete Heist
2017-11-24 20:03 ` Dave Taht
2017-11-24 20:40 ` Dave Taht
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
List information: https://lists.bufferbloat.net/postorius/lists/cake.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0D339F2F-F2CB-4800-84B9-E7321AE4D15E@gmail.com \
--to=peteheist@gmail.com \
--cc=cake@lists.bufferbloat.net \
--cc=dave@taht.net \
--cc=toke@toke.dk \
/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