Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751671AbWBEJMR (ORCPT ); Sun, 5 Feb 2006 04:12:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751674AbWBEJMQ (ORCPT ); Sun, 5 Feb 2006 04:12:16 -0500 Received: from uproxy.gmail.com ([66.249.92.197]:19724 "EHLO uproxy.gmail.com") by vger.kernel.org with ESMTP id S1751664AbWBEJMO convert rfc822-to-8bit (ORCPT ); Sun, 5 Feb 2006 04:12:14 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e0oyHf3OVQVnqQw4HLYp3sFwSK0+XCl/fBM2EPlCQLKeq/BC0jQEQ7Q0+YFQyfErB3Dq156VUpiGZsKJsS8x06eeosGxKd8OP80U7NoEa1Xzf42ihUs2i+g045I9BvWH1mntKkgz7cEEwfBixX/Dgt4sA+c8cxigc2cWjNhj638= Message-ID: <2cd57c900602050112l701cf9e2p@mail.gmail.com> Date: Sun, 5 Feb 2006 17:12:12 +0800 From: Coywolf Qi Hunt To: Mel Gorman Subject: Re: [PATCH 2/4] Split the free lists into kernel and user parts Cc: linux-mm@kvack.org, jschopp@austin.ibm.com, linux-kernel@vger.kernel.org, kamezawa.hiroyu@jp.fujitsu.com, lhms-devel@lists.sourceforge.net In-Reply-To: <2cd57c900602050057p1b5a813bh@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Content-Disposition: inline References: <20060120115415.16475.8529.sendpatchset@skynet.csn.ul.ie> <20060120115455.16475.93688.sendpatchset@skynet.csn.ul.ie> <2cd57c900602050057p1b5a813bh@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1740 Lines: 44 2006/2/5, Coywolf Qi Hunt : > 2006/1/20, Mel Gorman : > > > > This patch adds the core of the anti-fragmentation strategy. It works by > > grouping related allocation types together. The idea is that large groups of > > pages that may be reclaimed are placed near each other. The zone->free_area > > list is broken into RCLM_TYPES number of lists. > > > > Signed-off-by: Mel Gorman > > Signed-off-by: Joel Schopp > > diff -rup -X /usr/src/patchset-0.5/bin//dontdiff linux-2.6.16-rc1-mm1-001_antifrag_flags/include/linux/mmzone.h linux-2.6.16-rc1-mm1-002_fragcore/include/linux/mmzone.h > > --- linux-2.6.16-rc1-mm1-001_antifrag_flags/include/linux/mmzone.h 2006-01-19 11:21:59.000000000 +0000 > > +++ linux-2.6.16-rc1-mm1-002_fragcore/include/linux/mmzone.h 2006-01-19 21:51:05.000000000 +0000 > > @@ -22,8 +22,16 @@ > > #define MAX_ORDER CONFIG_FORCE_MAX_ZONEORDER > > #endif > > > > +#define RCLM_NORCLM 0 > > better be RCLM_NORMAL err, RCLM_NONRCLM, or RCLM_NONE > > > +#define RCLM_EASY 1 > > +#define RCLM_TYPES 2 > > + > > +#define for_each_rclmtype_order(type, order) \ > > + for (order = 0; order < MAX_ORDER; order++) \ > > + for (type = 0; type < RCLM_TYPES; type++) > > + > > struct free_area { > > - struct list_head free_list; > > + struct list_head free_list[RCLM_TYPES]; > > unsigned long nr_free; > > }; -- Coywolf Qi Hunt - 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/