Systems lab · memory and history

Same requests.
Different pages kept.

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.

Starts emptyEqual-size pagesAny page can use any slot

Choose a request sequence

Use up to 24 single page IDs: A–H or 1–8. Separate them with spaces or commas. A and 1 are different pages; an empty list is allowed.

The same capacity for both policies.

Try a worked example:

Loading the checked lesson…

Read the rule before the result

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

Turn the trace into a lesson

Predict the next eviction, explain the capacity anomaly and distinguish a trace count from a timing claim.

  • Download the original course JSON.
  • Open RecallWeave and choose Bring your own lesson.
  • Review the preview, then explicitly start the lesson.

12 questions · 4 concepts