]> git.baikalelectronics.ru Git - kernel.git/commit
mm: compaction: Move migration fail/success stats to migrate.c
authorMel Gorman <mgorman@suse.de>
Fri, 19 Oct 2012 09:46:20 +0000 (10:46 +0100)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:28:35 +0000 (14:28 +0000)
commitdb12dbe47b7bcef44c47b7e9f313966bd46cfa40
treeebf21726915b1e814046c950c5882e33dad303b9
parent490dbfe224b4035e4c204cdfc1e0213ff4a4ffb4
mm: compaction: Move migration fail/success stats to migrate.c

The compact_pages_moved and compact_pagemigrate_failed events are
convenient for determining if compaction is active and to what
degree migration is succeeding but it's at the wrong level. Other
users of migration may also want to know if migration is working
properly and this will be particularly true for any automated
NUMA migration. This patch moves the counters down to migration
with the new events called pgmigrate_success and pgmigrate_fail.
The compact_blocks_moved counter is removed because while it was
useful for debugging initially, it's worthless now as no meaningful
conclusions can be drawn from its value.

Signed-off-by: Mel Gorman <mgorman@suse.de>
Reviewed-by: Rik van Riel <riel@redhat.com>
include/linux/vm_event_item.h
mm/compaction.c
mm/migrate.c
mm/vmstat.c