Lets make wifi fast again!
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: "Toke Høiland-Jørgensen" <toke@toke.dk>
Cc: make-wifi-fast@lists.bufferbloat.net
Subject: Re: [Make-wifi-fast] On the 802.11 performance anomaly and an airtime fairness scheduler to fix it
Date: Sat, 2 Jul 2016 11:26:06 +0100	[thread overview]
Message-ID: <CAA93jw5_k_ZbSqD8k38zkqX7xxdp_r2EnugTA+EHkaWvt1hjCg@mail.gmail.com> (raw)
In-Reply-To: <87ziq2o07z.fsf@toke.dk>

Comments:

(my overall take on things is these patches should all go upstream
yesterday, we get some .debs built for others to use, and iterate from
there)

(some of the below has already been discussed but I've lost track on
what was discussed privately or not)

A) I would put down the issues you had in fig 3, 4, to the enormous
client latencies still apparent in fig 5.

While proving that these patches help an AP's performance enormously,
and are thus valuable there, clients should show an enormous benefit
as well. I am dying for a "full enchalada" test, as "The stations are
running a stock Ubuntu 16.04, while the access point is running a
4.6-based kernel with the appropriate patches applied"... but maybe
not with 30 iterations? 5? :)

the benefit on the client is mostly covered by the switch to the soft
queues and fq_codel at the mac80211 layer.

B) Similarly, in fig 6, I would put down to the clients using slightly
more TXOPs to do what they are doing, due to the existing (borken)
structure of the ath9k driver, primarily.  Or - what was the volume of
the ping traffic? isochronous (voip-like) testing is better...

Clamping the txop size further under contention would be
"interesting". A possible synergetic enhancement to the fast/slow
queue concept is to more aggressively cut the max txop size for all
"slow queue" stations, when a new station appears. A simpler
enhancement to test is to cut the max txop size as a function of the
number of stations with backlogs to something smaller than the max,
say 2ms. (my mental vision was max(2ms,5.6/stations))

C) What was the performance loss, with airtime fairness achieved, for
the slow station? 3x?

Was ecn enabled?

D) Fig 2 is in 10^8, it's easier to read if not in that notation

E) The download/upload asymmetry is a bit bothersome, there are
multiple potential root causes. It's not clear which way the upload
was?

1) Usually the AP has much better antennas, but I don't think this is
the case here
2) rx accounting not correct?
3) codel breakage? (what was the target and quantum?). We can drop
acks all day long but dropping tcp data too early is problematic. The
codel target is currently set to 20ms in the ath10k patchset, I think.
Hope is to make that dynamic based on the aftereffects of fiddling on
B.

One of the experiments I did was to clamp the max txop size as
distributed in the beacon to "94" in hostapd. This led to much better
symmetry on some tests of mine, and cost throughput. Again this could
one day be a dynamically set option based on the workload, if it
helps.

I was told recently that the beacon interval is set to 3 or more in
some APs nowadays, notably apple's, but that's probably not relevant.


Longer term tests:

F) Differences in ad-hoc mode?

G) Hardware mq tests

H) Minstrel-blues integration

Random tests

Reducing retries, reducing the size of the retry chain, etc.


On Thu, Jun 30, 2016 at 10:06 PM, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> I've previously posted my airtime fairness scheduler patch here. When I
> did I promised a more thorough performance evaluation of it. This took a
> bit longer to get done than I had anticipated, but I have now put up a
> blog post with some pretty graphs.
>
> The post also explains the background of the 802.11 performance anomaly
> to those not familiar with it; feel free to skip to the results if you
> are already familiar with it.
>
> Link: https://blog.tohojo.dk/2016/06/fixing-the-wifi-performance-anomaly-on-ath9k.html
>
> -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

  parent reply	other threads:[~2016-07-02 10:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30 21:06 Toke Høiland-Jørgensen
2016-07-01 13:31 ` Sebastian Moeller
2016-07-01 23:10 ` Dave Taht
2016-07-02 10:26 ` Dave Taht [this message]
2016-07-03  6:55 ` Luca Muscariello
2016-07-03  7:06   ` David Lang
2016-07-03  7:50     ` Jonathan Morton
2016-07-03  7:53       ` Luca Muscariello
2016-07-03  8:03       ` David Lang
2016-07-03  9:07         ` Jonathan Morton

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=CAA93jw5_k_ZbSqD8k38zkqX7xxdp_r2EnugTA+EHkaWvt1hjCg@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --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