From: Sriram R <srirrama@codeaurora.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC 0/2] nl80211/mac80211 Add support for per-rate rx statistics
Date: Wed, 16 May 2018 10:04:08 +0530 [thread overview]
Message-ID: <44cd0e995e3caf7b44fcf5676cb57b5a@codeaurora.org> (raw)
In-Reply-To: <1526367603.3255.3.camel@sipsolutions.net>
On 2018-05-15 12:30, Johannes Berg wrote:
> On Tue, 2018-05-15 at 10:47 +0530, Sriram R wrote:
>> This patchset adds support for the collection and propagating of
>> per-rate, per-station rx statistics when enabled by a userspace
>> application.
>>
>> These statistics can be useful in understanding the quality of
>> communication with our peers and in evaluating how different peers
>> are communicating in different MCS/BW/NSS during different time
>> periods and environment.
>
> So ... I know that you're aware of my rate statistics collection code
> (at least you should be, I showed it to Jouni), so I think you should
> state why that approach isn't suitable.
>
Hi Johannes,
I really liked your approach of publishing the rate statistics only
when subscribers exist and to push the data when we hit some limits (pkt
count nearing UINT16_MAX or when 'escape' entries gets used).
But, I wanted to avoid,
1. Static indexing and memory allocation based on MCS count((8x3)24
entries for HT and (10x3)30 for VHT within allocated 36 entries) so that
it's scalable.
2. Remote chance of dropping a stats(Though it does not have much
impact)
And to allow,
1. A 'station dump' kind of interface to dump the complete collected
stats instead of returning only current snapshot of the stats within
kernel.
> In particular, I don't like the idea that you implement here of
> allowing
> unresponsive (or dead) userspace to let the data pile up indefinitely.
> I
> think we should be sending it out upon reaching a threshold to limit
> the
> memory consumption in the kernel more reliably.
I agree with you that this does not allow deterministic memory
allocation within kernel (when rate stats are enabled).
I'll revisit this approach to address your concern and to allow a data
aggregator kind of usersapce application to collect info and provide
complete stats.
Also, do you feel it would be good to have both ,i.e complete stats
collection within kernel(this approach) and dump+clear of stats on
reaching threshold(your approach) and have one of these two modes
selected based on the requirement.
Thanks,
Sriram.R
>
> johannes
next prev parent reply other threads:[~2018-05-16 4:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 5:17 [RFC 0/2] nl80211/mac80211 Add support for per-rate rx statistics Sriram R
2018-05-15 5:18 ` [RFC 1/2] nl80211: Add support for collection of per rate " Sriram R
2018-05-15 5:18 ` [RFC 2/2] mac80211: Add support for per-rate " Sriram R
2018-05-15 7:00 ` [RFC 0/2] nl80211/mac80211 " Johannes Berg
2018-05-16 4:34 ` Sriram R [this message]
2018-05-18 9:30 ` Johannes Berg
2018-05-21 3:46 ` Sriram R
2018-05-15 8:51 ` 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=44cd0e995e3caf7b44fcf5676cb57b5a@codeaurora.org \
--to=srirrama@codeaurora.org \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).