Read Workload
Cheat sheet · https://pcornel.dk/topic.php?topic=3861
Answer
Reads can be satisfied from multiple cache layers or the backing store. A cache-heavy read workload may show excellent application latency while barely exercising the backend, whereas cold reads expose path and media performance. Read behavior therefore depends on working-set size and locality.
Remember
- Read-heavy ≠ backend-read-heavy when cache hit ratio is high.
- Successful reads do not prove writes or durability are healthy.
- Warm-cache latency ≠ cold-read latency.
- Read throughput can be limited by CPU/decompression/checksum work rather than media bandwidth.
First checks
iostat -x 1— r/s, rMB/s, r_awaitcat /proc/meminfo | grep -i cache— page cachearc_summary— ZFS read cache hit
Verify in this order
read → cache hit? → device
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 Workload performance map
| Measure/boundary | What to read | Proof limit |
|---|---|---|
| Workload shape | Block size, random/sequential pattern, read/write mix, concurrency and working set | Without workload shape, performance metrics are not comparable |
| Service rate | IOPS and throughput at the same time window | High service rate does not prove low latency or efficiency |
| Delay/queueing | Average plus tail latency and outstanding queue depth | A spike identifies pressure, not automatically root cause |
| Acceptance | Representative workload meets its latency/throughput objective in steady state | Required 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=3861