Mel Gorman 396faf0303 Allow huge page allocations to use GFP_HIGH_MOVABLE
Huge pages are not movable so are not allocated from ZONE_MOVABLE.  However,
as ZONE_MOVABLE will always have pages that can be migrated or reclaimed, it
can be used to satisfy hugepage allocations even when the system has been
running a long time.  This allows an administrator to resize the hugepage pool
at runtime depending on the size of ZONE_MOVABLE.

This patch adds a new sysctl called hugepages_treat_as_movable.  When a
non-zero value is written to it, future allocations for the huge page pool
will use ZONE_MOVABLE.  Despite huge pages being non-movable, we do not
introduce additional external fragmentation of note as huge pages are always
the largest contiguous block we care about.

[akpm@linux-foundation.org: various fixes]
Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-17 10:22:59 -07:00
..
2007-03-27 08:52:47 +02:00
2007-07-10 08:04:15 +02:00
2007-07-17 10:22:59 -07:00
2006-12-22 08:55:49 -08:00
2007-07-17 10:22:59 -07:00
2007-05-07 12:12:54 -07:00
2007-07-16 09:05:52 -07:00
2007-02-15 09:57:03 -08:00
2007-07-16 09:05:37 -07:00
2007-05-21 09:18:19 -07:00
2007-05-07 12:12:55 -07:00
2007-07-17 10:22:59 -07:00
2005-04-16 15:20:36 -07:00
2007-05-07 12:12:54 -07:00
2007-05-07 12:12:52 -07:00
2007-07-16 09:05:36 -07:00
2007-07-16 09:05:36 -07:00
2007-07-17 10:22:59 -07:00