lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v4 8/9] cgroup/cpuset: Documentation update for partition
From
On 7/10/23 20:42, Tejun Heo wrote:
> Hello,
>
> On Mon, Jul 10, 2023 at 08:21:43PM -0400, Waiman Long wrote:
>>> Wouldn't a partition root's cpus.exclusive always contain all of the CPUs in
>>> its cpus? Would it make sense for cpus.exclusive to be different from .cpus?
>> In auto-filled case, it should be the same as cpuset.cpus. I will clarify
>> that in the documentation. Thanks for catching that.
> When the user writes something to the file, what would it mena if the
> content differs from the cgroup's cpuset.cpus?

For local partition, it doesn't make sense to have a
cpust.cpus.exclusive that is not the same as cpuset.cpus as it
artificially reduce the set of CPUs that can be used in a partition. In
the case of a remote partition, the ancestor cgroups of a remote
partition should have cpuset.cpus.exclusive smaller than cpuset.cpus so
that when the remote partition is enabled, there are still CPUs left to
be used by those cgroups. In essence, the cpuset.cpus.exclusive
represents the CPUs that may not be usable anymore if they are taken by
a remote partition downstream.

Cheers,
Longman

\
 
 \ /
  Last update: 2023-07-11 02:54    [W:0.046 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site