* [patch resend] thp: fix khugepaged defrag tunable documentation
@ 2011-09-22 21:11 David Rientjes
0 siblings, 0 replies; only message in thread
From: David Rientjes @ 2011-09-22 21:11 UTC (permalink / raw)
To: Andrew Morton, Linus Torvalds; +Cc: Ben Hutchings, Andrea Arcangeli, linux-mm
e27e6151b154 ("mm/thp: use conventional format for boolean attributes")
changed /sys/kernel/mm/transparent_hugepage/khugepaged/defrag to be tuned
by using 1 (enabled) or 0 (disabled) instead of "yes" and "no",
respectively.
Update the documentation.
Signed-off-by: David Rientjes <rientjes@google.com>
---
Documentation/vm/transhuge.txt | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Documentation/vm/transhuge.txt b/Documentation/vm/transhuge.txt
--- a/Documentation/vm/transhuge.txt
+++ b/Documentation/vm/transhuge.txt
@@ -123,10 +123,11 @@ be automatically shutdown if it's set to "never".
khugepaged runs usually at low frequency so while one may not want to
invoke defrag algorithms synchronously during the page faults, it
should be worth invoking defrag at least in khugepaged. However it's
-also possible to disable defrag in khugepaged:
+also possible to disable defrag in khugepaged by writing 0 or enable
+defrag in khugepaged by writing 1:
-echo yes >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag
-echo no >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag
+echo 0 >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag
+echo 1 >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag
You can also control how many pages khugepaged should scan at each
pass:
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-22 21:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22 21:11 [patch resend] thp: fix khugepaged defrag tunable documentation David Rientjes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox