Re: [hwloc-users] PCI to NUMA node mapping.

2020-02-03 Thread Brice Goglin
Hello Liam

dmidecode is usually reserved to root only because it uses SMBIOS or
whatever hardware/ACPI/... tables. Those tables are read by the Linux
kernel and exported to non-root users in sysfs:

$ cat /sys/bus/pci/devices/:ae:0c.6/numa_node 
1

However this file isn't that good because some old platforms had PCI
buses attached to 2 NUMA nodes (cannot be exposed in the above sysfs
"numa_node" file). So we rather read the list of local CPUs:

$ cat /sys/bus/pci/devices/:ae:0c.6/local_cpus
,,
$ cat /sys/bus/pci/devices/:ae:0c.6/local_cpulist 
1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77

Brice



Le 03/02/2020 à 17:46, Murphy, Liam a écrit :
>
> Newbie question.
>
>  
>
> I know that dmidecode uses the num_node files under
> /sys/devices/pcie…, but hwloc does not seem
>
> to use the same mechanism to determine which PCI devices are on which
> numa node? From which
>
> file is it deriving the information?
>
>  
>
> Regards,
>
> Liam
>
>
> ___
> hwloc-users mailing list
> hwloc-users@lists.open-mpi.org
> https://lists.open-mpi.org/mailman/listinfo/hwloc-users
___
hwloc-users mailing list
hwloc-users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-users

[hwloc-users] PCI to NUMA node mapping.

2020-02-03 Thread Murphy, Liam
Newbie question.

I know that dmidecode uses the num_node files under /sys/devices/pcie..., but 
hwloc does not seem
to use the same mechanism to determine which PCI devices are on which numa 
node? From which
file is it deriving the information?

Regards,
Liam
___
hwloc-users mailing list
hwloc-users@lists.open-mpi.org
https://lists.open-mpi.org/mailman/listinfo/hwloc-users