Skip to content

Commit 34ebe93

Browse files
Rik van Rielhtejun
authored andcommitted
cpuset, isolcpus: document relationship between cpusets & isolcpus
Document the subtly changed relationship between cpusets and isolcpus. Turns out the old documentation did not match the code... Signed-off-by: Rik van Riel <[email protected]> Suggested-by: Peter Zijlstra <[email protected]> Acked-by: Zefan Li <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 47b8ea7 commit 34ebe93

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Documentation/cgroups/cpusets.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,10 @@ Put simply, it costs less to balance between two smaller sched domains
392392
than one big one, but doing so means that overloads in one of the
393393
two domains won't be load balanced to the other one.
394394

395-
By default, there is one sched domain covering all CPUs, except those
396-
marked isolated using the kernel boot time "isolcpus=" argument.
395+
By default, there is one sched domain covering all CPUs, including those
396+
marked isolated using the kernel boot time "isolcpus=" argument. However,
397+
the isolated CPUs will not participate in load balancing, and will not
398+
have tasks running on them unless explicitly assigned.
397399

398400
This default load balancing across all CPUs is not well suited for
399401
the following two situations:
@@ -465,6 +467,10 @@ such partially load balanced cpusets, as they may be artificially
465467
constrained to some subset of the CPUs allowed to them, for lack of
466468
load balancing to the other CPUs.
467469

470+
CPUs in "cpuset.isolcpus" were excluded from load balancing by the
471+
isolcpus= kernel boot option, and will never be load balanced regardless
472+
of the value of "cpuset.sched_load_balance" in any cpuset.
473+
468474
1.7.1 sched_load_balance implementation details.
469475
------------------------------------------------
470476

0 commit comments

Comments
 (0)