Cache inclusion property
The cache inclusion property requires the resident set at a smaller capacity to be contained in that at a larger capacity after each shared request prefix under the same replacement policy.
Fully associative, equal-size demand LRU has this property, so a hit at the smaller capacity remains a hit at the larger one. This is a capacity-comparison property, not a claim that a physical multi-level cache hierarchy is inclusive. [1]
Passing a finite trace sweep does not prove the property for an arbitrary policy. [2]
SIEVE violates inclusion in a concrete replay. After AABBCCDE, three slots hold C,D,E while four hold A,B,C,E. A following D hits only in the smaller cache and gives five versus six total misses over AABBCCDED. [3]
Demand LRU's inclusion property does not automatically survive composition with asynchronous prefetching. Gill and Modha show a sequential-prefetch policy whose miss count can increase with cache space, and repair its ordering of prefetched tracks. This is not a counterexample to demand LRU itself. [4]
Inclusion across capacities and optimality at one capacity answer different questions. The linked finite-state example separately fixes object sizes, capacity and admission before comparing a heuristic with an exact minimum. [5]
The same-stream condition matters in a hierarchy. In the constructed read trace ABCABDEA, increasing the upper LRU cache from two to three equal-size slots while keeping an independent lower LRU at four slots raises backend reads from five to six. Upper hits hide recency updates from the lower cache, which sees a different sequence. Each standalone LRU still has inclusion on a fixed stream. The model starts empty, admits every miss and has no back-invalidation, cross-level pinning or prefetch. [6]
Relations
- related
- Least recently used replacement, First-in first-out cache replacement, Belady anomaly, SIEVE cache eviction, SARC, Farthest-in-future replacement
Citations
- Wires et al. Characterizing Storage Workloads with Counter Stacks. OSDI 2014 author slides, pages 20-22: inclusion and LRU stack algorithms.
- Hesela: finite cache-capacity replay, with full traces and assumptions.
- Hesela: SIEVE capacity counterexample, pinned library replay and per-request state trace; constructed example, not device timing.
- Gill and Modha. SARC, USENIX ATC 2005, section II-C and Figure 1: prefetch ordering and loss of the stack property.
- Hesela: variable-size offline cache bounds and admission controls; constructed exact calculation.
- Hesela. Two independently managed LRU caches: exact constructed trace, contract, code and controls; not a device measurement.