From: Robin Murphy <robin.murphy@arm.com>
To: Lucas via Bugspray Bot <bugbot@kernel.org>,
jlayton@kernel.org, chuck.lever@oracle.com,
linux-nfs@vger.kernel.org, iommu@lists.linux.dev, cel@kernel.org,
trondmy@kernel.org, anna@kernel.org
Subject: Re: NFS Server Issues with RDMA in Kernel 6.13.6
Date: Fri, 14 Mar 2025 10:43:11 +0000 [thread overview]
Message-ID: <e59f75ea-9b50-45dc-aa89-f0e02aa4e787@arm.com> (raw)
In-Reply-To: <20250313-b219865c2-ff4305a1f238@bugzilla.kernel.org>
On 2025-03-13 7:20 pm, Lucas via Bugspray Bot wrote:
[...]
> system: Suermicro AS-4124GS-TNR
> cpu: AMD EPYC 7H12 64-Core Processor
> ram: 512G
> rdma nic: Mellanox Technologies MT2910 Family [ConnectX-7]
>
>
>>> [ 976.677373] __dma_map_sg_attrs+0x139/0x1b0
>>> [ 976.677380] dma_map_sgtable+0x21/0x50
>>
>> So, here (and above) is where we leave the NFS server and venture into
>> the IOMMU layer. Adding the I/O folks for additional eyes.
>>
>> Can you give us the output of:
>>
>> $ scripts/faddr2line drivers/iommu/iova.o alloc_iova+0x92
>>
>
>
> root@test:/usr/src/linux-6.13.6# scripts/faddr2line drivers/iommu/iova.o alloc_iova+0x92
> alloc_iova+0x92/0x290:
> __alloc_and_insert_iova_range at /usr/src/linux-6.13.6/drivers/iommu/iova.c:180
> (inlined by) alloc_iova at /usr/src/linux-6.13.6/drivers/iommu/iova.c:263
> root@test:/usr/src/linux-6.13.6#
OK so this is waiting for iova_rbtree_lock to get into the allocation
slowpath since there was nothing suitable in the IOVA caches. Said
slowpath under the lock is unfortunately prone to being quite slow,
especially as the rbtree fills up with massive numbers of relatively
small allocations (which I'm guessing I/O with a 4KB block size would
tend towards). If you have 256 threads all contending the same path then
they could certainly end up waiting a while, although they shouldn't be
*permanently* stuck...
Thanks,
Robin.
next prev parent reply other threads:[~2025-03-14 10:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-13 18:35 NFS Server Issues with RDMA in Kernel 6.13.6 Lucas via Bugspray Bot
2025-03-13 18:44 ` Chuck Lever
2025-03-13 19:20 ` Lucas via Bugspray Bot
2025-03-14 10:43 ` Robin Murphy [this message]
2025-03-14 20:26 ` Chuck Lever
2025-03-24 16:55 ` Lucas via Bugspray Bot
2025-03-24 18:35 ` Chuck Lever via Bugspray Bot
2025-03-26 23:00 ` Lucas via Bugspray Bot
2025-04-01 14:10 ` Chuck Lever via Bugspray Bot
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=e59f75ea-9b50-45dc-aa89-f0e02aa4e787@arm.com \
--to=robin.murphy@arm.com \
--cc=anna@kernel.org \
--cc=bugbot@kernel.org \
--cc=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=iommu@lists.linux.dev \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@kernel.org \
/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