Pcornel
Storage · Storage Performance

Read / Write Ratio

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

Back to the Topic

Answer

The read/write mix changes cache usefulness, backend bandwidth, parity/replication overhead and media behavior. Ratios must state whether they refer to operations or bytes and should be measured over representative intervals because workload phases can differ dramatically.

Remember

  • A 70/30 ratio is ambiguous unless it states operations versus bytes.
  • Read/write ratio alone does not describe block size, randomness or concurrency.
  • Frontend ratio can differ from backend ratio because of cache, coalescing and write amplification.
  • An average daily ratio can hide short write-intensive peaks that set capacity requirements.

First checks

  • iostat -x 1 — reads vs writes
  • fio --rw=randrw --rwmixread=70 ... — mixed test
  • array stats — R/W ratio

Verify in this order

mix → design choices → performance

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 → Read / Write Ratio 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=3863

Confirmation

Confirm action

Continue?