RFC svcrdma: avoid OOM due to unbounded sc_send_ctxts cache
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | svcrdma: bound per-xprt sc_send_ctxts cache and apply backpressure on _getinclude/ include/ net/ +1 more | +39 | 2 replies | |
| 2/2 | for diagnostic use only: add svcrdma_wq lag diagnosticDocumentation/ | +146 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Benjamin Coddington | Claude Opus 4.7 (1M context) |
|---|---|---|
| 1/2 | Diagnosed-by | Co-Authored-By |
| 2/2 | Co-Authored-By |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH 0/2] svcrdma: avoid OOM due to unbounded sc_send_ctxts cache
Hi,
I drew the short-straw by having to take a hand-off from Ben on work he started with Claude yesterday in response to a really crazy OOM situation that hits like a freight train at one large customer's install that currently has 121 NFS clients and 9 NFS servers, all connected with RDMA networking. Working with Jon Flynn, to bound the problem a bit more we later scaled the testing down to 15 clients reading from 1 server using 16K O_DIRECT reads.
So I imported Ben's CLAUDE.md that he handed off and carried on, with patch 1/2 we're able to avoid OOM killing the NFS servers (each with 128GB) -- with the 16K test workload memory use would grow from ~12GB to exhaustion (128GB) within ~10 seconds of starting the test.
The 2nd patch in this series provides a diagnostic svcrdma-wq-lag.bt bpf script that Claude suggested -- I just dropped it in Documentation/filesystems/nfs/ but it isn't intended to go upstream.
Chuck,
Patch 1/2 is marked RFC because ultimately we suspect you'll have a better way to skin this cat... but Claude was pretty great at helping us cut through this nasty OOM situation with RDMA.
Please feel free to ask follow-up questions and we'll fill in any details as best we can.
Thanks,
Mike
Benjamin Coddington (1):
svcrdma: bound per-xprt sc_send_ctxts cache and apply backpressure on _get
Mike Snitzer (1):
for diagnostic use only: add svcrdma_wq lag diagnostic
.../filesystems/nfs/svcrdma-wq-lag.bt | 146 ++++++++++++++++++ include/linux/sunrpc/svc_rdma.h | 1 + include/trace/events/rpcrdma.h | 2 + net/sunrpc/xprtrdma/svc_rdma_sendto.c | 41 ++++- net/sunrpc/xprtrdma/svc_rdma_transport.c | 1 + 5 files changed, 185 insertions(+), 6 deletions(-) create mode 100755 Documentation/filesystems/nfs/svcrdma-wq-lag.bt
Signature · 1 line
2.44.0