Luciano A. Stertz wrote:
When the page fault happens, the kernel reads a whole page of data from disk to a 'struct page' and sets the process' page table to point to this page.
That's not 100% accurate. A 'struct page' is merely a structure that contains information about a single physical page of memory. When the fault happens, the kernel reads a page's worth of data (usually 4KB) from disk into a physical page of RAM.
-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/