Virtual memory: page tables, TLB misses and swapping
12 steps · about 6 h 5 min · Intermediate
- Virtual Memory: Page Tables, TLBs, and Linux Internals (article, Coding Confessions, 30 min)
It gives the big picture first: pages, frames, and why every process sees its own address space.
- Page (computer memory) (reference, Wikipedia, 10 min)
It pins down the vocabulary of pages, page frames and page sizes before the mechanics.
- Virtual Memory, Page Tables And Translation Lookaside Buffers Explained (video, YouTube (Cory Maklin), 15 min)
A short walkthrough that links virtual memory, page tables and the TLB visually.
- Page Tables (video, YouTube, 30 min)
It covers single-level, two-level and inverted page tables, which shows why page table size is a problem.
- CS162 Lecture 14: Memory 2: Virtual Memory (Con't), Caching and TLBs (video, UC Berkeley CS162 (YouTube), 1 h 20 min)
A full university lecture on multi-level page tables, x86 mappings and TLB caching.
- Paging: Faster Translations (TLBs) (doc, OSTEP (Arpaci-Dusseau), 40 min)
The standard textbook chapter on TLB hits and misses, worked through with an address trace.
- The Translation Lookaside Buffer - CS 61C Course Notes (article, UC Berkeley CS 61C, 20 min)
It adds TLB reach and the three access cases (TLB hit, page table hit, page fault) with their relative costs.
- Translation lookaside buffer (article, Wikipedia, 20 min)
It goes deeper on miss handling, page walks and why a TLB miss can cost more than a cache miss.
- Beyond Physical Memory: Mechanisms (doc, OSTEP (Arpaci-Dusseau), 35 min)
It explains the present bit, swap space and the page fault handler, which is where swapping begins.
- CS323 Operating Systems Virtual Memory (Paging and Swapping) (doc, EPFL HexHive, 30 min)
These slides tie translation, TLB misses, page faults and swapping into one flow so you can review it.
- 22. Swapping: Policies (doc, OSTEP slides (Youjip Won), 25 min)
The last step is deciding which page to evict, with FIFO and the clock algorithm.
- MIT 6.191 Lecture 18 Virtual Memory 2 (doc, MIT 6.191, 30 min)
It finishes with hierarchical page tables, page sharing and memory mapping, and gives you more practice.