From: sashiko-bot@kernel.org
To: "Shaojie Sun" <sunshaojie@kylinos.cn>
Cc: sched-ext@lists.linux.dev
Subject: Re: [PATCH] docs: sched_ext: Document the isolcpus= domain isolation restriction
Date: Thu, 03 Dec 2026 08:13:52 +0000 [thread overview]
Message-ID: <sashiko-outbox-247341@kernel.org> (raw)
In-Reply-To: <20261203080337.732449-1-sunshaojie@kylinos.cn>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] docs: sched_ext: inaccurate isolcpus= domain isolation affinity
description
--
commit 77f7da4a51719b1dc3cba589f535023492b079e1
Author: Shaojie Sun <sunshaojie@kylinos.cn>
docs: sched_ext: Document the isolcpus= domain isolation restriction
This commit documents that sched_ext refuses to load when boot-time
isolcpus= domain isolation is active and recommends cpuset isolated
partitions instead.
> diff --git a/Documentation/admin-guide/cpu-isolation.rst b/Documentation/admin-guide/cpu-isolation.rst
> index b9f13a9286734..64a0570135e98 100644
> --- a/Documentation/admin-guide/cpu-isolation.rst
> +++ b/Documentation/admin-guide/cpu-isolation.rst
> @@ -116,6 +116,12 @@ Interfaces
> less flexible alternative that doesn't allow for runtime
> reconfiguration.
>
> +Note that boot-time domain isolation is not compatible with sched_ext: the
> +BPF scheduler load fails with -EINVAL because the isolation is applied to
> +the sched domains only, leaving the affected tasks with their full CPU
> +affinity mask. Use cpuset isolated partitions if a sched_ext scheduler has
> +to be loaded. See Documentation/scheduler/sched-ext.rst.
> +
> IRQs isolation
> --------------
>
[Severity: Low]
Is it accurate to say boot-time domain isolation applies to sched domains
only and leaves affected tasks with their full CPU affinity mask?
sched_init_smp() restricts init and its descendant userspace tasks to
housekeeping_cpumask(HK_TYPE_DOMAIN). kthread_fetch_affinity() and
workqueue_init_early() do the same for unbound kthreads and workqueues,
which the Scheduler domain isolation section of this file already notes.
As explained in 9f391f94a173 ("sched_ext: Disallow loading BPF scheduler if
isolcpus= domain isolation is in effect"), the incompatibility is that
isolcpus= does not enforce partition boundaries on task cpumasks, so a task
on an isolated CPU may still have other CPUs in its allowed mask.
Documentation/scheduler/sched-ext.rst and the commit message make the same
claim about task CPU affinity masks not being restricted, and could be
updated to describe the missing partition enforcement on task cpumasks
instead.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203080337.732449-1-sunshaojie@kylinos.cn?part=1
next prev parent reply other threads:[~2026-12-03 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 8:03 [PATCH] docs: sched_ext: Document the isolcpus= domain isolation restriction Shaojie Sun
2026-12-03 8:13 ` sashiko-bot [this message]
2026-12-03 9:50 ` [PATCH v2] " Shaojie Sun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-247341@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sched-ext@lists.linux.dev \
--cc=sunshaojie@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox