Re: Exporting physical topology information

From: Greg KH
Date: Thu Mar 18 2004 - 19:26:08 EST


On Wed, Mar 17, 2004 at 04:37:14PM -0500, Martin Hicks wrote:
>
> Hi,
>
> I'm trying to figure out what the best way is to export a minimal amount
> of physical topology information to userland. Would it be acceptable to
> export this kind of information with sysfs?
>
> I'm not proposing that we build an entire physical topology tree in
> sysfs, but just providing an attribute file. The two most obvious
> examples of where this would be useful is for nodes and pci busses. The
> Altix platform is a modular system with CPU bricks and IO bricks. We
> currently have no method for locating where "node0" is, nor do we have a
> method for locating pci bus 0000:20, for example.
>
> If we could physically locate a PCI bus, then it would be much easier
> to (for example) locate our defective SCSI disk that is target4 on the
> SCSI controller that is on pci bus 0000:20.

Um, what's wrong with the current /sys/class/pci_bus/*/cpuaffinity files
for determining this topology information? That is why it was added.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/