adaptive-replacement-cache · research · also ARC

Adaptive Replacement Cache

Adaptive Replacement Cache adjusts a recency/frequency balance using resident lists and nonresident histories.

Related Observatory article: Read on hesela.com

FAST 2003 ARC assumes equal-sized, demand-paged items. T1 and T2 hold cached pages seen once and at least twice recently; B1 and B2 retain evicted identities. Resident hits move the page to T2's head. The directory has at most 2c entries for c cache pages; per-request work is constant. [1]

The recency target p is capped at c on B1 hits and floored at zero on B2 hits. It is a target, not a reserved partition: p starts at zero while distinct requests can fill T1. REPLACE uses updated p. At equality, a B2 hit chooses a nonempty T1; otherwise T1 supplies the victim only when its length exceeds p. The new-page direct-discard path is separate. [1]

Starting empty with c = 2, A, B, A, B puts both pages in T2 with p = 0. On request C, T1 is empty, so REPLACE evicts A from T2 before C enters T1. Scan resistance therefore does not preserve every T2 resident. [1]

Reported hit ratios were workload-dependent. ARC achieved 15.94% against 8.93% for LRU on P12 at 32,768 pages and 22.52% against 11.65% on DS1 at 2,097,152 pages. On Merge(S) at 4,194,304 pages, ARC reported 87.26% against LRU 87.30%. It did not win every comparison, and gaps need not decrease monotonically as capacity grows. [1]

A derived file-system cache handles pinned blocks, changing capacity and blocks from 512 bytes to 128 KB. Its 2.3 release balances data, metadata, recency and frequency by bytes of ghost hits, not one page count. [3] Ghost histories cost memory, and a 2015 admission policy outperformed ARC on a database trace. [4]

Relations

related
Ghost cache entry, Least recently used replacement, Cache pollution, Reuse distance, AMP buffer caching

Advantages

  • ARC can replace one-time scan entries in T1 while retaining reused pages in T2, but its scan resistance is not immunity from T2 eviction. [1]

Limitations

  • Like other policies built on LRU lists, it updates a list on every hit and so keeps the locking cost of LRU. [5]
  • It does not help a loop slightly larger than the cache: loops of 101 and 110 entries in a 100-entry cache give a hit ratio of 0.00, as with LRU. [1]

Citations

  1. Nimrod Megiddo and Dharmendra S. Modha. ARC: A Self-Tuning, Low Overhead Replacement Cache. FAST 2003, pp. 115-130; Figure 4 and Tables V, VI and VIII. (accessed 2026-10-30)
  2. OpenZFS module/zfs/arc.c, release zfs-2.3.0, header comment and eviction-balance code. (accessed 2026-10-16)
  3. Einziger, Friedman and Manes. TinyLFU: A Highly Efficient Cache Admission Policy. arXiv:1512.00727v2, 2015. (accessed 2026-10-16)
  4. Bansal and Modha. CAR: Clock with Adaptive Replacement. USENIX FAST 2004, introduction. (accessed 2026-10-16)

Further reading

  1. Hesela: mapping caches, scan phases and cache-history semantics (constructed examples) (accessed 2026-10-15)
Sources & caveats
  • The ARC and CAR papers have authors at an industrial research laboratory (IBM Almaden), so the trace results are the proposing authors' own.
  • The TinyLFU authors propose a competing scheme, so its comparisons with ARC are theirs.
  • The paper traces predate 2003 and use 4 KB pages, or 512-byte pages for the workstation traces, inferred from 16 MB for 32,768 pages.
  • The OpenZFS cache is a design lineage rather than the exact algorithm; its description is from the zfs-2.3.0 source comment and code.
  • Loop and two-pool results (0.502 for ARC against 0.302 for LRU, cache of 150) come from a constructed Python simulation of the paper's algorithm figure with fixed seeds, not from a measured system.
  • Arithmetic: 15.94 / 8.93 = about 1.8 times and 22.52 / 11.65 = about 1.9 times.
  • The A, B, A, B, C sequence is a deduction from Figure 4, not a device measurement.

JSON: /data/terms/adaptive-replacement-cache.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Adaptive Replacement Cache. Hesela. 2026-11-21. https://hesela.dev/terms/adaptive-replacement-cache/