Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

thp: fix khugepaged defrag tunable documentation

Commit 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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Rientjes and committed by
Linus Torvalds
e369fde1 a7f4d00a

+4 -3
+4 -3
Documentation/vm/transhuge.txt
··· 123 123 khugepaged runs usually at low frequency so while one may not want to 124 124 invoke defrag algorithms synchronously during the page faults, it 125 125 should be worth invoking defrag at least in khugepaged. However it's 126 - also possible to disable defrag in khugepaged: 126 + also possible to disable defrag in khugepaged by writing 0 or enable 127 + defrag in khugepaged by writing 1: 127 128 128 - echo yes >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag 129 - echo no >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag 129 + echo 0 >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag 130 + echo 1 >/sys/kernel/mm/transparent_hugepage/khugepaged/defrag 130 131 131 132 You can also control how many pages khugepaged should scan at each 132 133 pass: