[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <oaewv3tyxpufdn3d3tnb43d2qyhqxlorl7fbbp3vwbw3j4jxn6@lonmplwkfumn>
Date: Fri, 9 Jan 2026 17:12:29 +0100
From: Michal Koutný <mkoutny@...e.com>
To: Chen Ridong <chenridong@...weicloud.com>
Cc: Waiman Long <longman@...hat.com>, Tejun Heo <tj@...nel.org>,
Johannes Weiner <hannes@...xchg.org>, Jonathan Corbet <corbet@....net>, Shuah Khan <shuah@...nel.org>,
linux-kernel@...r.kernel.org, cgroups@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-doc@...r.kernel.org, Sun Shaojie <sunshaojie@...inos.cn>
Subject: Re: [cgroup/for-6.20 PATCH v2 4/4] cgroup/cpuset: Don't invalidate
sibling partitions on cpuset.cpus conflict
On Fri, Jan 09, 2026 at 09:30:08AM +0800, Chen Ridong <chenridong@...weicloud.com> wrote:
> > Concept question:
> > When a/b/cpuset.cpus.exclusive ⊂ a/b/cpuset.cpus (proper subset)
> > and a/b/cpuset.cpus.partition == root, a/cpuset.cpus.partition == root
> > (b is valid partition)
> > should a/b/cpuset.cpus.exclusive.effective be equal to cpuset.cpus (as
> > all of them happen to be exclusive) or "only" cpuset.cpus.exclusive?
> >
>
> The value of cpuset.cpus will not affect cpuset.cpus.exclusive.effective when cpuset.cpus.exclusive
> is set.
>
> Therefore, the answer: only cpuset.cpus.exclusive.
Thanks. (I later arrived at that conclusion by studying
Documentation/admin-guide/cgroup-v2.rst.)
> If cpuset.cpus could not be used for exclusive CPU allocation in a partition, it would be easier to
> understand the settings of cpuset.cpus.exclusive and cpuset.cpus.partition. This means that only
> when cpuset.cpus.exclusive is set can the cpuset be a partition (it has nothing to do with
> cpuset.cpus). However, for historical and compatibility reasons, cpuset.cpus is considered as the
> exclusive CPUs if cpuset.cpus.exclusive is not set.
I reckon this is the difference between local and remote partitions.
I.e. non-empty cpuset.cpus.exclusive is what makes a remote partition
together with non-member cpuset.cpus.partition. Where the latter may get
into the way as an uninteded local partiton.
Cheers,
Michal
Download attachment "signature.asc" of type "application/pgp-signature" (266 bytes)
Powered by blists - more mailing lists