Save this video free

ECE344 Fall 2026 (Sec 1) Lec 27 - Advanced Page Replacement

Jon Eyolfson · 42:15 · Watch on YouTube

Part of University of Toronto ECE 344. See all 26 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jon Eyolfson explains how the clock algorithm uses the MMU’s one-bit access flag to approximate LRU cheaply, then examines why scans can still displace frequently reused pages. He compares scan-resistant active/inactive lists, IBM’s adaptive replacement cache (ARC), 2Q, and Linux’s multi-generational LRU, highlighting how each distinguishes recent reuse from one-time access.

Key takeaways

Chapters

0:00 Why Page Replacement Uses the MMU Access Bit
5:36 Clock Replacement and the Second-Chance Rule
14:27 Working Clock Examples and Fast Simulation Shortcuts
24:50 Clock’s Low Hit Cost and Its Scan Weakness
27:40 Scan Resistance with Active and Inactive Page Lists
32:01 ARC Adapts Cache Space with Ghost Lists
36:49 2Q, ARC Patents, and Cache Policy Tradeoffs
39:10 Linux Multi-Generational LRU and Lecture Takeaways

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

1:41 I >> All right, so we are back to it with

5:39 advanced page replacement. Whoa. So recall LRU got close to optimal, but it is too expensive to implement. So right now, if we were like seeing what happens with our MMU, we can take advantage of what already happened. So the hardware already does a little bit for every access. Not quite a time stamp, but there is that a bit or that access bit. And the MMU is going to always set that from whatever value it is to a one whenever that page is accessed. And that comes for free. So, how could we use this one bit to approximate our LRU? So, some of you already said that said that, hey, Wabo, if we keep track of something was

6:26 recently used, hey, we already have that from our MMU. So, all Cisco. So, the clock algorithm uses one bit for page. What the clock algorithm does is have pages in a circular list similarly to some of your ideas during the break, and each has a reference bit, which just indicates whether or not it has been referenced soon-ish. And the hand points to the next page to check. Every access to a page is going to set its reference bit to one if it's not already set. And we're just going to go around that circle looking for victims. So, this is how the algorithm works is to replace a page. We check the page

7:14 under the hand. It's basically just an iterator. Look at the reference bit. If that bit is zero, it means it hasn't been used recently. So, evict it, replace that page with the current page we're trying to do, and we move the hand before we carry on with our normal

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jon Eyolfson.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.