Pcornel
Storage · Storage Performance

Cache Hit Ratio

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

Back to the Topic

Answer

A high hit ratio can improve read latency and reduce backend traffic, but its value depends on which cache, request type, working set and measurement denominator are used. Write caches also need occupancy, destage and durability interpretation rather than a simple hit percentage.

Remember

  • High cache hit ratio ≠ healthy backend.
  • Cache hit ratio from one layer does not describe all cache layers.
  • A high ratio can disappear when the working set grows or restarts invalidate warm state.
  • Cache effectiveness is not equivalent to durability.

First checks

  • arc_summary | grep -i 'hit ratio' — ZFS ARC hits
  • cat /proc/vmstat | grep -E 'pgpgin|pgmajfault' — page cache misses
  • array cache hit report — controller

Verify in this order

read → cache hit/miss → 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 → Cache Hit 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=3865

Confirmation

Confirm action

Continue?