Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: Waiman Long <longman@redhat.com>
Cc: "Tejun Heo" <tj@kernel.org>,
	"Johannes Weiner" <hannes@cmpxchg.org>,
	"Michal Koutný" <mkoutny@suse.com>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Shuah Khan" <skhan@linuxfoundation.org>,
	"Randy Dunlap" <rdunlap@infradead.org>,
	"Ridong Chen" <ridong.chen@linux.dev>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Juri Lelli" <juri.lelli@redhat.com>,
	"Vincent Guittot" <vincent.guittot@linaro.org>,
	"Dietmar Eggemann" <dietmar.eggemann@arm.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ben Segall" <bsegall@google.com>, "Mel Gorman" <mgorman@suse.de>,
	"Valentin Schneider" <vschneid@redhat.com>,
	"K Prateek Nayak" <kprateek.nayak@amd.com>,
	"Anna-Maria Behnsen" <anna-maria@linutronix.de>,
	"Thomas Gleixner" <tglx@kernel.org>,
	cgroups@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
	"Guopeng Zhang" <guopeng.zhang@linux.dev>,
	"Mathieu Desnoyers" <mathieu.desnoyers@efficios.com>
Subject: Re: [PATCH-next v2 3/3] cgroup/cpuset: Disallow CPU 0 from being used in isolated partition
Date: Mon, 23 Nov 2026 22:38:59 +0100	[thread overview]
Message-ID: <awSyc640SLALQvLZ@pavilion.home> (raw)
In-Reply-To: <20261123041209.382726-4-longman@redhat.com>

Le Sun, Nov 22, 2026 at 11:12:09PM -0500, Waiman Long a écrit :
> Domain isolating CPU 0 can be problematic and may even cause panic in
> some cases. In the near future, we are going to enable dynamic change to
> the nohz_full CPUs to include the CPUs that are in isolated partitions
> via the CPU hotplug mechanism. However, CPU 0 can't be made offline
> for some architectures like x86. IOW, putting CPU 0 in an isolated
> partition may not have the same degree of isolation than other CPUs
> in the isolated partition in the future. For all these reasons, it is
> better to disable its use in an isolated partition.
> 
> Add a new partition error code to indicate to the users that CPU 0 cannot
> be used in an isolated partition. The prstate_housekeeping_conflict()
> function is modified to return the partition error code directly as it
> can be either PERR_HKEEPING or PERR_ISOLCPU0.
> 
> Some existing test cases in test_cpuset_prs.sh are modified to remove
> the use of CPU 0 in isolated partition setup and explicit new test cases
> are added to test that. The NOHZ_FULL test cases also modified to run if
> the "nohz_full" parameters includes all the CPUs except CPU 1-7 instead
> of 0-7. Though it is not recommended to put CPU 0 in the nohz_full boot
> parameter, it is the only way we can test that the cpuset code is able to
> correctly disallow isolating the last nohz_full/domain housekeeping CPU.
> 
> With CPU 0 likely not allowed in the nohz_full list except for powerpc
> and with CPU 0 also disallowed from being domain isolated and offline,
> we will likely have CPU 0 being an always present online housekeeping
> CPU for most kernels. For those kernels, we will not be able to trigger
> partition invalidation due to using up the last nohz_full/domain
> housekeeping CPU in an isolated partition and the NOHZ_FULL test cases
> in test_cpuset_prs.sh will not be run.
> 
> The cgroup-v2.rst documentation file is also modified to indicate that
> CPU 0 cannot be used in an isolated partition.
> 
> Signed-off-by: Waiman Long <longman@redhat.com>

Acked-by: Frederic Weisbecker <frederic@kernel.org>

-- 
Frederic Weisbecker
SUSE Labs

      reply	other threads:[~2026-11-23 21:39 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  4:12 [PATCH-next v2 0/3] Skip boot CPU or don't allow it from being used in isolcpus and isolated partitions Waiman Long
2026-11-23  4:12 ` [PATCH-next v2 1/3] tick/sched: Make tick_nohz_full_mask and HK_TYPE_KERNEL_NOISE cpumask consistent Waiman Long
2026-11-23 21:24   ` Frederic Weisbecker
2026-11-23  4:12 ` [PATCH-next v2 2/3] sched/isolation: Forbid the boot CPU from being domain isolated Waiman Long
2026-11-23 21:34   ` Frederic Weisbecker
2026-11-23  4:12 ` [PATCH-next v2 3/3] cgroup/cpuset: Disallow CPU 0 from being used in isolated partition Waiman Long
2026-11-23 21:38   ` Frederic Weisbecker [this message]

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=awSyc640SLALQvLZ@pavilion.home \
    --to=frederic@kernel.org \
    --cc=anna-maria@linutronix.de \
    --cc=bsegall@google.com \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=dietmar.eggemann@arm.com \
    --cc=guopeng.zhang@linux.dev \
    --cc=hannes@cmpxchg.org \
    --cc=juri.lelli@redhat.com \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=mkoutny@suse.com \
    --cc=peterz@infradead.org \
    --cc=rdunlap@infradead.org \
    --cc=ridong.chen@linux.dev \
    --cc=rostedt@goodmis.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@kernel.org \
    --cc=tj@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=vschneid@redhat.com \
    /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