]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: support MIGRATE_DISCARD
authorMinchan Kim <minchan@kernel.org>
Fri, 7 Sep 2012 00:23:56 +0000 (10:23 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Sep 2012 05:36:23 +0000 (15:36 +1000)
commit29cfd54de3204fe1b8b6a4ea744a21b43f3e00fa
tree9c02c955cdf5d0e7ed32d384fc01a7c398bb1875
parent168f0fbf73d8878d7b836192cc88c78202f20618
mm: support MIGRATE_DISCARD

Introduce MIGRATE_DISCARD mode in migration.  It drops *clean cache pages*
instead of migration so that migration latency could be reduced by
avoiding (memcpy + page remapping).  It's useful for CMA because latency
of migration is very important rather than eviction of background
processes's workingset.  In addition, it needs less free pages for
migration targets so it could avoid memory reclaiming to get free pages,
which is another factor increase latency.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/migrate_mode.h
mm/migrate.c
mm/page_alloc.c