Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LRU

The LRU policy evicts the least-recently-used page when the algorithm wants more space. This means the algorithm must keep track of the order of most recently used pages, which can be expensive to implement.

Colors

LRU
MRU
  • The most recently accessed (MRU) page is red
  • The least recently accessed (LRU) page is blue
  • The pages in between are a mix of these two colors

Cases

PageRVis recognizes 3 cases in the “last event” section.

  1. Miss with remaining capacity
  2. Miss with full capacity
  3. Hit