Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755106Ab0AUKL1 (ORCPT ); Thu, 21 Jan 2010 05:11:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755017Ab0AUKL0 (ORCPT ); Thu, 21 Jan 2010 05:11:26 -0500 Received: from gir.skynet.ie ([193.1.99.77]:38619 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754912Ab0AUKLZ (ORCPT ); Thu, 21 Jan 2010 05:11:25 -0500 Date: Thu, 21 Jan 2010 10:11:12 +0000 From: Mel Gorman To: KOSAKI Motohiro Cc: Andrea Arcangeli , Christoph Lameter , Adam Litke , Avi Kivity , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC-PATCH 0/7] Memory Compaction v1 Message-ID: <20100121101112.GH5154@csn.ul.ie> References: <1262795169-9095-1-git-send-email-mel@csn.ul.ie> <20100121115636.73BA.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20100121115636.73BA.A69D9226@jp.fujitsu.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2377 Lines: 55 On Thu, Jan 21, 2010 at 12:12:11PM +0900, KOSAKI Motohiro wrote: > Hi Mel, > > Sorry, I haven't read this patch at all. > > > The time differences are marginal but bear in mind that this is an ideal > > case of mostly unmapped buffer pages. On nice set of results is between > > allocations 13-18 where no pages were reclaimed, some compaction occured > > and 300 huge pages were allocated in 0.16 seconds. Furthermore, compaction > > allocated a high higher percentage of memory (91% of RAM as huge pages). > > > > The downside appears to be that the compaction kernel reclaimed even more > > pages than the vanilla kernel. However, take the cut-off point of 880 pages > > that both kernels succeeded. The vanilla kernel had reclaimed 105132 pages > > at that point. The kernel with compaction had reclaimed 59071, less than > > half of what the vanilla kernel reclaimed. i.e. the bulk of pages reclaimed > > with the compaction kernel were to get from 87% of memory allocated to 91% > > as huge pages. > > > > These results would appear to be an encouraging enough start. > > > > Comments? > > I think "Total pages reclaimed" increasing is not good thing ;) First, I made a mistake in the patch. With the bug fixed, they're reduced. See the post later in the thread http://lkml.org/lkml/2010/1/6/215 > Honestly, I haven't understand why your patch increase reclaimed and > the exactly meaning of the your tool's rclm field. > > Can you share your mesurement script? May I run the same test? > Unfortunately at the moment it's part of a mini-testgrid setup I run out of the house. It doesn't lend itself to being stand-alone. I'll break it out as part of the next release. > I like this patch, but I don't like increasing reclaim. I'd like to know > this patch require any vmscan change and/or its change mitigate the issue. > With the bug repaired, reclaims go from 105132 to 45935 with more huge pages allocated so right now, no special action is required. -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab -- 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/