This document provides an outline and overview of key concepts related to virtual memory, including:
- Demand paging loads pages into memory only when needed, reducing I/O compared to loading all pages upfront. Page faults trigger loading needed pages from disk.
- Copy-on-write sharing allows processes to initially share read-only pages, only copying when a page is written to avoid unnecessary duplication.
- When memory is full and a page is needed, page replacement selects a page in memory to swap to disk to free up space using algorithms like FIFO, LRU, etc. This avoids having to swap out the entire process.
- Memory-mapped files allow sharing memory between processes by mapping files or