mirror of https://github.com/mkerrisk/man-pages
madvise.2: Improve MADV_DONTNEED description
Cowritten-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8bdce466c4
commit
d5e9c9bb50
|
@ -119,11 +119,19 @@ After a successful
|
|||
operation,
|
||||
the semantics of memory access in the specified region are changed:
|
||||
subsequent accesses of pages in the range will succeed, but will result
|
||||
in either reloading of the memory contents from the underlying mapped file
|
||||
in either repopulating the memory contents from the
|
||||
up-to-date contents of the underlying mapped file
|
||||
(for shared file mappings, shared anonymous mappings,
|
||||
and shmem-based techniques such as System V shared memory segments)
|
||||
or zero-fill-on-demand pages for anonymous private mappings.
|
||||
|
||||
Note that, when applied to shared mappings,
|
||||
.BR MADV_DONTNEED
|
||||
might not lead to immediate freeing of the pages in the range.
|
||||
The kernel is free to delay freeing the pages until an appropriate moment.
|
||||
The resident set size (RSS) of the calling process will be immediately
|
||||
reduced however.
|
||||
|
||||
.B MADV_DONTNEED
|
||||
cannot be applied to locked pages or Huge TLB pages.
|
||||
.\"
|
||||
|
|
Loading…
Reference in New Issue