Pcornel
Storage · NFS

Performance

Cheat sheet · https://pcornel.dk/topic.php?topic=4144

Back to the Topic

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 ops
  • mountstats <mount> — per-op latency
  • nfsiostat 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 boundaryWhat to verifyProof limit
Endpoint / namespaceCorrect client, server, export/share, path and negotiated protocol versionReachability or namespace visibility does not prove authorization or backend health
Identity / securityEffective identity, protocol security state and export/share/filesystem authorizationAuthentication or one permission layer does not prove complete file access
Failure boundaryA 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?