From 9ccfc3a0cd9f427c79b051cc748b7880d732a095 Mon Sep 17 00:00:00 2001 From: Mel Gorman Date: Mon, 24 May 2010 14:32:21 -0700 Subject: [PATCH] --- yaml --- r: 198241 b: refs/heads/master c: e9e96b39f932a065e14f5d5bab0797ae261d03b5 h: refs/heads/master i: 198239: d83e277a101d82286748bf8d7385bcd065c701c9 v: v3 --- [refs] | 2 +- trunk/mm/Kconfig | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 48600204c979..01ba9d73dae4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3fe2011ff51e92500010a495df4be86745fbbda9 +refs/heads/master: e9e96b39f932a065e14f5d5bab0797ae261d03b5 diff --git a/trunk/mm/Kconfig b/trunk/mm/Kconfig index 9c61158308dc..527136b22384 100644 --- a/trunk/mm/Kconfig +++ b/trunk/mm/Kconfig @@ -171,6 +171,15 @@ config SPLIT_PTLOCK_CPUS default "999999" if DEBUG_SPINLOCK || DEBUG_LOCK_ALLOC default "4" +# +# support for memory compaction +config COMPACTION + bool "Allow for memory compaction" + select MIGRATION + depends on EXPERIMENTAL && HUGETLB_PAGE && MMU + help + Allows the compaction of memory for the allocation of huge pages. + # # support for page migration # @@ -180,9 +189,11 @@ config MIGRATION depends on NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE help Allows the migration of the physical location of pages of processes - while the virtual addresses are not changed. This is useful for - example on NUMA systems to put pages nearer to the processors accessing - the page. + while the virtual addresses are not changed. This is useful in + two situations. The first is on NUMA systems to put pages nearer + to the processors accessing. The second is when allocating huge + pages as migration can relocate pages to satisfy a huge page + allocation instead of reclaiming. config PHYS_ADDR_T_64BIT def_bool 64BIT || ARCH_PHYS_ADDR_T_64BIT