Table of Contents

NFS

https://stackoverflow.com/questions/72493803/why-did-nfs-switch-from-udp-to-tcp-as-the-standard-protocol-in-version-4

A new feature, available for both 2.4 and 2.5 kernels but not yet integrated into the mainstream kernel at the time 
of this writing, is NFS over TCP. Using TCP has a   distinct advantage and a distinct disadvantage over UDP. 
The advantage is that it works far better than UDP on lossy networks. When using TCP, a single dropped packet 
can be retransmitted, without the retransmission of the entire RPC request, resulting in better performance 
on lossy networks. In addition, TCP will handle network speed differences better than UDP, due to the underlying 
flow control at the network level. 

performance

On server /etc/exports:

On client /etc/fstab:

diagnostic

NFS/Troubleshooting

mountstats --nfs

Issues

slow dir listing

Setup 3 identical VMs with Debian 11. On one of machine entering into NFGS directory is insanely slow.

Reason - debug enabled:

rpcdebug -m nfs -s all

Disable it:

rpcdebug -m nfs -c all