mm, migrate: count pages failing all retries in vmstat and tracepoint
Subsystems (2)
PATCH 1/1 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.
--- mm/migrate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
mm/migrate.c +2 -1
@@ -1152,7 +1152,8 @@ int migrate_pages(struct list_head *from, new_page_t get_new_page, } } } - rc = nr_failed + retry; + nr_failed += retry; + rc = nr_failed; out:if (nr_succeeded)count_vm_events (PGMIGRATE_SUCCESS , nr_succeeded);
Signature · 7 lines
2.5.0 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Vlastimil Babka
Migration tries up to 10 times to migrate pages that return
-EAGAINuntil it gives up. If some pages fail all retries, they are counted towards the number of failed pages thatmigrate_pages()returns. They should also be counted in the/proc/vmstatpgmigrate_failand in themm_migrate_pagestracepoint.Signed-off-by Vlastimil Babka <[email protected]>
I assume nothing else other than stats and tracepoints are affected by this and this isn't a critical bugfix :)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · David Rientjes
Quoted 6 lines · Vlastimil Babka
Migration tries up to 10 times to migrate pages that return
-EAGAINuntil it gives up. If some pages fail all retries, they are counted towards the number of failed pages thatmigrate_pages()returns. They should also be counted in the/proc/vmstatpgmigrate_failand in themm_migrate_pagestracepoint.Signed-off-by Vlastimil Babka <[email protected]>Acked-by David Rientjes <[email protected]>
Thanks.
Quoted 2 lines
I assume nothing else other than stats and tracepoints are affected by this and this isn't a critical bugfix :)
Yep, no stable needed :)
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>