belady-anomaly · research · also Belady's anomaly, FIFO capacity anomaly

Belady anomaly

A Belady anomaly occurs when a replacement policy produces more misses with a larger cache than with a smaller cache on the same reference string and initial-state convention.

Related Observatory article: Read on hesela.com

Belady, Nelson and Shedler studied the FIFO case in 1969. [1]

The 2010 unboundedness result varies capacities and reference strings; it is not an unbounded ratio for fixed capacities. [2]

The phenomenon is not confined to FIFO. In Hesela's pinned SIEVE replay, AABBCCDED produces five misses with three slots and six with four, with immediate admission and equal-size objects. CLOCK with one bit and initial frequency zero also shows the increase. [4]

Observation window: in the linked five-versus-six-slot FIFO replay, the first 55 requests favor the larger cache (35 versus 36 misses), but 76 requests reverse the comparison (56 versus 43). Every 21-request suffix adds 21 versus 7 misses; the initial 34-request prefix is included in cumulative totals. An anomaly ratio is a ratio of miss counts, not a miss probability or a latency ratio. [5]

Relations

related
First-in first-out cache replacement, Cache inclusion property, Least recently used replacement, SIEVE cache eviction, Kosmo

Citations

  1. Belady, Nelson and Shedler. An anomaly in space-time characteristics of certain programs running in a paging machine. CACM, 1969. (accessed 2026-10-17)
  2. Peter Fornai and Antal Ivanyi. FIFO anomaly is unbounded. Acta Univ. Sapientiae, Informatica 2(1), 2010, pp. 80-89; sections 2-5, arXiv:1003.1336v2. (accessed 2026-10-17)
  3. Hesela: finite cache-capacity replay, with full traces and assumptions. (accessed 2026-10-17)
  4. Hesela: SIEVE capacity counterexample, pinned library replay and per-request state trace; constructed example, not device timing. (accessed 2026-10-19)
  5. Hesela: cumulative and suffix-only FIFO counts from the existing pinned finite replay. (accessed 2026-11-21)
Sources & caveats
  • Hesela replays finite examples, not real hardware or a workload survey. [3]
  • Original ACM full text was unavailable; historical metadata was checked against the publication record. [1]

JSON: /data/terms/belady-anomaly.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Belady anomaly. Hesela. 2026-11-21. https://hesela.dev/terms/belady-anomaly/