{
  "slug": "cache-inclusion-property",
  "term": "Cache inclusion property",
  "aliases": [
    "Stack property",
    "Stack inclusion property"
  ],
  "definition": "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.",
  "note": "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. [counter-stacks]\n\nPassing a finite trace sweep does not prove the property for an arbitrary policy. [hesela]\n\nSIEVE 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. [capacity-replay]\n\nDemand 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. [sarc-order]\n\nInclusion 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. [oracle]\n\nThe 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. [filtering-model]",
  "related": [
    "lru-replacement",
    "fifo-replacement",
    "belady-anomaly",
    "sieve-eviction",
    "sarc",
    "farthest-in-future-replacement"
  ],
  "citations": [
    {
      "id": "counter-stacks",
      "title": "Wires et al. Characterizing Storage Workloads with Counter Stacks. OSDI 2014 author slides, pages 20-22: inclusion and LRU stack algorithms.",
      "url": "https://www.usenix.org/sites/default/files/conference/protected-files/osdi14_slides_wires.pdf",
      "accessed": "2026-10-17"
    },
    {
      "id": "hesela",
      "title": "Hesela: finite cache-capacity replay, with full traces and assumptions.",
      "url": "https://hesela.com/analyses/sieve-cache-eviction-traces/#capacity",
      "accessed": "2026-10-17"
    },
    {
      "id": "capacity-replay",
      "title": "Hesela: SIEVE capacity counterexample, pinned library replay and per-request state trace; constructed example, not device timing.",
      "url": "https://hesela.dev/research/sieve-capacity.json",
      "accessed": "2026-10-19"
    },
    {
      "id": "sarc-order",
      "title": "Gill and Modha. SARC, USENIX ATC 2005, section II-C and Figure 1: prefetch ordering and loss of the stack property.",
      "url": "https://www.usenix.org/legacy/events/usenix05/tech/general/full_papers/gill/gill_html/node10.html",
      "accessed": "2026-10-30"
    },
    {
      "id": "oracle",
      "title": "Hesela: variable-size offline cache bounds and admission controls; constructed exact calculation.",
      "url": "https://hesela.com/analyses/sieve-cache-eviction-traces/#offline-bound",
      "accessed": "2026-11-06"
    },
    {
      "id": "filtering-model",
      "title": "Hesela. Two independently managed LRU caches: exact constructed trace, contract, code and controls; not a device measurement.",
      "url": "https://hesela.dev/research/cache-filtering/README.md",
      "accessed": "2026-11-19"
    }
  ],
  "status": "research",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-19"
}
