All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sriram R <srirrama@codeaurora.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFCv2 2/2] mac80211: Add support for per-rate rx statistics
Date: Sun, 12 Aug 2018 08:14:17 +0530	[thread overview]
Message-ID: <655af9bf3136aefda93b137f80b9e726@codeaurora.org> (raw)
In-Reply-To: <1529065504.10037.18.camel@sipsolutions.net>

On 2018-06-15 17:55, Johannes Berg wrote:
> Why did you change to rhashtable?
Hi Johannes,
I wanted to give a try with rhashtable and get your thoughts, since it 
gave below flexibility to original patch,
1. avoids creating static memory when userspace starts accumulating 
stats. 36 rate entries were used in original patch based on 10 (MCS 
count) * 3 (entries per mcs)+ 6 escape entries, which would also 
increase with HE supported now.
2. avoids restricting to only 3 entries per MCS in the table. Using 
hashtable gave flexibility to add/read the table dynamically based on 
encoded rate key.
> 
> That seems very strange, since we explicitly want to limit the number 
> of
> entries, but rhashtable will grow/shrink as required.
Yes you're right ,it might grow but, as per this patch when Packet count 
is greater
than 65000 in an exntry or when the number of rate table/hashtable 
entries exceed a count of MAX_RATE_TABLE_ELEMS (10 was used in this 
patch), the complete table is dumped to userspace and new stats starts 
getting collected in a new table after we flush the old one.
Hence with this approach also the memory consumption is limited similar 
to the original patch.
> 
> I think I liked my approach better since it allowed us to clearly limit
> the memory consumption for this.
Sure Johannes, Could you please let me know if i can rebase your patch 
and send it(with corresponding additional entries for HE MCS). Also as 
mentioned above this patch also limits the memory consumption when the 
rate table size exceeds MAX_RATE_TABLE_ELEMS.
> 
> johannes

  reply	other threads:[~2018-08-12  5:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-28 13:34 [RFCv2 0/2] nl80211/mac80211 Add support for per-rate rx statistics Sriram R
2018-05-28 13:34 ` [RFCv2 1/2] nl80211: support per-rate/per-station statistics Sriram R
2018-06-15 12:19   ` Johannes Berg
2018-08-12  2:07     ` Sriram R
2018-05-28 13:34 ` [RFCv2 2/2] mac80211: Add support for per-rate rx statistics Sriram R
2018-06-15 12:25   ` Johannes Berg
2018-08-12  2:44     ` Sriram R [this message]
2018-08-28  9:00       ` Johannes Berg
2018-08-29 14:07         ` Sriram R

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=655af9bf3136aefda93b137f80b9e726@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 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.