LRU versus Optimal: past and future

Follow recency updates on hits, compare future-use choices, and count faults on the same requests. Memory · Operating systems.

A recently used page is evicted. Would remembering the past help, and what could a rule do if it knew the future?

What you will learn

  • Track the LRU recency order through hits and faults
  • Choose OPT victims by next use, with an explicit tie rule
  • Compare LRU and OPT on the same requests, including a loop that defeats LRU

Lesson outline

  1. Looking back with LRU
  2. Looking ahead with OPT
  3. A loop where the past misleads
  4. A string where FIFO wins
  5. What each rule can promise

14 minutes · 4 scenes · 0 predict checks · 12 quiz questions

The full lesson is available with Premium.