SESK: Stuff Everyone Should Know · sesk.info/tech-virtual-memory-pages
With virtual memory, what data structures map virtual addresses to physical RAM addresses?
Page tables that map virtual pages to physical page frames.
- The hard drive's file table
- Page tables ✔
- The program's compiler
Why: Memory is split into fixed-size pages. The kernel keeps page tables that map each virtual page a program uses to a physical page frame. The CPU uses them on every access, which also keeps processes apart.
Huh, didn't know that: Virtual memory allows demand paging: only the parts of a program actually needed are kept in RAM.
Why did the program trust virtual memory? It always had the address it needed.
Like this card?
References
Answer: Page tables. Memory is split into fixed-size pages. The kernel keeps page tables that map each virtual page a program uses to a physical page frame. The CPU uses them on every access, which also keeps processes apart.
- Linux kernel docs: Concepts overview (memory management) docs.kernel.org/admin-guide/mm/concepts.html
These mappings are described by page tables that allow translation from a virtual address used by programs to the physical memory address.
Checked 2026-10-10.
Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.
More stuff everyone should know
That's stuff everyone should know.