Hi Brice,
> Well, this is interesting. numactl --hardware shows the number ofI think this is wrong. numactl takes everything from sysfs as far as I
> hops, regarding to the information from that private BZ.
can tell. On x86, sysfs distances are ACPI SLIT latencies (memory
latencies that are normalized to 10 for latencies from one cpu to its
local memory). A couple months ago, I checked all Linux ports that show
distances in sysfs. All of them report memory latencies, except the SGI
IP27 as mentioned previously (this one indeed shows number of hops (0
when local) and it makes a lot of sense for this architecture).
One problem I see with the number of hops is that it doesn't make sense
on some machines. On some 8-socket AMD machines (such as
8amd64-4n2c.tar.bz2 below) , the hypertransport route between some
sockets varies with the type of packet (response or request) and the
direction. So the number of hops ends up being asymmetric, depends on
read/write, and can be half of an integer.
Look at tests/linux/ in the hwloc SVN. The following tarballs contain
NUMA architectures. Some of these were gathered while running old
kernels, but I don't think it matters because Linux/sysfs reports what
the BIOS without changing much of it.