How do LFU and MFU page-replacement algorithms work, and what are their drawbacks?

Last updated 5 July 2026

  • LFU (Least Frequently Used) keeps a reference counter per page and evicts the lowest count. Its drawback is stale counts: a page heavily used early lingers, often fixed by aging (shifting counts right over time).

  • MFU (Most Frequently Used) evicts the highest count, assuming low-count pages were just loaded and still needed. It rarely matches real locality and can evict a genuinely hot page.

  • Both are rare in practice: per-reference counter updates are expensive, and frequency ignores recency, so they approximate LRU and optimal replacement poorly.

  • https://www.geeksforgeeks.org/operating-systems/counting-based-page-replacement-algorithm-in-operating-system/
  • https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/9_VirtualMemory.html
  • https://testbook.com/question-answer/the-implementation-of-the-lfu-and-the-mfu-algorith--6288df9548131cfec436d7cf
  • https://www.almabetter.com/bytes/articles/page-replacement-algorithms-in-os
  • https://www.tutorialspoint.com/operating_system/os_page_replacement_algorithms.htm
All Operating Systems interview questions