{
  "slug": "lazy-adaptive-replacement-cache",
  "term": "Lazy Adaptive Replacement Cache",
  "aliases": [
    "LARC"
  ],
  "definition": "Lazy Adaptive Replacement Cache filters flash-cache admission through an adaptive history of recently requested, uncached block identifiers.",
  "note": "LARC keeps resident blocks in an LRU queue Q and candidate identifiers, without payload, in a separate queue Qr. A request missing both queues goes to backing storage and records only its identifier, even when flash space is free. A later Qr match admits the block; a resident hit updates Q. [larc]\n\nThe history target Cr grows on resident misses and shrinks on resident hits, between 10% and 90% of resident capacity C. Algorithm 1 does not trim Qr in its resident-hit branch, so the target is not an instantaneous occupancy bound. [larc]\n\nCacheSack calls its related policy AdmitOnSecondMiss and uses a recency condition. Its production implementation also suppresses insertions for very recent reuse likely served by a lower-tier RAM buffer. These implementation-specific timing rules should not be substituted for LARC's original queue algorithm. [cachesack]",
  "related": [
    "cache-admission",
    "ghost-cache-entry",
    "cache-pollution",
    "lru-replacement",
    "cachesack",
    "marc",
    "fomo-cache-admission"
  ],
  "citations": [
    {
      "id": "larc",
      "title": "Huang, Wei, Chen, Chen and Feng. Improving Flash-based Disk Cache with Lazy Adaptive Replacement. MSST 2013, sections III and V.B; Algorithm 1.",
      "url": "https://msstconference.org/MSST-history/2013/Papers/2013.Paper.28.pdf",
      "accessed": "2026-11-29"
    },
    {
      "id": "marc",
      "title": "Santana, Lyons, Koller, Rangaswami and Liu. To ARC or not to ARC. HotStorage 2015, sections 2.4 and 3.",
      "url": "https://files.usenix.org/s3fs-public/cdn/hotstorage15-santana.pdf",
      "accessed": "2026-11-29"
    },
    {
      "id": "cachesack",
      "title": "Yang et al. CacheSack: Admission Optimization for Google Datacenter Flash Caches. USENIX ATC 2022, sections 5.2 and 7.1.",
      "url": "https://www.usenix.org/system/files/atc22-yang-tzu-wei.pdf",
      "accessed": "2026-11-29"
    }
  ],
  "status": "research",
  "advantages": [],
  "limitations": [
    {
      "text": "Always-on filtering delays admission after working-set changes; the mARC authors identify this warm-up trade-off when motivating state-dependent filtering.",
      "citationIds": [
        "marc"
      ]
    },
    {
      "text": "The historical flashcache prototype can fail to allocate a block because dirty or locked residents cannot be reused; it returns the candidate to Qr's LRU end.",
      "citationIds": [
        "larc"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-29",
  "provenance": [
    "Primary-source synthesis of the 2013 algorithm and later comparisons; no new device measurements or reproduction of reported speedups."
  ]
}
