Re: [PATCH] mempolicy: check home_node is in the nodes of policy

ustc
2024-01-29T06:15:24Z

For example,  In a system with NUMA nodes 0,1,2,3, i mbind process to
node 0-2 and set home_node to node 3, it will not be allocated from node
3, then from node closer to node 3. But i think home_node should be set
directly from node 0-2, which makes more sense. So i think it needs to
return failure to prompt user.

On 2024/1/28 16:29, Andrew Morton wrote:
> On Fri, 26 Jan 2024 08:22:40 -0500 Chunsheng Luo <luochunsheng@ustc.edu> wrote:
>
>> set_mempolicy_home_node should be used after setting the memory
>> policy. If the home_node isn't in the nodes of policy, we should
>> return failure to avoid misunderstanding.
> Thanks. Under what circumstances does userspace trigger this issue?
>