Re: [PATCH v2 5/9] mm, page_owner: track and print last migrate reason

2015-11-26 Thread Vlastimil Babka
On 11/25/2015 09:13 AM, Joonsoo Kim wrote: >> +if (page_ext->last_migrate_reason != -1) { >> +ret += snprintf(kbuf + ret, count - ret, >> +"Page has been migrated, last migrate reason: %s\n", >> +migrate_reason_names[page_ext->last_migrate_rea

Re: [PATCH v2 5/9] mm, page_owner: track and print last migrate reason

2015-11-25 Thread Joonsoo Kim
On Tue, Nov 24, 2015 at 01:36:17PM +0100, Vlastimil Babka wrote: > During migration, page_owner info is now copied with the rest of the page, so > the stacktrace leading to free page allocation during migration is > overwritten. > For debugging purposes, it might be however useful to know that the

[PATCH v2 5/9] mm, page_owner: track and print last migrate reason

2015-11-24 Thread Vlastimil Babka
During migration, page_owner info is now copied with the rest of the page, so the stacktrace leading to free page allocation during migration is overwritten. For debugging purposes, it might be however useful to know that the page has been migrated since its initial allocation. This might happen ma