Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 16 Jul 2002 15:02:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 16 Jul 2002 15:02:11 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.101]:2693 "EHLO e1.ny.us.ibm.com") by vger.kernel.org with ESMTP id ; Tue, 16 Jul 2002 15:02:11 -0400 Date: Tue, 16 Jul 2002 12:03:52 -0700 From: "Martin J. Bligh" To: Linus Torvalds , Andi Kleen cc: Andrew Morton , linux-kernel@vger.kernel.org, Michael Hohnbaum Subject: Re: [patch[ Simple Topology API Message-ID: <1394120000.1026846232@flay> In-Reply-To: References: X-Mailer: Mulberry/2.1.2 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1443 Lines: 29 > The whole "node" concept sounds broken. There is no such thing as a node, > since even within nodes latencies will easily differ for different CPU's > if you have local memories for CPU's within a node (which is clearly the > only sane thing to do). Define a node as a group of CPUs with the same set of latencies to memory. Then you get something that makes sense for everyone, and reduces the storage of duplicated data. If your latencies for each CPU are different, define a 1-1 mapping between nodes and CPUs. If you really want to store everthing for each CPU, that's fine. > If you want to model memory behaviour, you should have memory descriptors > (in linux parlance, "zone_t") have an array of latencies to each CPU. That > latency is _not_ a "is this memory local to this CPU" kind of number, that > simply doesn't make any sense. The fact is, what matters is the number of > hops. Maybe you want to allow one hop, but not five. I can't help thinking that we'd be better off making the mechanism as generic as possible, and not trying to predict all the wierd and wonderful things people might want to do (eg striping), then implement what you describe as a policy decision. M. - 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/