Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: "Toke Høiland-Jørgensen" <toke@toke.dk>
To: Jonathan Morton <chromatix99@gmail.com>
Cc: cake@lists.bufferbloat.net
Subject: Re: [Cake] Running Cake at long RTTs
Date: Wed, 28 Oct 2015 00:57:43 +0100	[thread overview]
Message-ID: <87y4enuao8.fsf@toke.dk> (raw)
In-Reply-To: <8C854819-448B-42F9-850C-5B85D7885CFE@gmail.com> (Jonathan Morton's message of "Tue, 27 Oct 2015 21:04:03 +0200")

Jonathan Morton <chromatix99@gmail.com> writes:

> The first change implies that the 10K packets * MTU default (ie. 15MB)
> isn’t big enough, but the 50MB calculated by 4 * RTT * rate is. That’s
> a fairly narrow range, which suggests that the latter calculation is
> correct.
>
> However, have you tried it with just the second change and not the first?
> Conventional wisdom suggests that 15MB (which is slightly more than one BDP)
> should be about the right size for a buffer under these conditions. I don’t want
> to gain a false impression of what the minimum usable buffer size is.

Well, indirectly: The first change was actually to address the problem
that Cake with CoDel turned off (i.e. interval 300s) did not achieve
full throughput. Changing the buffer size fixed that. Guess I can go
back and revert that and try again; will do so tomorrow.

> Limiting it to 10K * MTU was a safety valve to avoid the buffer size
> exploding. With the first change in place, the “interplanetary”
> setting effectively removes any limit on buffer size as well. This
> makes me deeply uncomfortable. Instead, we should arrange to configure
> the safety-valve limit when accommodating LFNs.

I agree that some sort of safety valve is probably needed (as is a
minimum; but that's another matter). Perhaps just setting the limit
higher could be a pragmatic solution?

> The result from the second change is more clearly beneficial, but I’ll
> put it in userspace (ie. tc) rather than in the kernel.

I'm not sure I agree with that. Putting it in userspace means basically
exposing the target. Even if it's not recognised in iproute, it will be
exposed in the netlink API, which sooner or later some other tool is
going to speak. We will then risk ending up in a situation where the
target is set arbitrarily, leading to a need to print out what it
actually is; which in turn brings us back to having exposed target
completely.

Now, I'm not ruling out that exposing target may eventually be the right
thing to do. However, I do like the simplicity of having only the one
parameter; so if we can avoid it I think we should. I guess more
experimentation is needed to answer this.

> I think the patch as given has some unintended consequences. Scaling
> target with interval also means I have to take more care with the
> threshold calculation, since the threshold scales with the product of
> the two.

That is most probably true. :)

-Toke

  reply	other threads:[~2015-10-27 23:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-27 15:14 Toke Høiland-Jørgensen
2015-10-27 15:16 ` Loganaden Velvindron
     [not found] ` <6499FF74-D13B-4B2E-90E3-D1FDD3FD1468@gmx.de>
2015-10-27 16:50   ` Toke Høiland-Jørgensen
2015-10-27 17:14     ` Sebastian Moeller
2015-10-27 19:04 ` Jonathan Morton
2015-10-27 23:57   ` Toke Høiland-Jørgensen [this message]
2015-10-28  9:36     ` Sebastian Moeller
2015-10-28 15:28 ` Sebastian Moeller
2015-10-28 15:36   ` Toke Høiland-Jørgensen
2015-10-28 15:50     ` Sebastian Moeller
2015-10-28 16:34       ` Toke Høiland-Jørgensen
2015-10-28 17:44         ` Sebastian Moeller
2015-10-29 17:36 ` Kevin Darbyshire-Bryant
2015-10-30 20:30   ` Kevin Darbyshire-Bryant
2015-10-30 21:34   ` 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=87y4enuao8.fsf@toke.dk \
    --to=toke@toke.dk \
    --cc=cake@lists.bufferbloat.net \
    --cc=chromatix99@gmail.com \
    /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