Summary: Page Faults | ||
Subject Area | Operating SystemsMemory HardwareMemory Management Units | |
Applies To | Virtual Memory | |
Type | Exception | |
Is Not An | Error | |
Basic Definition | An exception that occurs when a program requests virtual memory that isn't ready. | |
Technical Definition | An exception that occurs when a memory page is requested that is not currently mapped by the memory management unit into the virtual address space of a process. |
Occurs When | Memory is requested by a process that is not in memory or that is not mapped by the memory management unit into the virtual address space for the process. |
Types | MinorThe memory page is in memory but is not yet mapped by the memory management unit. A mapping is performed and the process can quickly access the memory. Also known as a soft page fault.Major Page FaultThe memory page is not in memory. This requires an algorithm to run that frees memory and loads the memory page. Where this occurs regularly an OS may slow down.InvalidA page fault can result from an attempt by the process to access a memory address outside its virtual address space. This requires the operating system to issue an error such as a segmentation fault and potentially terminate the offending process. |
Related Concepts | Memory PageA fixed length chunk of data. For the purposes of efficiency, memory management deals with pages as opposed to bytes or words.Virtual MemoryA technique that offers a single interface to access physical memory and data that has been temporarily swapped to a data storage device such as a disk. Allows an operating system to offer memory beyond the physical memory of the machine.Segmentation FaultAn error that occurs when the memory address requested by a process is invalid. |