[LEDE-DEV] [PATCH] ath9k: Add airtime fairness scheduler
Toke Høiland-Jørgensen
toke at toke.dk
Mon Nov 28 01:49:22 PST 2016
Weedy <weedy2887 at gmail.com> writes:
> On Sun, Nov 27, 2016 at 11:01 AM, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
>> Weedy <weedy2887 at gmail.com> writes:
>>
>>> On Fri, Nov 25, 2016 at 5:16 AM, Toke Høiland-Jørgensen <toke at toke.dk> wrote:
>>>> This adds a patch that introduces airtime fairness scheduling to ath9k,
>>>> which can significantly improve network efficiency in mixed-rate
>>>> environments.
>>> ...
>>>> ++ astats = &an->airtime_stats;
>>>> ++
>>>> ++ len += scnprintf(buf + len, size - len, "RX: %u us\n", astats->rx_airtime);
>>>> ++ len += scnprintf(buf + len, size - len, "TX: %u us\n", astats->tx_airtime);
>>>> ++ len += scnprintf(buf + len, size - len, "Deficit: ");
>>>> ++ for (i = 0; i < 4; i++)
>>>> ++ len += scnprintf(buf+len, size - len, "%s: %lld us ", qname[i], an->airtime_deficit[i]);
>>>> ++ if (len < size)
>>>> ++ buf[len++] = '\n';
>>>> ++
>>>> ++ retval = simple_read_from_buffer(user_buf, count, ppos, buf, len);
>>>> ++ kfree(buf);
>>>> ++
>>>> ++ return retval;
>>>> ++}
>>>
>>> I'm supposed to have a
>>> /sys/kernel/debug/ieee80211/phy0/netdev\:wlan0/stations/something/airtime
>>> right?
>>
>> Yeah, you should. Do you have
>> /sys/kernel/debug/ieee80211/phy0/ath9k/airtime_flags ?
>
> Yes I do. It's set to 7
Right, that means that the patch was applied correctly. That you don't
have the per-station airtime stats file is probably a configuration
issue, then. Did you set CONFIG_PACKAGE_ATH_DEBUG?
What's the output of
grep STATION_STATISTICS build_dir/target-mips_24kc_musl-1.1.15/linux-ar71xx_generic/compat-wireless-2016-10-08/.config
(substitute the right build dir if you are building with a different
musl version).
-Toke
More information about the Lede-dev
mailing list