Subject: + mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page.patch added to -mm tree To: troy.zhangmingjun@xxxxxxxxxx,kosaki.motohiro@xxxxxxxxxxxxxx,lauraa@xxxxxxxxxxxxxx,mgorman@xxxxxxx,minchan@xxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 05 Nov 2013 13:46:47 -0800 The patch titled Subject: mm: cma: free cma page to buddy instead of being cpu hot page has been added to the -mm tree. Its filename is mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page.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: Mingjun Zhang <troy.zhangmingjun@xxxxxxxxxx> Subject: mm: cma: free cma page to buddy instead of being cpu hot page free_contig_range() frees cma pages one by one and MIGRATE_CMA pages will be used as MIGRATE_MOVEABLE pages in the pcp list, it causes unnecessary migration action when these pages reused by CMA. Signed-off-by: Mingjun Zhang <troy.zhangmingjun@xxxxxxxxxx> Cc: Laura Abbott <lauraa@xxxxxxxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN mm/page_alloc.c~mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page mm/page_alloc.c --- a/mm/page_alloc.c~mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page +++ a/mm/page_alloc.c @@ -1356,7 +1356,8 @@ void free_hot_cold_page(struct page *pag * excessively into the page allocator */ if (migratetype >= MIGRATE_PCPTYPES) { - if (unlikely(is_migrate_isolate(migratetype))) { + if (unlikely(is_migrate_isolate(migratetype)) + || is_migrate_cma(migratetype)) free_one_page(zone, page, 0, migratetype); goto out; } _ Patches currently in -mm which might be from troy.zhangmingjun@xxxxxxxxxx are mm-cma-free-cma-page-to-buddy-instead-of-being-cpu-hot-page.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