netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* AMD IOMMU problem after NIC uses multi-page allocation
@ 2023-03-30  1:14 Jakub Kicinski
  2023-03-30  2:36 ` Yunsheng Lin
  2023-03-30  7:41 ` Joerg Roedel
  0 siblings, 2 replies; 7+ messages in thread
From: Jakub Kicinski @ 2023-03-30  1:14 UTC (permalink / raw)
  To: Joerg Roedel, Suravee Suthikulpanit
  Cc: iommu, netdev@vger.kernel.org, Willem de Bruijn, Saeed Mahameed

Hi Joerg, Suravee,

I see an odd NIC behavior with AMD IOMMU in lazy mode (on 5.19).

The NIC allocates a buffer for Rx packets which is MTU rounded up 
to page size. If I run it with 1500B MTU or 9000 MTU everything is
fine, slight but manageable perf hit.

But if I flip the MTU to 9k, run some traffic and then go back to 1.5k 
- 70%+ of CPU cycles are spent in alloc_iova (and children).

Does this ring any bells?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-03-31  4:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-30  1:14 AMD IOMMU problem after NIC uses multi-page allocation Jakub Kicinski
2023-03-30  2:36 ` Yunsheng Lin
2023-03-30  7:41 ` Joerg Roedel
2023-03-30 12:07   ` Vasant Hegde
2023-03-30 13:04   ` Robin Murphy
2023-03-30 13:10     ` Robin Murphy
2023-03-31  4:06       ` Jakub Kicinski

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).