From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965559AbXAZP40 (ORCPT ); Fri, 26 Jan 2007 10:56:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965704AbXAZP4Z (ORCPT ); Fri, 26 Jan 2007 10:56:25 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:35767 "EHLO omx2.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965559AbXAZP4Y (ORCPT ); Fri, 26 Jan 2007 10:56:24 -0500 Date: Fri, 26 Jan 2007 07:56:09 -0800 (PST) From: Christoph Lameter To: Andrew Morton cc: Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Christoph Lameter Subject: Re: [PATCH 0/8] Create ZONE_MOVABLE to partition memory between movable and non-movable pages In-Reply-To: <20070126030753.03529e7a.akpm@osdl.org> Message-ID: References: <20070125234458.28809.5412.sendpatchset@skynet.skynet.ie> <20070126030753.03529e7a.akpm@osdl.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jan 2007, Andrew Morton wrote: > - They add zillions of ifdefs They just add a few for ZONE_DMA where we alreaday have similar ifdefs for ZONE_DMA32 and ZONE_HIGHMEM. > - They make the VM's behaviour diverge between different platforms and > between differen configs on the same platforms, and hence degrade > maintainability and increase complexity. They avoid unecessary complexity on platforms. They could be made to work on more platforms with measures to deal with what ZONE_DMA provides in different ways. There are 6 or so platforms that do not need ZONE_DMA at all. > - We kicked around some quite different ways of implementing the same > things, but nothing came of it. iirc, one was to remove the hard-coded > zones altogether and rework all the MM to operate in terms of > > for (idx = 0; idx < NUMBER_OF_ZONES; idx++) > ... Hmmm.. How would that be simpler? > - I haven't seen any hard numbers to justify the change. I have send you numbers showing significant reductions in code size.