Chapter 21's key idea: physical memory doesn't have to hold every page a process owns. The OS reserves a slice of disk as swap space and moves pages back and forth between it and physical frames, so address spaces can be bigger than RAM. This tool follows the mechanism end to end — where a page can live, and what happens when the hardware reaches for one that isn't there.
Click any frame or swap block below to see the page-table entry it corresponds to.
Physical Memory
PFN 0 – 3
Swap Space
Block 0 – 7
Same four processes, all their pages. Whether a page is in memory or on disk is just one more field in its PTE — the process never notices which.
| Process | VPN | Present | Location |
|---|
Swap space lets the sum of every process's address space exceed physical memory — the trade-off is that reaching for a swapped-out page now costs a disk access.
Every PTE carries a present bit. If it's 1, the PFN field is good and translation finishes in hardware. If it's 0, the hardware can't finish the translation itself — it traps into the OS, which looks at the very same PTE to find the page on disk, fetches it, and only then lets the instruction continue.