I have come across tests/hwloc_distances test and I believe that it would be
great to convert this into the utility "hwloc-report-instances" published
under utils/ directory. Please let me know what you think about it.
It would take the same input as hwloc-info (read topology from different
formats instead of discovering the topology on the local machine), support
both logical and physical indexes (-l and -p) switch.
I have used stream memory bandwidth benchmark (
http://www.cs.virginia.edu/stream/) in the past to produce the similar
output as tests/hwloc_distances. It was interesting to see that numactl and
kernel scheduler are both using number of hopes instead of memory bandwidth.
On some systems number of hops does not represent memory bandwidth. I have
reported this in BZ 655041
In any case I believe that hwloc-report-instances would be useful utility.
Please let me know your opinion.