aboutsummaryrefslogtreecommitdiffstats
path: root/mm/huge_memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/huge_memory.c')
-rw-r--r--mm/huge_memory.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index 45b6d53bcfbc..892d8a17a7e5 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -527,6 +527,14 @@ static int __init hugepage_init(void)
527 goto out; 527 goto out;
528 } 528 }
529 529
530 /*
531 * By default disable transparent hugepages on smaller systems,
532 * where the extra memory used could hurt more than TLB overhead
533 * is likely to save. The admin can still enable it through /sys.
534 */
535 if (totalram_pages < (512 << (20 - PAGE_SHIFT)))
536 transparent_hugepage_flags = 0;
537
530 start_khugepaged(); 538 start_khugepaged();
531 539
532 set_recommended_min_free_kbytes(); 540 set_recommended_min_free_kbytes();