CoDel AQM discussions
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: codel@lists.bufferbloat.net
Subject: Re: [Codel] fq_codel: revenge of the standing queue
Date: Tue, 4 Sep 2012 12:51:38 -0700	[thread overview]
Message-ID: <CAA93jw42vJig0ym2a-gQ8y5NboYWVcHWZVboFR_j+Gd4fOQJiQ@mail.gmail.com> (raw)
In-Reply-To: <1346785347.13121.77.camel@edumazet-glaptop>

On Tue, Sep 4, 2012 at 12:02 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> 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);

- and we exit dropping state when that queue empties, when globally,
across all the fq_codel queues, we still need to be dropping in order
to get to the target.

And that first_above time for that cvars for that fq_codel queue is
reset to 0 for that fq_codel queue when it empties, forcing a recalc
of the right interval (sojourn) for re-entering dropping state, with a
"hands off" interval...

It's seems reasonably ok for a fq_codel queue to go empty for a while
but not have to go through a sojourn again to start dropping. It makes
sense to always deliver one packet after going empty...

these thoughts are half formed, and I did my damnedest to describe the
behavior I was seeing.

> So each flow has its own codel unit.
>
> Try to view fq_codel as a multiplexor, then a Codel unit for each flow.

I do.

> 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.

No, this thread was about fq_codel's assumptions differences from
codel's assumptions.

Codel has it's own bugs, which I didn't talk to in this thread.

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

Understood.

>
>
>
>
>



-- 
Dave Täht
http://www.bufferbloat.net/projects/cerowrt/wiki - "3.3.8-17 is out
with fq_codel!"

  reply	other threads:[~2012-09-04 19:51 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
2012-09-04 19:51   ` Dave Taht [this message]
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=CAA93jw42vJig0ym2a-gQ8y5NboYWVcHWZVboFR_j+Gd4fOQJiQ@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=codel@lists.bufferbloat.net \
    --cc=eric.dumazet@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