From: Andrew Lunn <andrew@lunn.ch>
To: Ioana Ciornei <ciorneiioana@gmail.com>
Cc: davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
ruxandra.radulescu@nxp.com, Ioana Ciornei <ioana.ciornei@nxp.com>
Subject: Re: [PATCH net-next 2/3] dpaa2-eth: add rx copybreak support
Date: Thu, 1 Apr 2021 22:19:28 +0200 [thread overview]
Message-ID: <YGYq0E/vZe65R7kk@lunn.ch> (raw)
In-Reply-To: <20210401201350.vxyivlvvur6iqdp4@skbuf>
On Thu, Apr 01, 2021 at 11:13:50PM +0300, Ioana Ciornei wrote:
> On Thu, Apr 01, 2021 at 08:49:43PM +0200, Andrew Lunn wrote:
> > Hi Ioana
> >
> > > +#define DPAA2_ETH_DEFAULT_COPYBREAK 512
> >
> > This is quite big. A quick grep suggest other driver use 256.
> >
> > Do you have some performance figures for this?
> >
>
> Hi Andrew,
>
> Yes, I did some tests which made me end up with this default value.
>
> A bit about the setup - a LS2088A SoC, 8 x Cortex A72 @ 1.8GHz, IPfwd
> zero loss test @ 20Gbit/s throughput. I tested multiple frame sizes to
> get an idea where is the break even point.
>
> Here are 2 sets of results, (1) is the baseline and (2) is just
> allocating a new skb for all frames sizes received (as if the copybreak
> was even to the MTU). All numbers are in Mpps.
>
> 64 128 256 512 640 768 896
>
> (1) 3.23 3.23 3.24 3.21 3.1 2.76 2.71
> (2) 3.95 3.88 3.79 3.62 3.3 3.02 2.65
>
> It seems that even for 512 bytes frame sizes it's comfortably better when
> allocating a new skb. After that, we see diminishing rewards or even worse.
Nice. If you need to respin, consider putting this in patch 0/3.
Andrew
next prev parent reply other threads:[~2021-04-01 20:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 16:39 [PATCH net-next 0/3] dpaa2-eth: add rx copybreak support Ioana Ciornei
2021-04-01 16:39 ` [PATCH net-next 1/3] dpaa2-eth: rename dpaa2_eth_xdp_release_buf into dpaa2_eth_recycle_buf Ioana Ciornei
2021-04-01 23:42 ` Andrew Lunn
2021-04-01 16:39 ` [PATCH net-next 2/3] dpaa2-eth: add rx copybreak support Ioana Ciornei
2021-04-01 18:49 ` Andrew Lunn
2021-04-01 20:13 ` Ioana Ciornei
2021-04-01 20:19 ` Andrew Lunn [this message]
2021-04-01 21:44 ` kernel test robot
2021-04-01 16:39 ` [PATCH net-next 3/3] dpaa2-eth: export the rx copybreak value as an ethtool tunable Ioana Ciornei
2021-04-01 23:41 ` Andrew Lunn
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=YGYq0E/vZe65R7kk@lunn.ch \
--to=andrew@lunn.ch \
--cc=ciorneiioana@gmail.com \
--cc=davem@davemloft.net \
--cc=ioana.ciornei@nxp.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=ruxandra.radulescu@nxp.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).