From: "Toke Høiland-Jørgensen" <toke@redhat.com>
To: Miguel Catalan Cid <miguel.catalan@i2cat.net>
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, 29 Jun 2020 12:25:56 +0200 [thread overview]
Message-ID: <87366ei2x7.fsf@toke.dk> (raw)
In-Reply-To: <CAMHmoouFjdOSBAq00SMeauO2GvEnXMvJG+vEMwhYUD4rdW9rxg@mail.gmail.com>
Miguel Catalan Cid <miguel.catalan@i2cat.net> writes:
> El mar., 23 jun. 2020 a las 11:35, Toke Høiland-Jørgensen
> (<toke@redhat.com>) escribió:
>>
>> Miguel Catalan Cid <miguel.catalan@i2cat.net> writes:
>>
>> > Hi,
>> >
>> > we are trying to apply different airtime weights to different stations in
>> > order to have some prioritization among connected stations. While this is
>> > working pretty well with ath9k, with ath10k we always obtain a fair
>> > distribution of the airtime (i.e. 50%-50% in the case of two stations),
>> > regardless of the airtime weight specified.
>> >
>> > E.g. STA1:
>> > RX: 0 us
>> > TX: 2295610622 us
>> >
>> > *Weight: 200*Deficit: VO: 256 us VI: 256 us BE: 34 us BK: 256 us
>> >
>> > E.g. STA2:
>> > RX: 0 us
>> > TX: 162597077 us
>>
>> 2295610622/162597077 ~= 14
>>
>> which is not *too* far from the 20/1 ratio you've configured? Does the
>> ratio change at all when you change the weights (i.e., if they are
>> equal, do you get closer to a 50/50 split?).
>>
>> Do the two stations have roughly the same signal strength / rate?
>
> In this case I started the STA1 a bit earlier, so it had a higher
> airtime aggregate. Indeed, to compare the airtime share, I was
> continuously monitoring the "airtime rate" (i.e. the difference
> between Airtime(now) and Airtime (now-4s)) and the results of both
> STAs were the same (i.e. 50/50 split) independently of the weight
> being used. But when using ath9k the same test runs perfectly
> according to the weights.
>
>>
>> > *Weight: 10*Deficit: VO: 256 us VI: 256 us BE: 9 us BK: 256 us
>> >
>> > We are using Compex WLE650V5-18A cards.
>> >
>> > So, does ath10k support airtime scheduling? In such a case, do we need
>> > specific Wi-Fi cards?
>>
>> It should. My guess would be that maybe you're not getting enough
>> backpressure for the scheduler to actually enforce things correctly. You
>> could try to look at the TXQ output and see if you actually have any
>> drops ('iw dev wlan0 station dump -v' and look at the drops/marks
>> columns).
>
> ok, i will check!
Another thing to check is the value of 'new_flows' in the TXQ output; if
that is high, it indicates that the queues run empty a lot, which can
prevent the airtime fairness scheduler from working properly.
>> What kernel version are you running? If it's not new enough to have AQL,
>> that might help moving the backlog to where the scheduler can do more
>> with it.
>
> Kernel 5.5.5.
Hmm, that should have AQL, actually.
-Toke
next prev parent reply other threads:[~2020-06-29 19:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAMHmoovK_m=Yd4uUPhsdHZ588+d1DF-fyS+uGKdRWvd33Q2u+A@mail.gmail.com>
2020-06-23 9:35 ` [Make-wifi-fast] Support for airtime scheduling using ath10k Toke Høiland-Jørgensen
2020-06-29 9:55 ` Miguel Catalan Cid
2020-06-29 10:25 ` Toke Høiland-Jørgensen [this message]
[not found] ` <CAMHmoovWrXhMheEPapgEw9b_7S-jOZdJDRvAp-1Cb_i0=pBfEw@mail.gmail.com>
2020-06-30 15:41 ` Toke Høiland-Jørgensen
[not found] ` <CAMHmoos8p7icOfsXT7q+-uThGCd-k04hPT0BWiCzNTPqH3CJUQ@mail.gmail.com>
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87366ei2x7.fsf@toke.dk \
--to=toke@redhat.com \
--cc=linux-wireless@vger.kernel.org \
--cc=make-wifi-fast@lists.bufferbloat.net \
--cc=miguel.catalan@i2cat.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.