liveBook · Manning

Cache miss ratio

As explained in Latency

Cache miss ratio is the proportion of cache accesses that do not find the requested data in the cache.

Cache miss ratio is the proportion of cache accesses that fail to find the requested data. Calculate it as misses divided by total accesses, or as 1 minus the cache hit ratio. section 6.2 section 6.5

Interpret the metric operationally:

  • A 0% miss ratio means every access is served from the cache; 100% means every access reaches primary storage. section 6.5
  • A high miss ratio can make caching ineffective because cache lookup overhead combines with slow backing-store access. section 6.2
  • Reduce misses by fitting the working set in the cache and selecting a replacement policy suited to the workload. section 6.5

Working-set pressure

A 10 MB working set placed in a 1 MB cache produces more misses than a cache large enough to hold the working set, increasing backing-store accesses and latency. section 6.5

Figure 6.5 Average cache access latency (y axis) approaches cache hit latency as the cache hit ratio (x axis) increases toward 100%.
Figure 6.5: Average cache access latency (y-axis) approaches cache hit latency as the cache hit rate (x-axis) increase towards 100%.

Relate cache miss ratio to average access latency: as the hit ratio approaches 100%, average latency approaches cache-hit latency. section 6.5

How Latency covers it

How deep it goes
Defines the ratio, interprets endpoint values, and connects misses to capacity, replacement policy, and latency.
Examples
Uses 10 MB and 1 MB working-set sizes plus latency curves showing cache-hit and cache-miss effects.
What you can do after
Diagnose cache effectiveness and prioritize capacity or replacement-policy changes to reduce backing-store accesses.
How it connects
Links cache hit ratio with backing store, cache replacement policy, working set, negative caching, and access latency.

Also explained in

Compare how 2 books explain cache miss ratio →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Latency. The section links point to the parts of the book it draws on.