Performance
Cheat sheet · https://pcornel.dk/topic.php?topic=4144
Answer
Observed application latency is the sum of client/VFS work, protocol round trips and queueing, network transport, server processing, filesystem/cache behavior and backend storage completion. Tuning one mount option cannot compensate for an unidentified bottleneck.
Remember
- High bandwidth ≠ low NFS latency.
- Client cache hit ≠ backend performance.
- Large rsize/wsize ≠ universally faster.
- Mount tuning ≠ proof the server/backend is healthy.
First checks
nfsstat -c— retransmissions and opsmountstats <mount>— per-op latencynfsiostat 1— throughput/latency
Verify in this order
client op → network → server → disk → reply
Where it usually breaks
First mismatch in client identity/DNS → network transport → protocol session → authentication/authorization → export/share → backend filesystem → file operation; preserve identity/pre-state before mutation.
NFS → Performance file-service map
| File-service boundary | What to verify | Proof limit |
|---|---|---|
| Endpoint / namespace | Correct client, server, export/share, path and negotiated protocol version | Reachability or namespace visibility does not prove authorization or backend health |
| Identity / security | Effective identity, protocol security state and export/share/filesystem authorization | Authentication or one permission layer does not prove complete file access |
| Failure boundary | A fast synthetic sequential test does not prove metadata-heavy, sync-write or small-file application performance, and average latency can hide tail-latency stalls. | Correlate client, network, server and filesystem evidence for the same operation/time window |
| Acceptance | Healthy evidence: workload-shaped tests show acceptable operation latency and throughput with low retransmission while server and backend queues remain within design limits. | Close only after the original operation and server-side/read-back verification succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4144