lrfu · research · also LRFU, Least Recently/Frequently Used

LRFU replacement

LRFU is a block-replacement policy that combines reference frequency with recency through exponentially decaying scores.

For 0 <= lambda <= 1 and q = 2^(-lambda), each reference contributes q^(current tick - reference tick); the smallest total score is evicted. The clock advances once per block reference, not per second. Lambda = 0 gives frequency ordering, while lambda = 1 gives LRU ordering. [1]

A score and its last-reference tick suffice. On another reference after d ticks, update C to 1 + q^d C. Compare blocks at a common current tick, not by their stored scores from different times. The basic implementation initializes a fetched block's score, so history retention across eviction must be specified. [1]

Example: with two slots and requests A,A,A,B, consider C at tick 5. At q = 1/2, A scores 7/16 and B scores 1/2, so A is evicted. Comparing their stale stored values, 7/4 and 1, wrongly selects B. At q = 3/4, the aligned scores are 333/256 and 3/4, so B is evicted. These are exact constructed scores, not measured cache performance. [3]

Relations

related
Least recently used replacement, LRU-K replacement, Kosmo, Cache pollution

Citations

  1. Lee et al. LRFU: A Spectrum of Policies that Subsumes the Least Recently Used and Least Frequently Used Policies. IEEE TC 50(12), 2001, sections 3-4. (accessed 2026-11-07)
  2. Hesela: exact LRFU score alignment example (JSON). (accessed 2026-11-07)
  3. Hesela: exact rational score calculation (Python). (accessed 2026-11-07)

Further reading

  1. University of Seoul publication record: LRFU, IEEE Transactions on Computers, 1352-1361. DOI 10.1109/TC.2001.970573. (accessed 2026-11-07)
Sources & caveats
  • Source review covers the base algorithm; correlated-reference masking and the optimized heap/list implementation are not reproduced. [1]
  • The constructed four-reference example uses equal-size blocks, an empty initial cache and exact rational arithmetic. It is not a reproduction of the paper's workload experiments. [4]

JSON: /data/terms/lrfu.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. LRFU replacement. Hesela. 2026-11-07. https://hesela.dev/terms/lrfu/