Re: [PATCH RFC 1/4] drivers/base/node: Add demotion_nodes sys infterface

From: Zhijian Li (Fujitsu)
Date: Mon Feb 05 2024 - 02:32:12 EST




On 02/02/2024 16:19, Huang, Ying wrote:
>> Back to our initial requirement:
>> When demotion is enabled, what's the demotion path, especially the preferred node?
>> are they consistent with administrator's expectations?"
>>
>> It seems there is no a direct answer. But actually, kernel have already known
>> this information, IMHO, exposing them to users is not a bad choice.
>>
>> This information is able to help them adjust/tune the machine before really
>> deploy their workloads.
>>
>> If the sysfs approach isn't better enough, is it possible to have another more
>> user-friendly way to convey this information? like the allocation fallback order does,
>> simply print them to dmesg?
> I have no object to print some demotion information in dmesg.
>

Thank you for sharing your thoughts and feedback on this.
I will attempt to do so.


Thanks
Zhijian