Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What causes page fault and how to minimize them?

When examining a process in Process Explorer, what does it mean when there are several page faults? The application is processing quite a bit of data and the UI is not very responsive. Are there optimizations to the code that could reduce or eliminate page faults? Would increasing the physical RAM of the system make a difference?

like image 838
User1 Avatar asked Feb 10 '10 05:02

User1


Video Answer


1 Answers

http://en.wikipedia.org/wiki/Page_fault

Increasing the physical RAM on your machine could result in fewer page faults, although design changes to your application will do much better than adding RAM. In general, having a smaller memory footprint, and having things that will often be accessed around the same time be on the same page will decrease the number of page faults. It can, also, be helpful to try to do everything you can with some bit of data in memory all at once so that you don't need to access it many different times, which may cause page faults (aka thrashing).

like image 195
Brett Widmeier Avatar answered Oct 10 '22 07:10

Brett Widmeier