| |
A page fault is an exception that occurs when a program requests virtual memory that isn't ready. This is not an error but is the standard way that operating systems and memory hardware handle virtual memory. By definition, virtual memory isn't in memory all the time but is cached to a data storage device such as a disk. As such, page faults regularly occur on an operating system with virtual memory whenever a page needs to be pulled into physical memory.
|
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. |
Operating Systems
This is the complete list of articles we have written about operating systems.
If you enjoyed this page, please consider bookmarking Simplicable.
Examples of what an operating system does.
The definition of address space with an overview.
The definition of system software with examples.
The definition of I/O with examples.
TrendingThe most popular articles on Simplicable in the past day.
Recent posts or updates on Simplicable.
Site Map
© 2010-2023 Simplicable. All Rights Reserved. Reproduction of materials found on this site, in any form, without explicit permission is prohibited.
View credits & copyrights or citation information for this page.
|