From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760057AbZEKV31 (ORCPT ); Mon, 11 May 2009 17:29:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759638AbZEKV3K (ORCPT ); Mon, 11 May 2009 17:29:10 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:58116 "EHLO www.etchedpixels.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759634AbZEKV3I (ORCPT ); Mon, 11 May 2009 17:29:08 -0400 Date: Mon, 11 May 2009 22:26:08 +0100 From: Alan Cox To: "H. Peter Anvin" Cc: David Rientjes , Jack Steiner , Yinghai Lu , Ingo Molnar , Thomas Gleixner , Andrew Morton , Andi Kleen , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 3/3] x86: fix node_possible_map logic -v2 Message-ID: <20090511222608.61b99dad@lxorguk.ukuu.org.uk> In-Reply-To: <4A0894A5.9000209@zytor.com> References: <4A05269D.8000701@kernel.org> <4A0527CB.4020807@kernel.org> <20090511175312.GA27905@sgi.com> <4A0894A5.9000209@zytor.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; x86_64-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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > CPU [0-1] cannot be considered local in either node, since they are > further away from the memory than either, and furthermore, unlike either > of the memory nodes, they have no preference for memory from either of > the other two nodes (quite on the contrary; they would probably benefit > from drawing from both.) Surely you should schedule based on the memory bandwidth at that point ? Assuming the data collection overhead is acceptable. A long time ago someone did a paper on a related topic (Scheduling by memory bandwidth on the grounds that memory not CPU bandwidth was the resource most constrained) and that demonstrated that for quite a few processors the memory bandwidth data is cheaply available in the profiling registers. Alan