Virtual memory lets a process use an address space larger than physical RAM by keeping only the needed pages in memory and the rest on disk (swap or the backing file); the OS and MMU make it transparent.
Benefits: programs larger than RAM can run, more processes fit in memory at once, each process is isolated with its own address space, memory can be shared, and loading is faster because only needed pages are read.
Cost: page faults are slow, so performance depends on locality of reference.
Loading…