CoDel AQM discussions
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Dave Taht <dave.taht@gmail.com>
Cc: codel@lists.bufferbloat.net
Subject: Re: [Codel] fq_codel: revenge of the standing queue
Date: Tue, 04 Sep 2012 21:02:27 +0200	[thread overview]
Message-ID: <1346785347.13121.77.camel@edumazet-glaptop> (raw)
In-Reply-To: <CAA93jw6qKWv33zqjAGqjEA3QajoyThc6gicLorx1P4=ZaMoY=A@mail.gmail.com>

On Tue, 2012-09-04 at 11:35 -0700, Dave Taht wrote:

> 1) An empty queue in fq_codel has no meaningful information.
> 
> in: codel_should_drop
> 
>         if (!skb) {
>                 vars->first_above_time = 0;
>                 return false;
>         }



> I believe the codel intent here was to reset codel's state when the
> single FIFO queue was emptied. In fq_codel's case, an empty queue
> contains no information about the state, really, and a
> 
>         if (!skb) {
>                 if(sch->qstats.backlog <= mtu)
>                          vars->first_above_time = 0;
>                 return false;
>         }
> 
> comes closer to the intent. That said, the null skb then bleeds into
> the rest of the algorithm
> 
> in codel_dequeue
> 
> 
>         if (!skb) {
>                  vars->dropping = false;
>                 return skb;
>         }
> 
> later on there's
> 
>         if (vars->dropping) {
>                 if (!drop) {
>                         /* sojourn time below target - leave dropping state */
>                         vars->dropping = false;
> 
> and the same assumption within the while loop and in the else if(drop)...
> 
> I'm pretty sure that leaving of dropping state just because this
> fq_codel queue is (temporarily) empty is not the right thing, and that
> the main reason for exiting the dropping state should be getting under
> the target delay. It might make sense to reschedule the next drop on a
> null skb, perhaps after reducing count...
> 
> While I've fiddled with these ideas, and got some drainage, I do get
> fairly big oscillations in queue depth, and starvation of some flows,
> in various versions of my explorations.  Which led me to looking at
> quantums and...

I have no idea of what you try to say.

Each flow has its own cvars :

skb = codel_dequeue(sch, &q->cparams, &flow->cvars, &q->cstats,
dequeue);

So each flow has its own codel unit.

Try to view fq_codel as a multiplexor, then a Codel unit for each flow.

So if you believe there is a bug in Codel, try to describe the big in
Codel, not in fq_codel, because fq_codel is _not_ a codel variant.

The only thing that fq_codel codel units share are the parameters and
stats.






  parent reply	other threads:[~2012-09-04 19:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-04 18:35 Dave Taht
2012-09-04 18:50 ` Eric Dumazet
2012-09-04 20:02   ` Kathleen Nichols
2012-09-04 20:22     ` Dave Taht
2012-09-04 19:02 ` Eric Dumazet [this message]
2012-09-04 19:51   ` Dave Taht
2012-09-04 20:10     ` Eric Dumazet

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=1346785347.13121.77.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=codel@lists.bufferbloat.net \
    --cc=dave.taht@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