Re: memory-mapped files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux