aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mmzone.h
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 /include/linux/mmzone.h
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 'include/linux/mmzone.h')
-rw-r--r--include/linux/mmzone.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
index 57700038e669..7d7e4fe0fda8 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
@@ -33,9 +33,15 @@
33 */ 33 */
34#define PAGE_ALLOC_COSTLY_ORDER 3 34#define PAGE_ALLOC_COSTLY_ORDER 3
35 35
36#ifdef CONFIG_PAGE_GROUP_BY_MOBILITY
36#define MIGRATE_UNMOVABLE 0 37#define MIGRATE_UNMOVABLE 0
37#define MIGRATE_MOVABLE 1 38#define MIGRATE_MOVABLE 1
38#define MIGRATE_TYPES 2 39#define MIGRATE_TYPES 2
40#else
41#define MIGRATE_UNMOVABLE 0
42#define MIGRATE_MOVABLE 0
43#define MIGRATE_TYPES 1
44#endif
39 45
40#define for_each_migratetype_order(order, type) \ 46#define for_each_migratetype_order(order, type) \
41 for (order = 0; order < MAX_ORDER; order++) \ 47 for (order = 0; order < MAX_ORDER; order++) \