From: Eric Dumazet <eric.dumazet@gmail.com>
To: "Dave Täht" <dave.taht@bufferbloat.net>
Cc: codel@lists.bufferbloat.net
Subject: Re: [Codel] [RFC PATCH] codel: tighten responsiveness and more reliably deal with loads
Date: Mon, 27 Aug 2012 05:17:59 -0700 [thread overview]
Message-ID: <1346069879.2420.249.camel@edumazet-glaptop> (raw)
In-Reply-To: <1346007773-26679-2-git-send-email-dave.taht@bufferbloat.net>
On Sun, 2012-08-26 at 12:02 -0700, Dave Täht wrote:
> From: Dave Taht <dave.taht@bufferbloat.net>
>
> This updates the codel algorithm to more closely match the current
> experimental ns2 code. Not presently recomended for mainline.
>
> 1) It shortens the search for the minimum by reducing the window over
> the intervals and re-running the control law to better schedule
> the estimate.
> 2) Holds onto the drop schedule harder when re-entering drop state.
> 3) Corrects for newton method running in reverse.
>
> ---
> include/net/codel.h | 39 +++++++++++++++++++++++----------------
> 1 file changed, 23 insertions(+), 16 deletions(-)
>
> diff --git a/include/net/codel.h b/include/net/codel.h
> index 389cf62..57031ad 100644
> --- a/include/net/codel.h
> +++ b/include/net/codel.h
> + codel_Newton_step(vars);
> + codel_Newton_step(vars);
This makes no sense for several reasons :
1) If we do the vars->count = 1;
vars->rec_inv_sqrt = ~0U >> REC_INV_SQRT_SHIFT;
Then there is no need of _any_ Newton steps.
The rec_inv_sqrt value is the good one.
2) If we change vars->count to vars->count - 2
Then a single step is enough.
I can understand that with the current way :
vars->count = vars->count - vars->lastcount
then we can have a slight error, but this gave no difference in codel
experimental behavior.
I would say that codel response to bad queue is pretty easy (doing count
++ at each drop), but changes in count to adapt to oscillations between
good and bad queues is yet to be investigated.
Do we have to do
0) current way (count - lastcount)
1) count = count - 1
2) count = count - 2
3) count = count * 88%
4) count = count * 75%
5) count = count * 50%
6) count = count * 25%
7) count = some clever function using history of previous changes
...
In my prior tests, 1) and 2) were pretty bad, I am sure it is not the
right way.
(the count = 1 is only done when queue was idle for a long time)
next prev parent reply other threads:[~2012-08-27 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-26 19:02 [Codel] experimental codel patch Dave Täht
2012-08-26 19:02 ` [Codel] [RFC PATCH] codel: tighten responsiveness and more reliably deal with loads Dave Täht
2012-08-27 12:17 ` Eric Dumazet [this message]
2012-08-27 14:17 ` 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/codel.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346069879.2420.249.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=codel@lists.bufferbloat.net \
--cc=dave.taht@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