When a page fault occurs, the system must fetch the page from disk.

Does this mean that there is a page table stored on the hard drive for every running process (to fetch the page from)?

If yes, does the swap partition hold these page tables?

link|improve this question
feedback

migrated from stackoverflow.com Dec 27 '11 at 14:08

This question came from our site for professional and enthusiast programmers.

1 Answer

The page table is stored in memory, the actual swapped out pages are stored in the swap file. The page table keeps track of which pages are stored in memory vs. the swap file and where they are located. Some pages of the page table MAY be virtualized as well.

You can find more information on Wikipedia at http://en.wikipedia.org/wiki/Page_table.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown