Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932230AbVJ0Uoc (ORCPT ); Thu, 27 Oct 2005 16:44:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932234AbVJ0Uoc (ORCPT ); Thu, 27 Oct 2005 16:44:32 -0400 Received: from smtp.osdl.org ([65.172.181.4]:16545 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932230AbVJ0Uob (ORCPT ); Thu, 27 Oct 2005 16:44:31 -0400 Date: Thu, 27 Oct 2005 13:43:47 -0700 From: Andrew Morton To: Marcelo Tosatti Cc: magnus.damm@gmail.com, clameter@sgi.com, kravetz@us.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 0/4] Swap migration V3: Overview Message-Id: <20051027134347.56d29cfa.akpm@osdl.org> In-Reply-To: <20051027150142.GE13500@logos.cnet> References: <20051020225935.19761.57434.sendpatchset@schroedinger.engr.sgi.com> <20051022005050.GA27317@logos.cnet> <20051024074418.GC2016@logos.cnet> <20051025143741.GA6604@logos.cnet> <20051027150142.GE13500@logos.cnet> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 737 Lines: 17 Marcelo Tosatti wrote: > > The fair approach would be to have the > number of pages to reclaim also relative to zone size. > > sc->nr_to_reclaim = (zone->present_pages * sc->swap_cluster_max) / > total_memory; You can try it, but that shouldn't matter. SWAP_CLUSTER_MAX is just a batching factor used to reduce CPU consumption. If you make it twice as bug, we run DMA-zone reclaim half as often - it should balance out. - 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/