Public bug reported:
[Impact]
Since 6.8.0-150, an NFSv4.2 server exporting over RDMA (RoCE) stalls repeatedly
under normal read
load. On the client the mount freezes for about a minute, recovers, and freezes
again. The same two
machines ran the same workload over RDMA for three weeks on 6.8.0-149 with no
stalls. We moved both
mounts to proto=tcp, and there have been no stalls since.
[Environment]
- /proc/version_signature: Ubuntu 6.8.0-151.151-generic 6.8.12
- Two servers, both Ubuntu 24.04.5, kernel 6.8.0-151-generic (first booted
2026-11-27/28).
- NIC: Mellanox ConnectX-6 Dx (MT2892, 15b3:101d), firmware 22.44.1036, in-tree
mlx5_core.
- RoCE over a direct 100 GbE cable between the two machines, MTU 9000, no
switch.
- Server: nfsd with 128 threads, RDMA listener on port 20049 (/etc/nfs.conf.d:
rdma=y,
rdma-port=20049).
- Client mount: nfs4, vers=4.2, proto=rdma, port=20049, rsize=wsize=1048576,
hard.
- Each machine exports one filesystem to the other, so each is both server and
client. The stall
was seen on one of the two exports; the other was moved to TCP as a
precaution.
[Observed, 2026-11-30, first heavy NFS load after booting -151]
- From about 11:20 local time, the client's mount answered in bursts, with
stalls of about a
minute in between.
- On the server, 22-27 of the 128 nfsd threads were in D state with stacks in
svc_rdma_send /
svc_rdma_post_chunk_ctxt. The rest of the thread pool was idle.
- On the server, rdma_stat_sq_starve reached 3,239.
- On the client, the RDMA transport reconnected 112 times in 5 hours, with
thousands of RPCs
outstanding.
- The kernel log had no hung-task ("blocked for more than") messages and no
mlx5 errors.
- We moved the client's mount to TCP (full unmount, then remount with
proto=tcp). When the RDMA
transport closed, the number of stuck nfsd threads on the server dropped to
0. There have been
no stalls since: 3 days, including one full power cycle.
[Suspected cause]
6.8.0-150.150 added six svcrdma changes and one xprtrdma change,
including:
- svcrdma: Add Write chunk WRs to the RPC's Send WR chain
As far as we know, upstream merged a change with this title and later reverted
it (around April
2024) because of an NFS/RDMA regression. We have not confirmed the exact
commits. What we see,
Send queue starvation with threads waiting for Send completions, would be
consistent with a
problem in how Write chunk WRs are chained onto the Send WR.
-150 also contains "svcrdma: wake sq waiters when the transport closes"
(CVE-2026-64281). The
stall happens with that fix in place, so this is a different bug.
6.8.0-149 has none of the -150 svcrdma changes, and we saw no stalls on
it.
[Test case]
1. Server on 6.8.0-150 or -151, exporting a ZFS-backed filesystem over RDMA
(RoCE, ConnectX-6 Dx).
2. The client mounts with proto=rdma and runs many parallel readers of large
files (tens of
readers, 1 MB reads; in our case image files of 0.1-3 GB each).
3. On 2026-11-30 this took minutes: nfsd threads piled up in D state in
svc_rdma_send,
rdma_stat_sq_starve (/proc/sys/sunrpc/svc_rdma/rdma_stat_sq_starve) grew,
and the client's mount
stalled for about a minute at a time.
4. The same workload on 6.8.0-149 ran three weeks without stalls. We did not
record sq_starve then.
[Workaround]
Mount with proto=tcp on the clients.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
** Tags: noble regression-update
** Attachment added: "lspci -vnvn from the NFS server (serial numbers removed)"
https://bugs.launchpad.net/bugs/2187605/+attachment/6024349/+files/lspci-vnvn.log
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2187605
Title:
NFS server over RDMA stalls under load since 6.8.0-150: nfsd threads
stuck in svc_rdma_send, sq_starve climbs (regression from 6.8.0-149)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2187605/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs