That seems mostly right. Try a few combinations perhaps?
Code:
10.99.9.1:/cache /mnt/san01/cache nfs vers=4.2,proto=rdma,port=20049,defaults 0 0
The default option should fill in the rest (mostly) optimally.
Try vers=3 with and without nconnect=8 or 16 as well?
This is just to rule out some stupid mismatch between the two.
Here are the results.
Code:
10.99.9.1:/cache /mnt/san01/cache nfs vers=4.1,proto=tcp,hard,rsize=1048576,wsize=1048576 0 0
time sh -c 'dd if=/dev/zero of=/mnt/san01/cache/test.bin bs=1M count=4096 conv=fdatasync status=progress'
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB, 4.0 GiB) copied, 2.46141 s, 1.7 GB/s
real 0m2.570s
user 0m0.001s
sys 0m0.419s
Code:
10.99.9.1:/cache /mnt/san01/cache nfs vers=4.2,proto=rdma,port=20049,defaults 0 0
time sh -c 'dd if=/dev/zero of=/mnt/san01/cache/test.bin bs=1M count=4096 conv=fdatasync status=progress'
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB, 4.0 GiB) copied, 224.13 s, 19.2 MB/s
real 3m44.135s
user 0m0.002s
sys 0m0.450s
Code:
10.99.9.1:/cache /mnt/san01/cache nfs vers=3,proto=rdma,port=20049,defaults 0 0
time sh -c 'dd if=/dev/zero of=/mnt/san01-rdma/cache/test.bin bs=1M count=4096 conv=fdatasync status=progress'
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB, 4.0 GiB) copied, 264.74 s, 16.2 MB/s
real 4m24.745s
user 0m0.003s
sys 0m0.446s
Code:
10.99.9.1:/cache /mnt/san01/cache nfs vers=3,proto=rdma,port=20049,nconnect=8,defaults 0 0
time sh -c 'dd if=/dev/zero of=/mnt/san01-rdma/cache/test.bin bs=1M count=4096 conv=fdatasync status=progress'
4096+0 records in
4096+0 records out
4294967296 bytes (4.3 GB, 4.0 GiB) copied, 123.908 s, 34.7 MB/s
real 2m3.928s
user 0m0.009s
sys 0m0.397s