Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755396AbbESHqp (ORCPT ); Tue, 19 May 2015 03:46:45 -0400 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:45586 "EHLO lgemrelse6q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754097AbbESHqo (ORCPT ); Tue, 19 May 2015 03:46:44 -0400 X-Original-SENDERIP: 10.177.222.220 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Tue, 19 May 2015 16:47:09 +0900 From: Joonsoo Kim To: Vlastimil Babka Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mel Gorman , Johannes Weiner , Rik van Riel Subject: Re: [PATCH 2/3] mm/page_alloc: stop fallback allocation if we already get some freepage Message-ID: <20150519074708.GD12092@js1304-P5Q-DELUXE> References: <1430119421-13536-1-git-send-email-iamjoonsoo.kim@lge.com> <1430119421-13536-2-git-send-email-iamjoonsoo.kim@lge.com> <5551BB98.2040703@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5551BB98.2040703@suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1865 Lines: 50 On Tue, May 12, 2015 at 10:36:40AM +0200, Vlastimil Babka wrote: > On 04/27/2015 09:23 AM, Joonsoo Kim wrote: > >Sometimes we try to get more freepages from buddy list than how much > >we really need, in order to refill pcp list. This may speed up following > >allocation request, but, there is a possibility to increase fragmentation > >if we steal freepages from other migratetype buddy list excessively. This > >patch changes this behaviour to stop fallback allocation in order to > >reduce fragmentation if we already get some freepages. > > > >CPU: 8 > >RAM: 512 MB with zram swap > >WORKLOAD: kernel build with -j12 > >OPTION: page owner is enabled to measure fragmentation > >After finishing the build, check fragmentation by 'cat /proc/pagetypeinfo' > > > >* Before > >Number of blocks type (movable) > >DMA32: 208.4 > > > >Number of mixed blocks (movable) > >DMA32: 139 > > > >Mixed blocks means that there is one or more allocated page for > >unmovable/reclaimable allocation in movable pageblock. Results shows that > >more than half of movable pageblock is tainted by other migratetype > >allocation. > > > >* After > >Number of blocks type (movable) > >DMA32: 207 > > > >Number of mixed blocks (movable) > >DMA32: 111.2 > > > >This result shows that non-mixed block increase by 38% in this case. > > > >Signed-off-by: Joonsoo Kim > > I agree that keeping fragmentation low is more important than > filling up the pcplists. Wouldn't expect such large difference > though. Are the results stable? Yes, I think that improvement is very stable. stdev is roughly 8 in 5 runs. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/