]> Git Repo - linux.git/commit
mm: mmzone: MIGRATE_CMA migration type added
authorMichal Nazarewicz <[email protected]>
Thu, 29 Dec 2011 12:09:50 +0000 (13:09 +0100)
committerMarek Szyprowski <[email protected]>
Mon, 21 May 2012 13:09:32 +0000 (15:09 +0200)
commit47118af076f64844b4f423bc2f545b2da9dab50d
tree00df88cf2f60a2a3efc1a6c46ad88d128aee2071
parent6d4a49160de2c684fb59fa627bce80e200224331
mm: mmzone: MIGRATE_CMA migration type added

The MIGRATE_CMA migration type has two main characteristics:
(i) only movable pages can be allocated from MIGRATE_CMA
pageblocks and (ii) page allocator will never change migration
type of MIGRATE_CMA pageblocks.

This guarantees (to some degree) that page in a MIGRATE_CMA page
block can always be migrated somewhere else (unless there's no
memory left in the system).

It is designed to be used for allocating big chunks (eg. 10MiB)
of physically contiguous memory.  Once driver requests
contiguous memory, pages from MIGRATE_CMA pageblocks may be
migrated away to create a contiguous block.

To minimise number of migrations, MIGRATE_CMA migration type
is the last type tried when page allocator falls back to other
migration types when requested.

Signed-off-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Ohad Ben-Cohen <[email protected]>
Tested-by: Benjamin Gaignard <[email protected]>
Tested-by: Robert Nelson <[email protected]>
Tested-by: Barry Song <[email protected]>
include/linux/gfp.h
include/linux/mmzone.h
mm/Kconfig
mm/compaction.c
mm/page_alloc.c
mm/vmstat.c
This page took 0.05424 seconds and 4 git commands to generate.