Pcornel
Storage · Storage Performance

Write Amplification

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

Back to the Topic

Answer

Additional writes can arise from flash garbage collection, copy-on-write, parity, replication, metadata, journaling, checksums, snapshots, deduplication or small-write transformations. Amplification consumes bandwidth, endurance and latency budget, so frontend write rate alone can understate backend pressure.

Remember

  • Logical writes ≠ physical writes.
  • Write amplification is not one universal device-only metric; it can occur at several layers.
  • Replication increases backend bytes intentionally and should be distinguished from inefficient rewrite amplification.
  • A low logical write rate can still create heavy media activity.

First checks

  • nvme smart-log /dev/nvme0 — host vs media writes (vendor log)
  • zpool iostat -v — ZFS write amplification view
  • smartctl -A /dev/sdX | grep -i -e host_writes -e nand_writes — SATA SSD

Verify in this order

host write → layers → more media writes

Where it usually breaks

First mismatch in workload → filesystem/volume → queue/cache → path/protocol → controller/pool → media/backend → observed completion; preserve identity/pre-state before mutation.

Storage Performance → Write Amplification performance map

Measure/boundaryWhat to readProof limit
Workload shapeBlock size, random/sequential pattern, read/write mix, concurrency and working setWithout workload shape, performance metrics are not comparable
Service rateIOPS and throughput at the same time windowHigh service rate does not prove low latency or efficiency
Delay/queueingAverage plus tail latency and outstanding queue depthA spike identifies pressure, not automatically root cause
AcceptanceRepresentative workload meets its latency/throughput objective in steady stateRequired to close the performance investigation

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3866

Confirmation

Confirm action

Continue?