]> git.ipfire.org Git - thirdparty/man-pages.git/commit - man2/mmap.2
mmap2: Clarify MAP_POPULATE
authorMichal Hocko <mhocko@suse.cz>
Wed, 13 May 2015 14:38:12 +0000 (16:38 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 14 May 2015 13:34:06 +0000 (15:34 +0200)
commitbbebbb6d565b15a279abe783083f9bd8068b4a19
tree643c944a270c698a0cac8d1c459d37e0409b4f92
parent7e3786bcdce27f99e547cd1b3bc13e7c85cf46e6
mmap2: Clarify MAP_POPULATE

David Rientjes has noticed that MAP_POPULATE wording might promise
much more than the kernel actually provides and intend to provide.
The primary usage of the flag is to pre-fault the range. There is
no guarantee that no major faults will happen later on. The pages
might have been reclaimed by the time the process tries to access
them.

Reviewed-by: Eric B Munson <emunson@akamai.com>
Signed-off-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/mmap.2