From: David Miller <davem@davemloft.net>
To: ecree@solarflare.com
Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com,
linux-net-drivers@solarflare.com
Subject: Re: [PATCH v3 net-next 0/3] net: batched receive in GRO path
Date: Thu, 08 Aug 2019 18:22:59 -0700 (PDT) [thread overview]
Message-ID: <20190808.182259.1921801896274965443.davem@davemloft.net> (raw)
In-Reply-To: <c6e2474e-2c8a-5881-86bf-59c66bdfc34f@solarflare.com>
From: Edward Cree <ecree@solarflare.com>
Date: Tue, 6 Aug 2019 14:52:06 +0100
> This series listifies part of GRO processing, in a manner which allows those
> packets which are not GROed (i.e. for which dev_gro_receive returns
> GRO_NORMAL) to be passed on to the listified regular receive path.
> dev_gro_receive() itself is not listified, nor the per-protocol GRO
> callback, since GRO's need to hold packets on lists under napi->gro_hash
> makes keeping the packets on other lists awkward, and since the GRO control
> block state of held skbs can refer only to one 'new' skb at a time.
> Instead, when napi_frags_finish() handles a GRO_NORMAL result, stash the skb
> onto a list in the napi struct, which is received at the end of the napi
> poll or when its length exceeds the (new) sysctl net.core.gro_normal_batch.
>
> Performance figures with this series, collected on a back-to-back pair of
> Solarflare sfn8522-r2 NICs with 120-second NetPerf tests. In the stats,
> sample size n for old and new code is 6 runs each; p is from a Welch t-test.
> Tests were run both with GRO enabled and disabled, the latter simulating
> uncoalesceable packets (e.g. due to IP or TCP options). The receive side
> (which was the device under test) had the NetPerf process pinned to one CPU,
> and the device interrupts pinned to a second CPU. CPU utilisation figures
> (used in cases of line-rate performance) are summed across all CPUs.
> net.core.gro_normal_batch was left at its default value of 8.
...
> The above results are fairly mixed, and in most cases not statistically
> significant. But I think we can roughly conclude that the series
> marginally improves non-GROable throughput, without hurting latency
> (except in the large-payload busy-polling case, which in any case yields
> horrid performance even on net-next (almost triple the latency without
> busy-poll). Also, drivers which, unlike sfc, pass UDP traffic to GRO
> would expect to see a benefit from gaining access to batching.
>
> Changed in v3:
> * gro_normal_batch sysctl now uses SYSCTL_ONE instead of &one
> * removed RFC tags (no comments after a week means no-one objects, right?)
>
> Changed in v2:
> * During busy poll, call gro_normal_list() to receive batched packets
> after each cycle of the napi busy loop. See comments in Patch #3 for
> complications of doing the same in busy_poll_stop().
>
> [1]: Cohen 1959, doi: 10.1080/00401706.1959.10489859
Series applied, thanks Edward.
next prev parent reply other threads:[~2019-08-09 1:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-06 13:52 [PATCH v3 net-next 0/3] net: batched receive in GRO path Edward Cree
2019-08-06 13:53 ` [PATCH v3 net-next 1/3] sfc: don't score irq moderation points for GRO Edward Cree
2019-08-06 13:53 ` [PATCH v3 net-next 2/3] sfc: falcon: " Edward Cree
2019-08-06 13:53 ` [PATCH v3 net-next 3/3] net: use listified RX for handling GRO_NORMAL skbs Edward Cree
2019-08-09 1:22 ` David Miller [this message]
2019-08-09 17:14 ` [PATCH v3 net-next 0/3] net: batched receive in GRO path Ioana Ciocoi Radulescu
2019-08-09 17:32 ` Edward Cree
2019-08-12 17:51 ` Ioana Ciocoi Radulescu
2019-08-12 18:20 ` Eric Dumazet
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=20190808.182259.1921801896274965443.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ecree@solarflare.com \
--cc=eric.dumazet@gmail.com \
--cc=linux-net-drivers@solarflare.com \
--cc=netdev@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).