From: Frederic Weisbecker <frederic@kernel.org>
To: Waiman Long <llong@redhat.com>
Cc: Gabriele Monaco <gmonaco@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] timers: Exclude isolated cpus from timer migation
Date: Thu, 10 Apr 2025 16:56:03 +0200 [thread overview]
Message-ID: <Z_fcA2uxfp52eez-@localhost.localdomain> (raw)
In-Reply-To: <a2d6f50e-8f65-4586-b7df-20609bdc111e@redhat.com>
Le Thu, Apr 10, 2025 at 10:50:39AM -0400, Waiman Long a écrit :
>
> On 4/10/25 10:43 AM, Frederic Weisbecker wrote:
> > Le Thu, Apr 10, 2025 at 10:35:55AM -0400, Waiman Long a écrit :
> > > On 4/10/25 9:03 AM, Frederic Weisbecker wrote:
> > > > Le Thu, Apr 10, 2025 at 12:38:25PM +0200, Gabriele Monaco a écrit :
> > > > > On Thu, 2025-04-10 at 10:26 +0200, Thomas Gleixner wrote:
> > > > > > How can that happen? There is always at least _ONE_ housekeeping,
> > > > > > non-isolated, CPU online, no?
> > > > > >
> > > > > In my understanding it shouldn't, but I'm not sure there's anything
> > > > > preventing the user from isolating everything via cpuset.
> > > > > Anyway that's something no one in their mind should do, so I guess I'd
> > > > > just opt for the cpumask_first (or actually cpumask_any, like before
> > > > > the change).
> > > > With "nohz_full=..." or "isolcpus=nohz,..." there is always at least one
> > > > housekeeping CPU. But with isolcpus=[domain] or cpusets equivalents
> > > > (v1 cpuset.sched_load_balance, v2 isolated partion) there is nothing that
> > > > prevents all CPUs from being isolated.
> > > Actually v2 won't allow users to isolate all the CPUs. Users can probably do
> > > that with v1's cpuset.sched_load_balance.
> > Perhaps, and I think isolcpus= can too.
>
> No, I don't think so. The following code is in kernel/sched/isolation.c:
>
> first_cpu = cpumask_first_and(cpu_present_mask, housekeeping_staging); if
> (first_cpu >= nr_cpu_ids || first_cpu >= setup_max_cpus) {
> __cpumask_set_cpu(smp_processor_id(), housekeeping_staging);
> __cpumask_clear_cpu(smp_processor_id(), non_housekeeping_mask); if
> (!housekeeping.flags) { pr_warn("Housekeeping: must include one present CPU,
> " "using boot CPU:%d\n", smp_processor_id()); } }
Ok, good then!
--
Frederic Weisbecker
SUSE Labs
next prev parent reply other threads:[~2025-04-10 14:56 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 6:54 [PATCH] timers: Exclude isolated cpus from timer migation Gabriele Monaco
2025-04-10 8:26 ` Thomas Gleixner
2025-04-10 10:38 ` Gabriele Monaco
2025-04-10 13:03 ` Frederic Weisbecker
2025-04-10 13:15 ` Thomas Gleixner
2025-04-10 13:27 ` Frederic Weisbecker
2025-04-10 13:56 ` Gabriele Monaco
2025-04-10 14:20 ` Frederic Weisbecker
2025-04-10 14:46 ` Thomas Gleixner
2025-04-10 14:54 ` Frederic Weisbecker
2025-04-10 15:06 ` Waiman Long
2025-04-10 14:46 ` Gabriele Monaco
2025-04-10 14:59 ` Frederic Weisbecker
2025-04-10 15:05 ` Gabriele Monaco
2025-04-10 15:32 ` Frederic Weisbecker
2025-04-11 7:08 ` Gabriele Monaco
2025-04-11 11:31 ` Frederic Weisbecker
2025-04-11 13:02 ` Gabriele Monaco
2025-04-11 22:57 ` Frederic Weisbecker
2025-04-14 8:06 ` Gabriele Monaco
2025-04-10 14:35 ` Waiman Long
2025-04-10 14:43 ` Frederic Weisbecker
2025-04-10 14:49 ` Gabriele Monaco
2025-04-10 14:50 ` Waiman Long
2025-04-10 14:56 ` Frederic Weisbecker [this message]
2025-04-10 13:08 ` Thomas Gleixner
2025-04-10 14:21 ` Waiman Long
2025-04-10 14:32 ` Waiman Long
2025-04-11 7:12 ` kernel test robot
2025-04-11 9:27 ` kernel test robot
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=Z_fcA2uxfp52eez-@localhost.localdomain \
--to=frederic@kernel.org \
--cc=gmonaco@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llong@redhat.com \
--cc=tglx@linutronix.de \
/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