From: Cai Xinchen <caixinchen1@huawei.com>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: <llong@redhat.com>, <tj@kernel.org>, <hannes@cmpxchg.org>,
<cgroups@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<lujialin4@huawei.com>
Subject: Re: [PATCH -next RFC 0/2] cpuset: Add cpuset.mems.spread_page to cgroup v2
Date: Tue, 4 Nov 2025 20:00:05 +0800 [thread overview]
Message-ID: <032f82e9-552a-4ad8-aff7-717e6f38af43@huawei.com> (raw)
In-Reply-To: <doalyrbxmhzm6vvkotoqganga7s375athzlsnbab343wadijb5@winjpuf5m7dd>
Therefore, when setting memory_spread_page, I also need to perform a
drop cache operation.
This way, there is no need to restart the service.
Some previous ideas, such as using procfs or set_mempolicy to change the
mempolicy of
non-current processes, could also achieve the goal after dropping the
cache. [1]
Of course, changing the current memory distribution does not necessarily
require dropping
the cache, but it will inevitably lead to a series of memory migrations.
[1]
https://lore.kernel.org/all/20231122211200.31620-1-gregory.price@memverge.com/
https://lore.kernel.org/all/ZWS19JFHm_LFSsFd@tiehlicka/
On 11/3/2025 9:39 PM, Michal Koutný wrote:
> On Mon, Oct 20, 2025 at 02:20:30PM +0800, Cai Xinchen <caixinchen1@huawei.com> wrote:
>> The MPOL_INTERLEAVE setting requires restarting the DataNode service.
>> In this scenario, the issue can be resolved by restarting the service,
> \o/
>
>> but I would prefer not to restart the DataNode service if possible,
>> as it would cause a period of service interruption.
> AFAICS, the implementation of cpuset's spread page works only for new
> allocations (filemap_alloc_folio_noprof/cpuset_do_page_mem_spread) and
> there's no migraion in cpuset1_update_task_spread_flags(). So this
> simple v1-like spreading would still require restart of the service.
>
> (This challenge of dynamism also a reason why it's not ready for v2,
> IMO.)
>
> HTH,
> Michal
next prev parent reply other threads:[~2025-11-04 12:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-30 9:35 Cai Xinchen
2025-09-30 9:35 ` [PATCH -next RFC 1/2] cpuset: Move cpuset1_update_spread_flag to cpuset Cai Xinchen
2025-09-30 9:35 ` [PATCH -next RFC 2/2] cpuset: Add spread_page interface to cpuset v2 Cai Xinchen
2025-09-30 12:05 ` [PATCH -next RFC 0/2] cpuset: Add cpuset.mems.spread_page to cgroup v2 Michal Koutný
2025-10-20 6:20 ` Cai Xinchen
2025-11-03 13:39 ` Michal Koutný
2025-11-04 12:00 ` Cai Xinchen [this message]
2025-09-30 13:57 ` Waiman Long
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=032f82e9-552a-4ad8-aff7-717e6f38af43@huawei.com \
--to=caixinchen1@huawei.com \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llong@redhat.com \
--cc=lujialin4@huawei.com \
--cc=mkoutny@suse.com \
--cc=tj@kernel.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
all inboxes | Powered by JetHome®