From: Keir Fraser Subject: Re: [RFC] [PATCH] Memory allocation from the nearest node. Date: Tue, 07 Apr 2009 08:50:20 +0100 Message-ID: References: <20090407160245.9D90.27C06F64@necst.nec.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090407160245.9D90.27C06F64@necst.nec.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Yuji Shimada , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 07/04/2009 08:34, "Yuji Shimada" wrote: > BIOS sets distance between NUMA node to SLIT table of ACPI. This patch > uses the value of SLIT table to get distance between NUMA node. > If ACPI does not have SLIT table, the value of "10" is defined as the > same node and "20" is defined as the different node. > > I would like ask any comments of developers. > I will make the modified patch after Xen 3.4 is released. I'd personally rather initialise a N*N array and then search next_node[first_node][i], 0<=i