Mapping of ZONE_HIGHMEM in kernel address space in 32bit x86
Valdis.Kletnieks at vt.edu
Valdis.Kletnieks at vt.edu
Mon May 13 16:01:41 EDT 2013
On Mon, 13 May 2013 14:11:22 -0500, Sergio Andr said:
> 2. When user applications allocates memory, the kernel must allocate
> virtual memory and physical memory, right?
Wrong. If userspace allocates (say) 15M of memory, the kernel has every right
to overcommit and not actually allocate either physical memory or backing page
space for all 15M. It instead maps it as a non-existent virtual address, and
if/when the application actually touches the page, it generates a page fault,
and *then* the kernel does the allocating of physical memory and maybe swap
space.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130513/214fef66/attachment.bin
More information about the Kernelnewbies
mailing list