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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> 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?





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux