diff options
author | Mel Gorman <mgorman@suse.de> | 2012-10-19 11:46:20 +0200 |
---|---|---|
committer | Mel Gorman <mgorman@suse.de> | 2012-12-11 15:28:35 +0100 |
commit | 5647bc293ab15f66a7b1cda850c5e9d162a6c7c2 (patch) | |
tree | ebf21726915b1e814046c950c5882e33dad303b9 /mm/compaction.c | |
parent | mm: Optimize the TLB flush of sys_mprotect() and change_protection() users (diff) | |
download | linux-5647bc293ab15f66a7b1cda850c5e9d162a6c7c2.tar.xz linux-5647bc293ab15f66a7b1cda850c5e9d162a6c7c2.zip |
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>
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 9eef55838fca..00ad88395216 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -994,10 +994,6 @@ static int compact_zone(struct zone *zone, struct compact_control *cc) update_nr_listpages(cc); nr_remaining = cc->nr_migratepages; - count_vm_event(COMPACTBLOCKS); - count_vm_events(COMPACTPAGES, nr_migrate - nr_remaining); - if (nr_remaining) - count_vm_events(COMPACTPAGEFAILED, nr_remaining); trace_mm_compaction_migratepages(nr_migrate - nr_remaining, nr_remaining); |