[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5b669c86-773d-a46e-4925-03281f10ef12@huawei.com>
Date: Thu, 30 Mar 2023 10:36:53 +0800
From: Yunsheng Lin <linyunsheng@...wei.com>
To: Jakub Kicinski <kuba@...nel.org>, Joerg Roedel <joro@...tes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>
CC: <iommu@...ts.linux.dev>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Willem de Bruijn <willemb@...gle.com>,
Saeed Mahameed <saeed@...nel.org>
Subject: Re: AMD IOMMU problem after NIC uses multi-page allocation
On 2023/3/30 9:14, Jakub Kicinski wrote:
> 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?
My bell points to below info, not sure if it will help?
https://lore.kernel.org/linux-iommu/20190815121104.29140-3-thunder.leizhen@huawei.com/
> .
>
Powered by blists - more mailing lists