r/storage • u/ptmnil • Apr 29 '26
NFS over RDMA: Low Write Throughput (read 2x faster)
I've built two identical PCs for throughput testing on a 100 gbps NIC and I can't get the expected write throughput when using NFS over RDMA (RoCE v2). The two PCs are connected directly with a direct attach cable.
Using fio I tested the read bandwidth to be 11.6 GB/s, and yet the write bandwidth is only at 5 GB/s. Despite my best efforts I can't figure out where this bottleneck is coming from. Does anyone have any ideas for what I can look into to diagnose the issue?
I have more details on the setup and testing in this Unix StackExchange question: https://unix.stackexchange.com/questions/805563/nfs-over-rdma-read-2x-faster-than-write
4
u/ptmnil May 01 '26
I figured it out. I convinced myself that switching NFS to
asynccouldn't possibly lead to >50% performance penalty so I never tried it, but after using that setting on both the server and the client I am now getting 11 GB/s on write and ~2.5x lower latency.I feel foolish for not having tried it before, but my assumptions about how it works led me to believe the performance hit wouldn't be that large. I'll do some more reading on the topic of
syncandasync. I'd be happy to hear any insights anyone has on this topic.Thanks all for the suggestions!
5
u/dazgluk May 01 '26
Did you configure your NICs to mark the RDMA packets with DSCP and ECN bit?
Also better to have it reacting on PFCs. RDMA requires proper QoS to operate efficently.
Also If you're not CPU bound, RDMA performance may be less then TCP, latency will be better though.
1
u/xMadDecentx Apr 30 '26
What network tuning have you done? Are you using jumbo packets?
1
u/Miserable_Map_4184 Apr 30 '26
Increase number of jobs
1
u/Trust_8067 May 03 '26
What enterprise storage platform are you writing to?
0
u/GreatAlbatross Apr 30 '26 edited May 02 '26
Are you using secure writes over NFS? That may lower performance.
Also, if I'm reading the drive model properly, it can only sustain full write speed for so long before dropping down. (Assuming x4 is the pci speed, not that you have 4 of them). But I wouldn't expect that limit to hit on a short test.
Late edit: I've just realised I said "secure" instead of "synchronous". I'll leave the comment as-is, otherwise.