mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
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>
This commit is contained in:
parent
535131e692
commit
b92a6edd4b
3 changed files with 58 additions and 16 deletions
|
@ -33,9 +33,15 @@
|
|||
*/
|
||||
#define PAGE_ALLOC_COSTLY_ORDER 3
|
||||
|
||||
#ifdef CONFIG_PAGE_GROUP_BY_MOBILITY
|
||||
#define MIGRATE_UNMOVABLE 0
|
||||
#define MIGRATE_MOVABLE 1
|
||||
#define MIGRATE_TYPES 2
|
||||
#else
|
||||
#define MIGRATE_UNMOVABLE 0
|
||||
#define MIGRATE_MOVABLE 0
|
||||
#define MIGRATE_TYPES 1
|
||||
#endif
|
||||
|
||||
#define for_each_migratetype_order(order, type) \
|
||||
for (order = 0; order < MAX_ORDER; order++) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue