From: Dave Taht <dave.taht@gmail.com>
To: "Toke Høiland-Jørgensen" <toke@toke.dk>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
make-wifi-fast@lists.bufferbloat.net,
linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [Make-wifi-fast] [PATCH v3] mac80211: Dynamically set CoDel parameters per station
Date: Thu, 13 Apr 2017 11:26:02 -0700 [thread overview]
Message-ID: <CAA93jw7eYQ9dJ=tYuw5RDC7exf+mkc95U0jHP8FarAx0VuSwWA@mail.gmail.com> (raw)
In-Reply-To: <87efx5ply6.fsf@alrua-kau>
On Thu, Apr 6, 2017 at 8:58 AM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> Eric Dumazet <eric.dumazet@gmail.com> writes:
>
>> On Thu, 2017-04-06 at 11:38 +0200, Toke Høiland-Jørgensen wrote:
>>
>>> +
>>> + if (thr && thr < STA_SLOW_THRESHOLD * sta->local->num_sta) {
>>> + sta->cparams.target = MS2TIME(50);
>>> + sta->cparams.interval = MS2TIME(300);
>>> + sta->cparams.ecn = false;
>>> + } else {
>>> + sta->cparams.target = MS2TIME(20);
>>> + sta->cparams.interval = MS2TIME(100);
>>> + sta->cparams.ecn = true;
>>> + }
>>> +}
>>
>> Why ECN is flipped on/off like that ?
>
> The reasoning is that at really low bandwidths we're better off dropping
> the packet and getting potentially latency-sensitive data queued behind
> it through (see Dave's various rants with the topic "Packets have
> mass").
My general take on wifi is that if you are running at - particularly,
stuck at - a low rate (sub 6mbits in the case of this code) - you have
so many other problems like retransmits, interference, etc, in the
first place, that the presence or absence of codel here is just a
small contributor to that noise.
We could leave ecn at whatever it is set to here and not flip it on or
off. It does seem sane to twiddle the parameters enough to make sure
codel doesn't trigger at less than a MTU vs the achieved rate.
>> ECN really should be an admin choice.
>
> Well, the trouble is that the mac80211 queues don't really have an admin
> interface currently. So it'll always use ECN (before this change).
Should we add a sysfs api to this?
>> Also, this change in parameters looks suspect to me, adding a bimodal
>> behavior. I would consult Kathleen and Van on this possibility.
It's sort of trimodal, actually. I think a more effective approach
would be codel's default were the normal 5% of 100ms, bumping it up
(as per the above) when we're having bad connectivity.... and we tried
to tackle excessive retransmits harder, and addressed the side
impacts of multicast, instead, as much bigger parts of the problem.
> Yeah, I agree that it's somewhat of a hack from a theoretical point of
> view. I've also been experimenting with Kathy's recommended way of
> dealing with bursty MACs (turning off CoDel when there's less than an
> MTU's worth of data left), but have not had a lot of success with it.
I'm not in a position to resume trying myself.
> Guess I can go back and try some variants on that, unless someone else
> has better ideas?
Just as stuck as you are!
>
> -Toke
> _______________________________________________
> Make-wifi-fast mailing list
> Make-wifi-fast@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/make-wifi-fast
--
Dave Täht
Let's go make home routers and wifi faster! With better software!
http://blog.cerowrt.org
next prev parent reply other threads:[~2017-04-13 18:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-10 19:33 [Make-wifi-fast] [PATCH] " Toke Høiland-Jørgensen
2016-09-10 19:54 ` Jim Gettys
2016-09-10 20:09 ` Toke Høiland-Jørgensen
2016-09-11 3:16 ` Loganaden Velvindron
2016-09-11 0:09 ` kbuild test robot
2017-04-05 16:18 ` [Make-wifi-fast] [PATCH v2] " Toke Høiland-Jørgensen
2017-04-06 7:56 ` kbuild test robot
2017-04-06 8:45 ` kbuild test robot
2017-04-06 9:38 ` [Make-wifi-fast] [PATCH v3] " Toke Høiland-Jørgensen
2017-04-06 10:51 ` Eric Dumazet
2017-04-06 15:58 ` Toke Høiland-Jørgensen
2017-04-13 18:26 ` Dave Taht [this message]
2017-05-17 14:06 ` Johannes Berg
2017-05-19 9:27 ` Toke Høiland-Jørgensen
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/make-wifi-fast.lists.bufferbloat.net/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA93jw7eYQ9dJ=tYuw5RDC7exf+mkc95U0jHP8FarAx0VuSwWA@mail.gmail.com' \
--to=dave.taht@gmail.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=make-wifi-fast@lists.bufferbloat.net \
--cc=toke@toke.dk \
/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