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.
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
- Belady, Nelson and Shedler. An anomaly in space-time characteristics of certain programs running in a paging machine. CACM, 1969.
- 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.
- 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.
- Hesela: cumulative and suffix-only FIFO counts from the existing pinned finite replay.