From: Waiman Long <longman@redhat.com>
To: Tejun Heo <tj@kernel.org>, Li Zefan <lizefan@huawei.com>,
Johannes Weiner <hannes@cmpxchg.org>,
Jonathan Corbet <corbet@lwn.net>
Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
linux-doc@vger.kernel.org, "Mike Galbraith" <efault@gmx.de>,
"Christian Brauner" <christian.brauner@canonical.com>,
"Stéphane Graber" <stgraber@ubuntu.com>,
"Serge Hallyn" <serge@hallyn.com>
Subject: Re: [PATCH v3] cpuset: Enable cpuset controller in default hierarchy
Date: Wed, 25 Oct 2017 11:50:34 -0400 [thread overview]
Message-ID: <db119820-84d4-7ccb-e65a-966d2d7aaf02@redhat.com> (raw)
In-Reply-To: <1507324230-22996-1-git-send-email-longman@redhat.com>
On 10/06/2017 05:10 PM, Waiman Long wrote:
> Given the fact that thread mode had been merged into 4.14, it is now
> time to enable cpuset to be used in the default hierarchy (cgroup v2)
> as it is clearly threaded.
>
> The cpuset controller had experienced feature creep since its
> introduction more than a decade ago. Besides the core cpus and mems
> control files to limit cpus and memory nodes, there are a bunch of
> additional features that can be controlled from the userspace. Some of
> the features are of doubtful usefulness and may not be actively used.
>
> After examining the source code of some sample users like systemd,
> libvirt and lxc for their use of those additional features, only
> memory_migrate is used by libvirt.
>
> This patch enables cpuset controller in the default hierarchy with a
> minimal set of features. Currently, only memory_migrate is supported.
> We can certainly add more features to the default hierarchy if there
> is a real user need for them later on.
>
> For features that are actually flags which are set internally, they are
> being combined into a single "cpuset.flags" control file. That includes
> the memory_migrate feature which is the only flag that is currently
> supported. When the "cpuset.flags" file is read, it contains either
> "+mem_migrate" (enabled) or "-mem_migrate" (disabled).
>
> To enable it, use
>
> # echo +mem_migrate > cpuset.flags
>
> To disable it, use
>
> # echo -mem_migrate > cpuset.flags
>
> Note that the flag name is changed to "mem_migrate" for better naming
> consistency.
>
> v3:
> - Further trim the additional features down to just memory_migrate.
> - Update Documentation/cgroup-v2.txt.
>
> Signed-off-by: Waiman Long <longman@redhat.com>
Ping! Any comment on this patch?
Cheers,
Longman
next prev parent reply other threads:[~2017-10-25 15:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 21:10 [PATCH v3] cpuset: Enable cpuset controller in default hierarchy Waiman Long
2017-10-25 15:50 ` Waiman Long [this message]
2017-10-26 14:39 ` Tejun Heo
[not found] ` <20171026143908.GD59538-4dN5La/x3IkLX0oZNxdnEQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2017-10-26 18:12 ` Waiman Long
[not found] ` <2814be69-8dc1-b2f8-406e-cc4dda289d94-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-10-26 20:59 ` Christian Brauner
2017-11-14 17:49 ` Waiman Long
[not found] ` <1507324230-22996-1-git-send-email-longman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-27 21:04 ` Tejun Heo
2017-11-27 21:19 ` Waiman Long
[not found] ` <8a5ba419-2b02-5b6a-462f-34106cc575ab-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-27 21:42 ` Tejun Heo
2017-11-27 21:47 ` 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=db119820-84d4-7ccb-e65a-966d2d7aaf02@redhat.com \
--to=longman@redhat.com \
--cc=cgroups@vger.kernel.org \
--cc=christian.brauner@canonical.com \
--cc=corbet@lwn.net \
--cc=efault@gmx.de \
--cc=hannes@cmpxchg.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=serge@hallyn.com \
--cc=stgraber@ubuntu.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