FIFO
First in, first outOldest inserted → newest inserted
- hits
- 0
- misses
- 0
Systems lab · memory and history
Follow FIFO and LRU one request at a time. See how a hit changes the next eviction, then test what happens when the cache has more room.
0 requests · capacity 2 · each card shows the selected prefix
Oldest inserted → newest inserted
Least recently used → most recently used
These totals use every request, regardless of the step selected above. Each row starts empty.
| Capacity | FIFO misses | LRU misses |
|---|
Cache contents are shown after each request, in each policy's order. “None” means no eviction.
No requests to list.
| Step | Page | FIFO | Evicts | FIFO contents | LRU | Evicts | LRU contents |
|---|
A hit finds the requested page already present. A miss loads it; if all slots are occupied, one page must leave first.
FIFO keeps the insertion order on a hit. LRU refreshes the hit to most recent. The highlighted page is the request you just inspected.
Neither rule knows future requests. LRU's capacity guarantee compares LRU with itself at different capacities; it does not make LRU the winner on every workload.
Take the next step
Predict the next eviction, explain the capacity anomaly and distinguish a trace count from a timing claim.
12 questions · 4 concepts