From: Niklas Schnelle <schnelle@linux.ibm.com>
To: Dragos Tatulea <dtatulea@nvidia.com>,
Alexandra Winter <wintera@linux.ibm.com>,
Alexander Lobakin <aleksander.lobakin@intel.com>
Cc: Rahul Rameshbabu <rrameshbabu@nvidia.com>,
Saeed Mahameed <saeedm@nvidia.com>,
Tariq Toukan <tariqt@nvidia.com>,
Leon Romanovsky <leon@kernel.org>,
David Miller <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@google.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Nils Hoppmann <niho@linux.ibm.com>,
netdev@vger.kernel.org, linux-s390@vger.kernel.org,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Thorsten Winkler <twinkler@linux.ibm.com>,
Simon Horman <horms@kernel.org>,
Jason Gunthorpe <jgg@nvidia.com>
Subject: Re: [PATCH net-next] net/mlx5e: Transmit small messages in linear skb
Date: Wed, 11 Dec 2024 18:50:16 +0100 [thread overview]
Message-ID: <a0adafedaa41a135af28b3dc8075b8eacd22a396.camel@linux.ibm.com> (raw)
In-Reply-To: <89c67aa3-4b84-45c1-9e7f-a608957d5aeb@nvidia.com>
On Wed, 2024-12-11 at 18:28 +0100, Dragos Tatulea wrote:
> > > > >
---8<---
>
> > On 09.12.24 12:36, Tariq Toukan wrote:
> > > Hi,
> > >
> > > Many approaches in the past few years are going the opposite direction, trying to avoid copies ("zero-copy").
> > >
> > > In many cases, copy up to PAGE_SIZE means copy everything.
> > > For high NIC speeds this is not realistic.
> > >
> > > Anyway, based on past experience, threshold should not exceed "max header size" (128/256b).
> >
> > > > 1KB is still to large. As Tariq mentioned, the threshold should not
> > > > exceed 128/256B. I am currently testing this with 256B on x86. So far no
> > > > regressions but I need to play with it more.
> I checked on a x86 system with CX7 and we seem to get ~4% degradation
> when using this approach. The patch was modified a bit according to
> previous discussions (diff at end of mail).
>
> Here's how I tested:
> - uperf client side has many queues.
> - uperf server side has single queue with interrupts pinned to a single
> CPU. This is to better isolate CPU behaviour. The idea is to have the
> CPU on the server side saturated or close to saturation.
> - Used the uperf 1B read x 1B write scenario with 50 and 100 threads
> (profile attached).
> Both the on-cpu and off-cpu cases were checked.
> - Code change was done only on server side.
I'm assuming this is with the x86 default IOMMU pass-through mode?
Would you be able and willing to try with iommu.passthrough=0
and amd_iommu=on respectively intel_iommu=on? Check
/sys/bus/pci/devices/<dev>/iommu_group/type for "DMA-FQ" to make sure
the dma-iommu code is used. This is obviously not a "tuned for all out
perf at any cost" configuration but it is recommended in hardening
guides and I believe some ARM64 systems also default to using the IOMMU
for bare metal DMA API use. So it's not an unexpected configuration
either.
Thanks,
Niklas
next prev parent reply other threads:[~2024-12-11 17:50 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 14:02 [PATCH net-next] net/mlx5e: Transmit small messages in linear skb Alexandra Winter
2024-12-04 14:16 ` Eric Dumazet
2024-12-04 14:35 ` Alexandra Winter
2024-12-04 14:36 ` Eric Dumazet
2024-12-06 14:47 ` David Laight
2024-12-06 16:35 ` Eric Dumazet
2024-12-06 15:25 ` Alexandra Winter
2024-12-10 11:49 ` Dragos Tatulea
2024-12-11 16:19 ` Alexandra Winter
2024-12-11 17:36 ` Dragos Tatulea
2024-12-04 14:32 ` Alexander Lobakin
2024-12-06 15:20 ` Alexandra Winter
2024-12-09 11:36 ` Tariq Toukan
2024-12-10 11:44 ` Dragos Tatulea
2024-12-10 13:54 ` Alexander Lobakin
2024-12-10 17:10 ` Joe Damato
2024-12-11 13:35 ` Alexandra Winter
2024-12-11 17:28 ` Dragos Tatulea
2024-12-11 17:50 ` Niklas Schnelle [this message]
2024-12-13 20:41 ` Dragos Tatulea
2024-12-12 10:36 ` Christian Borntraeger
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=a0adafedaa41a135af28b3dc8075b8eacd22a396.camel@linux.ibm.com \
--to=schnelle@linux.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=aleksander.lobakin@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=borntraeger@linux.ibm.com \
--cc=davem@davemloft.net \
--cc=dtatulea@nvidia.com \
--cc=edumazet@google.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=horms@kernel.org \
--cc=jgg@nvidia.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=niho@linux.ibm.com \
--cc=pabeni@redhat.com \
--cc=rrameshbabu@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=svens@linux.ibm.com \
--cc=tariqt@nvidia.com \
--cc=twinkler@linux.ibm.com \
--cc=wintera@linux.ibm.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