From: Robert Hancock <robert.hancock@calian.com>
To: "kuba@kernel.org" <kuba@kernel.org>
Cc: "harinik@xilinx.com" <harinik@xilinx.com>,
"michals@xilinx.com" <michals@xilinx.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"edumazet@google.com" <edumazet@google.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"radheys@xilinx.com" <radheys@xilinx.com>,
"davem@davemloft.net" <davem@davemloft.net>
Subject: Re: [PATCH net-next] net: axienet: Use NAPI for TX completion path
Date: Thu, 5 May 2022 18:56:41 +0000 [thread overview]
Message-ID: <c714f499a07bc764c8f34c85cac596c3494b53e7.camel@calian.com> (raw)
In-Reply-To: <20220505110817.74938ad8@kernel.org>
On Thu, 2022-05-05 at 11:08 -0700, Jakub Kicinski wrote:
> On Thu, 5 May 2022 17:33:39 +0000 Robert Hancock wrote:
> > On Wed, 2022-05-04 at 19:20 -0700, Jakub Kicinski wrote:
> > > On Mon, 2 May 2022 19:30:51 +0000 Radhey Shyam Pandey wrote:
> > > > Thanks for the patch. I assume for simulating heavy network load we
> > > > are using netperf/iperf. Do we have some details on the benchmark
> > > > before and after adding TX NAPI? I want to see the impact on
> > > > throughput.
> > >
> > > Seems like a reasonable ask, let's get the patch reposted
> > > with the numbers in the commit message.
> >
> > Didn't mean to ignore that request, looks like I didn't get Radhey's email
> > directly, odd.
> >
> > I did a test with iperf3 from the board (Xilinx MPSoC ZU9EG platform)
> > connected
> > to a Linux PC via a switch at 1G link speed. With TX NAPI in place I saw
> > about
> > 942 Mbps for TX rate, with the previous code I saw 941 Mbps. RX speed was
> > also
> > unchanged at 941 Mbps. So no real significant change either way. I can spin
> > another version of the patch that includes these numbers.
>
> Sounds like line rate, is there a difference in CPU utilization?
Some measurements on that from the TX load case - in both cases the RX and TX
IRQs ended up being split across CPU0 and CPU3 due to irqbalance:
Before:
CPU0 (RX): 1% hard IRQ, 13% soft IRQ
CPU3 (TX): 12% hard IRQ, 30% soft IRQ
After:
CPU0 (RX): <1% hard IRQ, 29% soft IRQ
CPU3 (TX): <1% hard IRQ, 21% soft IRQ
The hard IRQ time is definitely lower, and the total CPU usage is lower as well
(56% down to 50%). It's interesting that so much of the CPU load ended up on
the CPU with the RX IRQ though, presumably because the RX and TX IRQs are
triggering the same NAPI poll operation. Since they're separate IRQs that can
be on separate CPUs, it might be a win to use separate NAPI poll structures
for RX and TX so that both CPUs aren't trying to hit the same rings (TX and
RX)?
--
Robert Hancock
Senior Hardware Designer, Calian Advanced Technologies
www.calian.com
next prev parent reply other threads:[~2022-05-05 18:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-29 22:28 [PATCH net-next] net: axienet: Use NAPI for TX completion path Robert Hancock
2022-05-02 19:30 ` Radhey Shyam Pandey
2022-05-05 2:20 ` Jakub Kicinski
2022-05-05 17:33 ` Robert Hancock
2022-05-05 18:08 ` Jakub Kicinski
2022-05-05 18:56 ` Robert Hancock [this message]
2022-05-05 20:15 ` Robert Hancock
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=c714f499a07bc764c8f34c85cac596c3494b53e7.camel@calian.com \
--to=robert.hancock@calian.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=harinik@xilinx.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=michals@xilinx.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=radheys@xilinx.com \
/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).