Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761580AbXKHR0v (ORCPT ); Thu, 8 Nov 2007 12:26:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759955AbXKHR0o (ORCPT ); Thu, 8 Nov 2007 12:26:44 -0500 Received: from waste.org ([66.93.16.53]:47015 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759871AbXKHR0n (ORCPT ); Thu, 8 Nov 2007 12:26:43 -0500 Date: Thu, 8 Nov 2007 11:25:48 -0600 From: Matt Mackall To: Mel Gorman Cc: Christoph Lameter , akpm@linux-foundatin.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch 02/23] SLUB: Rename NUMA defrag_ratio to remote_node_defrag_ratio Message-ID: <20071108172548.GW17536@waste.org> References: <20071107011130.382244340@sgi.com> <20071107011226.844437184@sgi.com> <20071108145044.GB2591@skynet.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071108145044.GB2591@skynet.ie> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 21 On Thu, Nov 08, 2007 at 02:50:44PM +0000, Mel Gorman wrote: > > - if (!s->defrag_ratio || get_cycles() % 1024 > s->defrag_ratio) > > + if (!s->remote_node_defrag_ratio || > > + get_cycles() % 1024 > s->remote_node_defrag_ratio) > > I cannot figure out what the number of cycles currently showing on the TSC > have to do with a ratio :(. I could semi-understand if we were counting up > how many cycles were being spent trying to pack objects but that does not > appear to be the case. The comment didn't help a whole lot either. It felt > like a cost for packing, not a ratio It's just a random number generator. And a bad one: lots of arches return 0. And I believe at least one of them has some NUMA support. -- Mathematics is the supreme nostalgia of our time. - 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/