From: Tejun Heo <tj@kernel.org>
To: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
lizefan.x@bytedance.com, hannes@cmpxchg.org, mtosatti@redhat.com,
nilal@redhat.com, frederic@kernel.org, longman@redhat.com
Subject: Re: [PATCH] cgroup/cpuset: Avoid memory migration when nodemasks match
Date: Wed, 25 Aug 2021 06:53:18 -1000 [thread overview]
Message-ID: <YSZ1fgJgJfWmvaC4@slm.duckdns.org> (raw)
In-Reply-To: <20210825105415.1365360-1-nsaenzju@redhat.com>
On Wed, Aug 25, 2021 at 12:54:15PM +0200, Nicolas Saenz Julienne wrote:
> With the introduction of ee9707e8593d ("cgroup/cpuset: Enable memory
> migration for cpuset v2") attaching a process to a different cgroup will
> trigger a memory migration regardless of whether it's really needed.
> Memory migration is an expensive operation, so bypass it if the
> nodemasks passed to cpuset_migrate_mm() are equal.
>
> Note that we're not only avoiding the migration work itself, but also a
> call to lru_cache_disable(), which triggers and flushes an LRU drain
> work on every online CPU.
>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzju@redhat.com>
Applied to cgroup/for-5.15.
Thanks.
--
tejun
next prev parent reply other threads:[~2021-08-25 16:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 10:54 Nicolas Saenz Julienne
2021-08-25 16:53 ` Tejun Heo [this message]
2021-08-25 19:18 ` 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=YSZ1fgJgJfWmvaC4@slm.duckdns.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=frederic@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan.x@bytedance.com \
--cc=longman@redhat.com \
--cc=mtosatti@redhat.com \
--cc=nilal@redhat.com \
--cc=nsaenzju@redhat.com \
/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®