FIFO and Belady's anomaly

Run FIFO page replacement on a classic reference string with three frames, then four, and find out why extra memory can make it fault more often. Memory · Operating systems.

A program gets more memory and should stall less. Under one simple eviction rule it can stall more, with the same code and the same requests. What makes that possible, and what must a rule promise to rule it out?

What you will learn

  • Trace FIFO eviction from its arrival queue and count the faults
  • Show with a reference string that more frames can mean more faults
  • State the subset guarantee that keeps a rule free of the anomaly

Lesson outline

  1. Throwing out the oldest page
  2. The same string with more memory
  3. Why the extra frame fails to help
  4. The guarantee that rules it out

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

The full lesson is available with Premium.