]> 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>
Wed, 12 Sep 2012 07:08:36 +0000 (17:08 +1000)
commit3a2ca0f28915ea43fb44d39f0fac56297e663bc4
tree2175e5128e8d776172c70509c0f564c008ef4b81
parent6a5ece28208bba32b2f24860d7be0b2f107778df
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