[PATCH V3 4/4] KSM: mark_new_vma added to Documentation.

From: Timofey Titovets
Date: Tue Nov 11 2014 - 07:58:12 EST


Signed-off-by: Timofey Titovets <nefelim4ag@xxxxxxxxx>
---
Documentation/vm/ksm.txt | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/Documentation/vm/ksm.txt b/Documentation/vm/ksm.txt
index f34a8ee..880fdbf 100644
--- a/Documentation/vm/ksm.txt
+++ b/Documentation/vm/ksm.txt
@@ -24,6 +24,8 @@ KSM only operates on those areas of address space which an application
has advised to be likely candidates for merging, by using the madvise(2)
system call: int madvise(addr, length, MADV_MERGEABLE).

+Also KSM can mark anonymous memory as mergeable, see below.
+
The app may call int madvise(addr, length, MADV_UNMERGEABLE) to cancel
that advice and restore unshared pages: whereupon KSM unmerges whatever
it merged in that range. Note: this unmerging call may suddenly require
@@ -73,6 +75,11 @@ merge_across_nodes - specifies if pages from different numa nodes can be merged.
merge_across_nodes, to remerge according to the new setting.
Default: 1 (merging across nodes as in earlier releases)

+mark_new_vma - set 0 to disallow ksm marking every new allocated anonymous
+ memory as mergeable.
+ set 1 to allow ksm mark every new allocated anonymous memory
+ as mergeable
+
run - set 0 to stop ksmd from running but keep merged pages,
set 1 to run ksmd e.g. "echo 1 > /sys/kernel/mm/ksm/run",
set 2 to stop ksmd and unmerge all pages currently merged,
--
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/