]> asedeno.scripts.mit.edu Git - linux.git/commit
cpuset: Expose cpus.effective and mems.effective on cgroup v2 root
authorWaiman Long <longman@redhat.com>
Thu, 8 Nov 2018 15:08:43 +0000 (10:08 -0500)
committerTejun Heo <tj@kernel.org>
Thu, 8 Nov 2018 20:27:31 +0000 (12:27 -0800)
commit5776ceccd4de2a53dec740422a409e9e588c5a70
tree41e78ca0388a3dca2ce57376bbb00f388e3ecbe7
parent0ccea8feb9807ba87b0405a826f6830a386706f5
cpuset: Expose cpus.effective and mems.effective on cgroup v2 root

Because of the fact that setting the "cpuset.sched.partition" in
a direct child of root can remove CPUs from the root's effective CPU
list, it makes sense to know what CPUs are left in the root cgroup for
scheduling purpose. So the "cpuset.cpus.effective" control file is now
exposed in the v2 cgroup root.

For consistency, the "cpuset.mems.effective" control file is exposed
as well.

Signed-off-by: Waiman Long <longman@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Documentation/admin-guide/cgroup-v2.rst
kernel/cgroup/cpuset.c