aboutsummaryrefslogtreecommitdiffstats
path: root/init/Kconfig
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2007-10-16 04:25:50 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-16 12:42:59 -0400
commitb92a6edd4b77a8794adb497280beea5df5e59a14 (patch)
tree396ea5cf2b53fc066e949c443f03747ec868de1e /init/Kconfig
parent535131e6925b4a95f321148ad7293f496e0e58d7 (diff)
Add a configure option to group pages by mobility
The grouping mechanism has some memory overhead and a more complex allocation path. This patch allows the strategy to be disabled for small memory systems or if it is known the workload is suffering because of the strategy. It also acts to show where the page groupings strategy interacts with the standard buddy allocator. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Joel Schopp <jschopp@austin.ibm.com> Cc: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/Kconfig')
-rw-r--r--init/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 54f31a191b88..bab643f7717f 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -607,6 +607,19 @@ config BASE_SMALL
607 default 0 if BASE_FULL 607 default 0 if BASE_FULL
608 default 1 if !BASE_FULL 608 default 1 if !BASE_FULL
609 609
610config PAGE_GROUP_BY_MOBILITY
611 bool "Group pages based on their mobility in the page allocator"
612 def_bool y
613 help
614 The standard allocator will fragment memory over time which means
615 that high order allocations will fail even if kswapd is running. If
616 this option is set, the allocator will try and group page types
617 based on their ability to migrate or reclaim. This is a best effort
618 attempt at lowering fragmentation which a few workloads care about.
619 The loss is a more complex allocator that may perform slower. If
620 you are interested in working with large pages, say Y and set
621 /proc/sys/vm/min_free_bytes to 16374. Otherwise say N
622
610menuconfig MODULES 623menuconfig MODULES
611 bool "Enable loadable module support" 624 bool "Enable loadable module support"
612 help 625 help