Skip to content

Commit 7b91210

Browse files
freundTechJonathan Corbet
authored andcommitted
Documentation: scheduler: fix outdated information on sched groups
The documentation claims that two sched groups must not overlap. This is no longer true, as overlapping sched groups are used on NUMA systems. This change has been introduced by commit e3589f6 and was documented by an in-code comment in commit 35a566e. Signed-off-by: Adrian Freund <adrian@freund.io> Link: https://lore.kernel.org/r/20200407130525.76663-1-adrian@freund.io Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 5af438d commit 7b91210

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎Documentation/scheduler/sched-domains.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ CPUs".
1919
Each scheduling domain must have one or more CPU groups (struct sched_group)
2020
which are organised as a circular one way linked list from the ->groups
2121
pointer. The union of cpumasks of these groups MUST be the same as the
22-
domain's span. The intersection of cpumasks from any two of these groups
23-
MUST be the empty set. The group pointed to by the ->groups pointer MUST
24-
contain the CPU to which the domain belongs. Groups may be shared among
25-
CPUs as they contain read only data after they have been set up.
22+
domain's span. The group pointed to by the ->groups pointer MUST contain the CPU
23+
to which the domain belongs. Groups may be shared among CPUs as they contain
24+
read only data after they have been set up. The intersection of cpumasks from
25+
any two of these groups may be non empty. If this is the case the SD_OVERLAP
26+
flag is set on the corresponding scheduling domain and its groups may not be
27+
shared between CPUs.
2628

2729
Balancing within a sched domain occurs between groups. That is, each group
2830
is treated as one entity. The load of a group is defined as the sum of the

0 commit comments

Comments
 (0)