From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by kanga.kvack.org (Postfix) with ESMTP id CD7686B0072 for ; Thu, 2 Oct 2014 11:49:42 -0400 (EDT) Received: by mail-wi0-f170.google.com with SMTP id hi2so1953991wib.1 for ; Thu, 02 Oct 2014 08:49:42 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id cr6si5881978wjb.1.2014.10.02.08.49.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 02 Oct 2014 08:49:40 -0700 (PDT) From: Vlastimil Babka Subject: [PATCH 3/4] mm, cma: drain single zone pcplists Date: Thu, 2 Oct 2014 17:48:59 +0200 Message-Id: <1412264940-15738-4-git-send-email-vbabka@suse.cz> In-Reply-To: <1412264940-15738-1-git-send-email-vbabka@suse.cz> References: <1412264940-15738-1-git-send-email-vbabka@suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vlastimil Babka , Naoya Horiguchi , Mel Gorman , Rik van Riel , Yasuaki Ishimatsu , Zhang Yanfei , Xishi Qiu , Vladimir Davydov , Joonsoo Kim 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 Cc: Naoya Horiguchi Cc: Mel Gorman Cc: Rik van Riel Cc: Yasuaki Ishimatsu Cc: Zhang Yanfei Cc: Xishi Qiu Cc: Vladimir Davydov Cc: Joonsoo Kim --- 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org