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/0000: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/0000:ae:0c.6/local_cpus
2222,22222222,22222222
$ cat /sys/bus/pci/devices/0000: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

Reply via email to