Commit d39d33c3 authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Linus Torvalds

thp: enable direct defrag

With memory compaction in, and lumpy-reclaim disabled, it seems safe
enough to defrag memory during the (synchronous) transparent hugepage page
faults (TRANSPARENT_HUGEPAGE_DEFRAG_FLAG) and not only during khugepaged
(async) hugepage allocations that was already enabled even before memory
Signed-off-by: default avatarAndrea Arcangeli <>
Acked-by: default avatarMel Gorman <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent f000565a
......@@ -28,6 +28,7 @@
unsigned long transparent_hugepage_flags __read_mostly =
/* default scan 8*512 pte (or vmas) every 30 second */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment