Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935451AbXHHQt4 (ORCPT ); Wed, 8 Aug 2007 12:49:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753449AbXHHQts (ORCPT ); Wed, 8 Aug 2007 12:49:48 -0400 Received: from gir.skynet.ie ([193.1.99.77]:37035 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753736AbXHHQtr (ORCPT ); Wed, 8 Aug 2007 12:49:47 -0400 Date: Wed, 8 Aug 2007 17:49:44 +0100 To: Andrew Morton Cc: Andi Kleen , Lee.Schermerhorn@hp.com, clameter@sgi.com, kamezawa.hiroyu@jp.fujitsu.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Apply memory policies to top two highest zones when highest zone is ZONE_MOVABLE Message-ID: <20070808164944.GA974@skynet.ie> References: <20070802172118.GD23133@skynet.ie> <200708040002.18167.ak@suse.de> <20070806121558.e1977ba5.akpm@linux-foundation.org> <200708062231.49247.ak@suse.de> <20070806215541.GC6142@skynet.ie> <20070806221252.aa1e9048.akpm@linux-foundation.org> <20070807165546.GA7603@skynet.ie> <20070807111430.f35c03c0.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20070807111430.f35c03c0.akpm@linux-foundation.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: mel@skynet.ie (Mel Gorman) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2260 Lines: 48 On (07/08/07 11:14), Andrew Morton didst pronounce: > On Tue, 7 Aug 2007 17:55:47 +0100 mel@skynet.ie (Mel Gorman) wrote: > > > On (06/08/07 22:12), Andrew Morton didst pronounce: > > > On Mon, 6 Aug 2007 22:55:41 +0100 mel@skynet.ie (Mel Gorman) wrote: > > > > > > > On (06/08/07 22:31), Andi Kleen didst pronounce: > > > > > > > > > > > If correct, I would suggest merging the horrible hack for .23 then taking > > > > > > it out when we merge "grouping pages by mobility". But what if we don't do > > > > > > that merge? > > > > > > > > > > Or disable ZONE_MOVABLE until it is usable? > > > > > > > > It's usable now. The issue with policies only occurs if the user specifies > > > > kernelcore= or movablecore= on the command-line. Your language suggests > > > > that you believe policies are not applied when ZONE_MOVABLE is configured > > > > at build-time. > > > > > > So.. the problem which we're fixing here is only present when someone > > > use kernelcore=. This is in fact an argument for _not_ merging the > > > horrible-hack. > > > > > > > It's even more constrained than that. It only applies to the MPOL_BIND > > policy when kernelcore= is specified. The other policies work the same > > as they ever did. > > so.. should we forget about merging the horrible-hack? Despite a fairly specific case, I'd still like to get the problem fixed for 2.6.23. I've posted up an alternative fix under the subject "Use one zonelist per node instead of multiple zonelists v2". It's a more invasive fix although arguably it's better overall than the hack because it's not dealing with a specific special case and has a sensible path forward that makes policies a saner ultimately. However, unlike the hack it affects all callers of the page allocator so lets see what the reaction from reviewers is before forgetting about the hack altogether. -- 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/