From: ustc <luochunsheng@ustc.edu>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mempolicy: check home_node is in the nodes of policy
Date: Mon, 29 Jan 2024 14:15:00 +0800 [thread overview]
Message-ID: <0e99b72c-c3d9-424e-8efe-af750da69ebf@ustc.edu> (raw)
In-Reply-To: <20240128002942.b0dbede1fcc4b80d2a398d15@linux-foundation.org>
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?
>
next prev parent reply other threads:[~2024-01-29 6:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-26 13:22 [PATCH] mempolicy: check home_node is in the nodes of policy Chunsheng Luo
2024-01-28 8:29 ` Andrew Morton
2024-01-29 6:15 ` ustc [this message]
2024-01-29 15:12 ` Gregory Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e99b72c-c3d9-424e-8efe-af750da69ebf@ustc.edu \
--to=luochunsheng@ustc.edu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox