* [PATCH 1/2] docs: cgroup-v1: Fix the isolcpus description
2026-11-26 5:52 [PATCH 0/2] docs: cgroup: Clarify cpuset CPU isolation Guopeng Zhang
@ 2026-11-26 5:52 ` Guopeng Zhang
2026-11-26 5:52 ` [PATCH 2/2] docs: cgroup-v2: Document the housekeeping CPU requirement Guopeng Zhang
1 sibling, 0 replies; 3+ messages in thread
From: Guopeng Zhang @ 2026-11-26 5:52 UTC (permalink / raw)
To: longman, tj, corbet
Cc: ridong.chen, hannes, mkoutny, skhan, rdunlap, cgroups, linux-doc,
linux-kernel, Guopeng Zhang
From: Guopeng Zhang <zhangguopeng@kylinos.cn>
The sched_load_balance section incorrectly includes CPUs isolated
with the domain flag of isolcpus= in the default scheduling domain.
It also refers to a nonexistent cpuset.isolcpus file.
Correct both passages and clarify that domain is the default flag
of isolcpus=. The nohz and managed_irq flags do not by themselves
disable scheduler load balancing.
Signed-off-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
---
Documentation/admin-guide/cgroup-v1/cpusets.rst | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/Documentation/admin-guide/cgroup-v1/cpusets.rst b/Documentation/admin-guide/cgroup-v1/cpusets.rst
index fb3fb6fa88cb..d47f96979988 100644
--- a/Documentation/admin-guide/cgroup-v1/cpusets.rst
+++ b/Documentation/admin-guide/cgroup-v1/cpusets.rst
@@ -398,10 +398,11 @@ Put simply, it costs less to balance between two smaller sched domains
than one big one, but doing so means that overloads in one of the
two domains won't be load balanced to the other one.
-By default, there is one sched domain covering all CPUs, including those
-marked isolated using the kernel boot time "isolcpus=" argument. However,
-the isolated CPUs will not participate in load balancing, and will not
-have tasks running on them unless explicitly assigned.
+By default, scheduler load balancing includes all online CPUs except
+those isolated with the "domain" flag of the "isolcpus=" boot option.
+This flag is implied if no flags are specified. The "nohz" and
+"managed_irq" flags do not by themselves disable scheduler load
+balancing.
This default load balancing across all CPUs is not well suited for
the following two situations:
@@ -474,9 +475,9 @@ such partially load balanced cpusets, as they may be artificially
constrained to some subset of the CPUs allowed to them, for lack of
load balancing to the other CPUs.
-CPUs in "cpuset.isolcpus" were excluded from load balancing by the
-isolcpus= kernel boot option, and will never be load balanced regardless
-of the value of "cpuset.sched_load_balance" in any cpuset.
+CPUs isolated with the "domain" flag of the "isolcpus=" boot option
+remain excluded from scheduler load balancing regardless of the value
+of "cpuset.sched_load_balance" in any cpuset.
1.7.1 sched_load_balance implementation details.
------------------------------------------------
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] docs: cgroup-v2: Document the housekeeping CPU requirement
2026-11-26 5:52 [PATCH 0/2] docs: cgroup: Clarify cpuset CPU isolation Guopeng Zhang
2026-11-26 5:52 ` [PATCH 1/2] docs: cgroup-v1: Fix the isolcpus description Guopeng Zhang
@ 2026-11-26 5:52 ` Guopeng Zhang
1 sibling, 0 replies; 3+ messages in thread
From: Guopeng Zhang @ 2026-11-26 5:52 UTC (permalink / raw)
To: longman, tj, corbet
Cc: ridong.chen, hannes, mkoutny, skhan, rdunlap, cgroups, linux-doc,
linux-kernel, Guopeng Zhang
From: Guopeng Zhang <zhangguopeng@kylinos.cn>
The cpuset.cpus.partition documentation does not describe the
housekeeping CPU requirement for isolated partitions.
When full dynticks is enabled, changes to the isolated partition
configuration must leave at least one active CPU available for
housekeeping.
Signed-off-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
---
Documentation/admin-guide/cgroup-v2.rst | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst
index 2f792ff29425..36199da5c842 100644
--- a/Documentation/admin-guide/cgroup-v2.rst
+++ b/Documentation/admin-guide/cgroup-v2.rst
@@ -2838,6 +2838,13 @@ Cpuset Interface Files
kernel boot command line option. If those CPUs are to be put
into a partition, they have to be used in an isolated partition.
+ In addition to the CPU 0 restriction above, when full dynticks is
+ enabled with "nohz_full=" or the "nohz" flag of "isolcpus=", the
+ isolated partition configuration must leave at least one active CPU
+ available for housekeeping. This CPU must be outside the full-dynticks
+ CPU set, the CPUs isolated at boot using the "domain" flag of
+ "isolcpus=", and the CPUs in all isolated partitions.
+
Device controller
-----------------
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread