Miss-ratio curve
A miss-ratio curve relates cache capacity to the fraction of requests that miss under a specified workload, policy and initial state.
For equal-size demand-admitted LRU, count cold accesses plus reuses whose zero-based distinct-entry distance is at least the capacity, then divide by all requests. A one-based stack-distance formulation instead counts distances exceeding capacity. [1]
In the cold-start trace 0,1,2,0,0,2,1, capacities 1, 2 and 3 give 6/7, 5/7 and 3/7 misses. These are constructed counts, not device-speed predictions. [2]
A trace starting mid-workload does not reveal the initial cache contents. Preserve the observation layer, history and time window; a whole-run aggregate can hide changing locality. [1]
A rising estimated LRU curve need not be a policy anomaly. Counter Stacks describes negative histogram bins from simultaneous HyperLogLog register updates; carrying negative mass forward to discount later positive bins restores monotonicity but not exactness. [1]
The linked synthetic example shows why clipping negative bins alone invents hits. It preserves raw and corrected values and the request denominator; it is not a trace replay or a performance measurement. [3]
Monotonicity depends on the policy. Waldspurger et al. observed nonmonotonic ARC behavior and LIRS behavior with a bounded S stack; this is distinct from sampling noise in an LRU estimate. [4]
A throughput-derived hit target can be checked against listed capacities, but a sparse curve does not establish the minimum between samples or guarantee the same profile after a workload change. [5]
Relations
- related
- Reuse distance, Least recently used replacement, Cache inclusion property, Belady anomaly, Working set, Locality of reference, Request hit ratio, SHARDS, StatStack, StatCache, Counter Stacks, Average eviction time (AET), Working-set footprint, Che approximation, Independent reference model, MIMIR, Cliffhanger, Argon
Citations
- Wires et al. Characterizing Storage Workloads with Counter Stacks. OSDI 2014, pp. 335-349; sections 2, 3.2 and 6.1.
- Hesela. LRU sizing from distinct-entry reuse distances; constructed examples.
- Hesela. Signed histogram correction: constructed ten-request arithmetic and executable tests.
- Waldspurger et al. Cache Modeling and Optimization using Miniature Simulations. USENIX ATC 2017, sections 1.1, 3.2 and 4.1.
- Hesela: discrete cache profiles and budget feasibility, synthetic example.