[PATCH v1 1/1] usertools/devbind: fix NUMA node display

Burakov, Anatoly anatoly.burakov at intel.com
Fri Nov 29 10:28:34 CET 2024


On 11/29/2024 10:12 AM, Burakov, Anatoly wrote:
> On 11/28/2024 6:20 PM, Stephen Hemminger wrote:
>> On Thu, 28 Nov 2024 16:08:55 +0000
>> Anatoly Burakov <anatoly.burakov at intel.com> wrote:
>>
>>> +    # occasionally, system may report NUMA support but lspci will 
>>> not, so we
>>> +    # want to go through all devices and see if any of them do not 
>>> have NUMANode
>>> +    # property - this will mean it is not safe to try to access it
>>> +    for device_dict in devices.values():
>>> +        if "NUMANode" not in device_dict:
>>> +            return False
>>
>> Any indication as to why this happens, what kernel, what device?
> 
> We've had internal validation team report this happenning on VM's, 
> particularly ESXi. I did not dig deeper as to what particular 
> configurations cause this to happen, I didn't have a chance to reproduce 
> this myself.
> 

I just reproduced this on my machine by disabling NUMA support in BIOS. 
I can confirm that /sys/devices/system/node exists in sysfs but lspci 
will not report NUMA node in that case. So, it probably applies to all 
kernels.

-- 
Thanks,
Anatoly


More information about the dev mailing list