The patch titled Subject: mm, migrate: count pages failing all retries in vmstat and tracepoint has been added to the -mm tree. Its filename is mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Vlastimil Babka <vbabka@xxxxxxx> Subject: mm, migrate: count pages failing all retries in vmstat and tracepoint Migration tries up to 10 times to migrate pages that return -EAGAIN until it gives up. If some pages fail all retries, they are counted towards the number of failed pages that migrate_pages() returns. They should also be counted in the /proc/vmstat pgmigrate_fail and in the mm_migrate_pages tracepoint. Signed-off-by: Vlastimil Babka <vbabka@xxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Cc: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> Cc: "Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> Cc: "Aneesh Kumar K.V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> Cc: Konstantin Khlebnikov <koct9i@xxxxxxxxx> Cc: Mel Gorman <mel@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/migrate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN mm/migrate.c~mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint mm/migrate.c --- a/mm/migrate.c~mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint +++ a/mm/migrate.c @@ -1159,7 +1159,8 @@ int migrate_pages(struct list_head *from } } } - rc = nr_failed + retry; + nr_failed += retry; + rc = nr_failed; out: if (nr_succeeded) count_vm_events(PGMIGRATE_SUCCESS, nr_succeeded); _ Patches currently in -mm which might be from vbabka@xxxxxxx are mm-migrate-count-pages-failing-all-retries-in-vmstat-and-tracepoint.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html