When a referenced page is not in memory, a page fault occurs and the OS must bring the page in — often evicting another. FIFO evicts the oldest-loaded page, LRU evicts the least recently used, and Optimal evicts the page that will be used farthest in the future (a theoretical yardstick).
Handling a page fault and choosing a victim page| Algorithm | Evicts | Strengths | Weaknesses |
|---|
| FIFO | oldest loaded | simple | Belady's anomaly |
| LRU | least recently used | good locality tracking | needs timestamps |
| Optimal | used farthest in future | minimum faults | not implementable |