lkml.org 
[lkml]   [2014]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] mm, cma: drain single zone pcplists
Date
CMA allocation drains pcplists so that pages can merge back to buddy allocator.
Since it operates on a single zone, we can reduce the pcplists drain to the
single zone, which is now possible.

The change should make CMA allocations faster and not disturbing unrelated
pcplists anymore.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Xishi Qiu <qiuxishi@huawei.com>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
---
mm/page_alloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index bc3db3e..e758159 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -6417,7 +6417,7 @@ int alloc_contig_range(unsigned long start, unsigned long end,
*/

lru_add_drain_all();
- drain_all_pages(NULL);
+ drain_all_pages(cc.zone);

order = 0;
outer_start = start;
--
1.8.4.5


\
 
 \ /
  Last update: 2014-10-02 18:21    [W:0.044 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site