Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262044AbUKDEOS (ORCPT ); Wed, 3 Nov 2004 23:14:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261972AbUKDEOS (ORCPT ); Wed, 3 Nov 2004 23:14:18 -0500 Received: from cantor.suse.de ([195.135.220.2]:56783 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S261633AbUKDEOG (ORCPT ); Wed, 3 Nov 2004 23:14:06 -0500 Date: Thu, 4 Nov 2004 05:07:13 +0100 From: Andi Kleen To: Takayoshi Kochi Cc: steiner@sgi.com, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Externalize SLIT table Message-ID: <20041104040713.GC21211@wotan.suse.de> References: <20041103205655.GA5084@sgi.com> <20041104.105908.18574694.t-kochi@bq.jp.nec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041104.105908.18574694.t-kochi@bq.jp.nec.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2133 Lines: 79 On Thu, Nov 04, 2004 at 10:59:08AM +0900, Takayoshi Kochi wrote: > Hi, > > For wider audience, added LKML. > > From: Jack Steiner > Subject: Externalize SLIT table > Date: Wed, 3 Nov 2004 14:56:56 -0600 > > > The SLIT table provides useful information on internode > > distances. Has anyone considered externalizing this > > table via /proc or some equivalent mechanism. > > > > For example, something like the following would be useful: > > > > # cat /proc/acpi/slit > > 010 066 046 066 > > 066 010 066 046 > > 046 066 010 020 > > 066 046 020 010 > > > > If this looks ok (or something equivalent), I'll generate a patch.... This isn't very useful without information about proximity domains. e.g. on x86-64 the proximity domain number is not necessarily the same as the node number. > For user space to manipulate scheduling domains, pinning processes > to some cpu groups etc, that kind of information is very useful! > Without this, users have no notion about how far between two nodes. Also some reporting of _PXM for PCI devices is needed. I had a experimental patch for this on x86-64 (not ACPI based), that reported nearby nodes for PCI busses. > > But ACPI SLIT table is too arch specific (ia64 and x86 only) and > user-visible logical number and ACPI proximity domain number is > not always identical. Exactly. > > Why not export node_distance() under sysfs? > I like (1). > > (1) obey one-value-per-file sysfs principle > > % cat /sys/devices/system/node/node0/distance0 > 10 Surely distance from 0 to 0 is 0? > % cat /sys/devices/system/node/node0/distance1 > 66 > > (2) one distance for each line > > % cat /sys/devices/system/node/node0/distance > 0:10 > 1:66 > 2:46 > 3:66 > > (3) all distances in one line like /proc//stat > > % cat /sys/devices/system/node/node0/distance > 10 66 46 66 I would prefer that. -Andi - 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/