Home > Computers & Technology > Hardware > Computer Maintenance
Created on: July 14, 2008 Last Updated: July 16, 2008
We often get errors from a computer system that we just have no idea of. Although we try to search for it in the internet, more often than not the results that we get are far too technical for non-IT people to understand.
One of these errors or conditions is a page fault.
WHAT IS A PAGE?
In computer terminology a page is a fixed-length block of memory that is used as a unit to transfer data between the physical memory and an external memory.
WHAT, THEN, IS A PAGE FAULT?
A page fault is an interrupt or exception that occurs when a program requests data that is not currently in real memory. The interrupt triggers the operating system to fetch the data from a virtual memory and load it into RAM.
Although they are called faults or errors, they are not necessarily fatal.
WHAT CAUSES A PAGE FAULT?
Your computer hardware generates a page fault when:
# The page corresponding to the requested address is not loaded into memory. This is called a Major Page Fault and is more expensive and affects the system's disk latency.
# The requested page is loaded into memory but the hardware is not updated of the present status. This is categorized as a Minor or Soft Page Fault. This happens if the part of the memory you want to access if shared by several programs and the page is already in use by another program. This type of page fault is less expensive and doesn't involve disk latency.
# An attempt to read the memory is done with the use of a null pointer. This is an Invalid Page Fault. In this instance, the operating system maps a dummy page for catching null pointers.
WHAT CAN A PAGE FAULT DO TO YOUR SYSTEM?
Generally, page faults affect your computer's performance and could result in thrashing, wherein your computer to a decreased amount of work even with increased amount of resources. It decreases disk latency to more than double the average latency of 3ms making the system 40000 times slower. In effect, multi-tasking will be too much of a chore and simple file access will take ages before giving you a result.
WHAT CAN BE DONE TO FIX PAGE FAULT?
Two primary focuses for optimization focuses on reducing memory usage and improving memory locality. Thus, it can be wise to say that the more memory you have the lesser you could be at risk of page faults. First, more memory would reduce the need for the system to allocate memory sharing for all your softwares. Secondly, there would be more space for swapping in and out of file during access.
Additionally, you can also do the following solutions:
#
Below are the top articles rated and ranked by Helium members on:
Explaining what a page fault is
Helium Debate
Cast your vote!
If you only have one computer, should you choose a desktop or a laptop?
Click for your side.
Featured Partner
We provide personalized and effective practice opportunities to help learners of all ages and skill levels build a strong vocabulary. We envision a day when all students will have the vocabulary they need for complex thought and conf...more