From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: "dpreed@deepplum.com" <dpreed@deepplum.com>,
make-wifi-fast@lists.bufferbloat.net,
linux-wireless@vger.kernel.org
Subject: Re: [Make-wifi-fast] [PATCH] mac80211: Adjust TSQ pacing shift
Date: Fri, 2 Feb 2018 21:13:33 +0100 [thread overview]
Message-ID: <5A74C66D.3050509@broadcom.com> (raw)
In-Reply-To: <1517590516.742814797@apps.rackspace.com>
On 2/2/2018 5:55 PM, dpreed@deepplum.com wrote:
> I'm curious about the "WiFi Aware" initiative by the WiFi Alliance.
>
> Does LEDE and/or Linux support this protocol? I know gSupplicant is potentially the way such things are supposed to work, at least according to its supporters.
>
> The general NAN (Neighborhood-Aware-Networking) concept makes a lot of sense at one level, but as an Internet guy, it troubles me that they decided to split from the Internet and go a balkanized direction. To me, the neighborhood is interesting only as part of a larger Internet.
>
> It also troubles me that WiFi Aware is a "certification program" rather than a real standard.
It troubles me that you are breaking into an email conversation with a
topic that in my opinion is totally unrelated. Although probably not
intended as such it seems rude. Just start your own conversation.
Regards,
Arend
> -----Original Message-----
> From: "Toke Høiland-Jørgensen" <toke@toke.dk>
> Sent: Friday, February 2, 2018 10:11am
> To: make-wifi-fast@lists.bufferbloat.net, linux-wireless@vger.kernel.org
> Cc: "Toke Høiland-Jørgensen" <toke@toke.dk>
> Subject: [Make-wifi-fast] [PATCH] mac80211: Adjust TSQ pacing shift
>
> Since we now have the convenient helper to do so, actually adjust the
> TSQ pacing shift for packets going out over a WiFi interface. This
> significantly improves throughput for locally-originated TCP
> connections. The default pacing shift of 10 corresponds to ~1ms of
> queued packet data. Adjusting this to a shift of 8 (i.e. ~4ms) improves
> 1-hop throughput for ath9k by a factor of 3, whereas increasing it more
> has diminishing returns.
>
> Achieved throughput for different values of sk_pacing_shift (average of
> 5 iterations of 10-sec netperf runs to a host on the other side of the
> WiFi hop):
>
> sk_pacing_shift 10: 43.21 Mbps (pre-patch)
> sk_pacing_shift 9: 78.17 Mbps
> sk_pacing_shift 8: 123.94 Mbps
> sk_pacing_shift 7: 128.31 Mbps
>
> Latency for competing flows increases from ~3 ms to ~10 ms with this
> change. This is about the same magnitude of queueing latency induced by
> flows that are not originated on the WiFi device itself (and so are not
> limited by TSQ).
>
> Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
> ---
> net/mac80211/tx.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
> index 25904af38839..69722504e3e1 100644
> --- a/net/mac80211/tx.c
> +++ b/net/mac80211/tx.c
> @@ -3574,6 +3574,14 @@ void __ieee80211_subif_start_xmit(struct sk_buff *skb,
> if (!IS_ERR_OR_NULL(sta)) {
> struct ieee80211_fast_tx *fast_tx;
>
> + /* We need a bit of data queued to build aggregates properly, so
> + * instruct the TCP stack to allow more than a single ms of data
> + * to be queued in the stack. The value is a bit-shift of 1
> + * second, so 8 is ~4ms of queued data. Only affects local TCP
> + * sockets.
> + */
> + sk_pacing_shift_update(skb->sk, 8);
> +
> fast_tx = rcu_dereference(sta->fast_tx);
>
> if (fast_tx &&
>
next prev parent reply other threads:[~2018-02-02 20:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-02 15:11 Toke Høiland-Jørgensen
2018-02-02 16:55 ` dpreed
2018-02-02 20:13 ` Arend van Spriel [this message]
2018-02-14 0:43 ` Ryan Hsu
2018-02-14 8:18 ` Toke Høiland-Jørgensen
2018-02-14 8:23 ` Jonathan Morton
2018-03-02 1:09 ` Ryan Hsu
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=5A74C66D.3050509@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=dpreed@deepplum.com \
--cc=linux-wireless@vger.kernel.org \
--cc=make-wifi-fast@lists.bufferbloat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox