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 <mina86@mina86.com> Signed-off-by:
Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by:
Kyungmin Park <kyungmin.park@samsung.com> Acked-by:
Mel Gorman <mel@csn.ul.ie> Reviewed-by:
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Tested-by:
Rob Clark <rob.clark@linaro.org> Tested-by:
Ohad Ben-Cohen <ohad@wizery.com> Tested-by:
Benjamin Gaignard <benjamin.gaignard@linaro.org> Tested-by:
Robert Nelson <robertcnelson@gmail.com> Tested-by:
Barry Song <Baohua.Song@csr.com>
Showing
- include/linux/gfp.h 3 additions, 0 deletionsinclude/linux/gfp.h
- include/linux/mmzone.h 31 additions, 7 deletionsinclude/linux/mmzone.h
- mm/Kconfig 1 addition, 1 deletionmm/Kconfig
- mm/compaction.c 8 additions, 3 deletionsmm/compaction.c
- mm/page_alloc.c 60 additions, 16 deletionsmm/page_alloc.c
- mm/vmstat.c 3 additions, 0 deletionsmm/vmstat.c
Loading
-
mentioned in commit f42e7a8d
-
mentioned in commit e45b1963
-
mentioned in commit 55f1f0ba
-
mentioned in commit 5f37e5ea
-
mentioned in commit 60e4db26
-
mentioned in commit c7c6a8f1
-
mentioned in commit 195c11c1
-
mentioned in commit 04ae48cc
-
mentioned in commit eed694c0
-
mentioned in commit 895ac1ed
-
mentioned in commit 9d32d05b
-
mentioned in commit d5eef9b7
-
mentioned in commit 7b05004c
-
mentioned in commit b2892e8f
-
mentioned in commit 32b79b16
-
mentioned in commit ae5f0479
-
mentioned in commit 4f59acf4
-
mentioned in commit 2cbcf323
-
mentioned in commit 03e76a36
-
mentioned in commit f34a097c
-
mentioned in commit 17f81465
Please register or sign in to comment