madvise.2: Document MADV_SOFT_OFFLINE

This operation was added in Linux 2.6.33.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Andi Kleen 2010-06-19 13:02:09 +02:00 committed by Michael Kerrisk
parent 6866d935b3
commit ae24c212b2
1 changed files with 16 additions and 0 deletions

View File

@ -158,6 +158,22 @@ This feature is intended for memory testing.
This feature is only available if the kernel was configured with This feature is only available if the kernel was configured with
.BR CONFIG_MEMORY_FAILURE . .BR CONFIG_MEMORY_FAILURE .
.TP .TP
.BR MADV_SOFT_OFFLINE " (Since Linux 2.6.33)
Soft offline the pages in the range specified by
.I addr
and
.IR length .
This memory of the page is copied to a new page,
and the page is offlined
(i.e., no longer used, and taken out of noremal memory management).
The
.B MADV_SOFT_OFFLINE
operation is normally invisible to (i.e., does not affect the semantics of)
the calling process.
This feature is intended for testing of memory error-handling code;
it is only available if the kernel was configured with
.BR CONFIG_MEMORY_FAILURE .
.TP
.BR MADV_MERGEABLE " (since Linux 2.6.32)" .BR MADV_MERGEABLE " (since Linux 2.6.32)"
Enable Kernel Samepage Merging (KSM) for the pages in the range specified by Enable Kernel Samepage Merging (KSM) for the pages in the range specified by
.I addr .I addr