Lets make wifi fast again!
 help / color / mirror / Atom feed
From: Miguel Catalan Cid <miguel.catalan@i2cat.net>
To: "Toke Høiland-Jørgensen" <toke@redhat.com>
Cc: make-wifi-fast@lists.bufferbloat.net, linux-wireless@vger.kernel.org
Subject: Re: [Make-wifi-fast] Support for airtime scheduling using ath10k
Date: Mon, 7 Sep 2020 12:29:28 +0200	[thread overview]
Message-ID: <CAMHmoos8p7icOfsXT7q+-uThGCd-k04hPT0BWiCzNTPqH3CJUQ@mail.gmail.com> (raw)
In-Reply-To: <87lfk4ftnc.fsf@toke.dk>

[-- Attachment #1: Type: text/plain, Size: 2737 bytes --]

Hi,

after doing some tests with different ath10k Wi-Fi cards and clients, I
found the following behaviour when combining AQL and the airtime scheduler:

- When using the default AQL limits (threshold 24000, limits per AC
5000/12000), the airtime scheduler is not working at all, regardless of the
airtime weights of the STAs. Indeed, in some cases, slower stations were
able to use a higher amount of airtime, leading to unfairness. I was
thinking that maybe the default AQL limits are too high to these slow
stations, allowing them to obtain too much pending airtime. I already used
the last patches from Felix Fietkau with the same results.

- Indeed, I was able to activate the airtime scheduler by fixing lower AQL
limits (e.g. threshold of 5000, limits per AC 0/5000). This way, it seems
that the STAs start competing again for the airtime, and their behaviour
follows the airtime weights. However,  slower STAs lose a bit of
performance due to these lower limits.

- The airtime weights have to be higher (e.g. 10000 vs 20000 to obtain a
33% vs 66% relation); I found the same behaviour using ath9k and 11n cards,
so I guess this is due to the aggregation of packets.

Looking into the code, it seems that the key airtime check is the one
in ieee80211_tx_dequeue. To enable the airtime scheduling, the
"ieee80211_txq_airtime_check" function has to return false more usually;
maybe it is just a matter of adjusting the AQL limits according to the
airtime weights or to modify a bit the "ieee80211_txq_airtime_check"
function to consider the airtime weight or the deficit of the stations.

Cheers,
Miguel.

El mar., 30 jun. 2020 a las 17:41, Toke Høiland-Jørgensen (<toke@redhat.com>)
escribió:

> Miguel Catalan Cid <miguel.catalan@i2cat.net> writes:
>
> > Hi,
> >
> > Do we need to use a specific firmware? It's ok to use the last one from
> > kvalo, or should we use the one from candelatech?
>
> Shouldn't matter, I think; the airtime scheduler tries to do its thing
> in software. It does have to work around the firmware, to a certain
> extent, though, which I suspect is why it doesn't work quite so well as
> on ath9k.
>
> Incidentally, this "impedance mismatch" between scheduler and firmware
> is what this patch was supposed to fix:
>
>
> https://lore.kernel.org/linux-wireless/20191222172423.131033-1-toke@redhat.com/
>
> Never did get around to respinning it, so not sure if it still applies.
> If it does, you could try taking it for a spin; otherwise I can try
> updating it so you can apply it and test :)
>
> -Toke
>
>

-- 
Miguel Catalán Cid, PhD

Mobile Wireless Internet Group (MWI)
i2CAT Foundation, Barcelona, Spain
http://www.i2cat.net/

[-- Attachment #2: Type: text/html, Size: 3685 bytes --]

  reply	other threads:[~2020-09-07 10:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-22 16:22 Miguel Catalan Cid
2020-06-23  9:35 ` Toke Høiland-Jørgensen
2020-06-29  9:55   ` Miguel Catalan Cid
2020-06-29 10:25     ` Toke Høiland-Jørgensen
2020-06-30 15:33       ` Miguel Catalan Cid
2020-06-30 15:41         ` Toke Høiland-Jørgensen
2020-09-07 10:29           ` Miguel Catalan Cid [this message]
2020-09-11 14:36             ` 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=CAMHmoos8p7icOfsXT7q+-uThGCd-k04hPT0BWiCzNTPqH3CJUQ@mail.gmail.com \
    --to=miguel.catalan@i2cat.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=make-wifi-fast@lists.bufferbloat.net \
    --cc=toke@redhat.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