Cake - FQ_codel the next generation
 help / color / mirror / Atom feed
From: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
To: <cake@lists.bufferbloat.net>
Subject: [Cake] Same flow 'optimization' did not look correct
Date: Fri, 27 Nov 2015 14:33:22 +0000	[thread overview]
Message-ID: <565869B2.8060505@darbyshire-bryant.me.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

I've been pondering this commit and wonder if we're throwing out baby
with bathwater:

https://github.com/dtaht/sch_cake/commit/90e792115f10fa2a31327208302e66c0ab3f2251

The original code, to paraphrase in something resembling English went:

1. I've just enqueud a packet & Oh sh*t we're over our q_disc buffer
limit, we'd better do something about it, hmmm
2. Whilst we're over this limit, go look through our flows (cake_drop)
and kill something, if that something was in the same flow as the thing
we just enqueued then set a flag 'cos these guys are part of the
problem!  Keep track of how many things we killed.
3 Now we're below the limit and finished killing packets, return back to
our caller - if we killed stuff in the same flow the caller is sending,
then return 'NET_XMIT_CN' (we're congested), else just say 'happy as Larry'

 *//* NET_XMIT_CN is special. It does not guarantee that this packet is
lost. It/*
*/* indicates that the device will soon be dropping packets, or already
drops/*
*/* some packets of the same priority; prompting us to send less
aggressively. *//*

What I do agree looked odd in the original code was the 'dropped -
same_flow':  We haven't dropped any more or fewer packets just 'cos we
found one or more in 'the same flow'.

-        qdisc_tree_decrease_qlen(sch, dropped - same_flow);  <--????????
+        qdisc_tree_decrease_qlen(sch, dropped);

Incidentally, a search of 'NET_XMIT_CN' turned up
http://www.bufferbloat.net/issues/398.pdf


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4816 bytes --]

                 reply	other threads:[~2015-11-27 14:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=565869B2.8060505@darbyshire-bryant.me.uk \
    --to=kevin@darbyshire-bryant.me.uk \
    --cc=cake@lists.bufferbloat.net \
    /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