linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [patch] thp: fix khugepaged defrag tunable documentation
@ 2011-09-15  2:12 David Rientjes
  2011-09-15  3:23 ` Ben Hutchings
  0 siblings, 1 reply; 2+ messages in thread
From: David Rientjes @ 2011-09-15  2:12 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Andrea Arcangeli, Ben Hutchings, 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] 2+ messages in thread

* Re: [patch] thp: fix khugepaged defrag tunable documentation
  2011-09-15  2:12 [patch] thp: fix khugepaged defrag tunable documentation David Rientjes
@ 2011-09-15  3:23 ` Ben Hutchings
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Hutchings @ 2011-09-15  3:23 UTC (permalink / raw)
  To: David Rientjes; +Cc: Andrew Morton, Andrea Arcangeli, linux-mm

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

On Wed, 2011-09-14 at 19:12 -0700, David Rientjes wrote:
> 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.
[...]

Oops, sorry I missed this.

Ben.

-- 
Ben Hutchings
All extremists should be taken out and shot.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-15  3:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-15  2:12 [patch] thp: fix khugepaged defrag tunable documentation David Rientjes
2011-09-15  3:23 ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox