From: Frederic Weisbecker <frederic@kernel.org>
To: "Christoph Lameter (Ampere)" <cl@gentwo.org>
Cc: Valentin Schneider <vschneid@redhat.com>,
Adam Li <adamli@os.amperecomputing.com>,
mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com,
vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de,
linux-kernel@vger.kernel.org, patches@amperecomputing.com
Subject: Re: [PATCH] sched/nohz: Fix NOHZ imbalance by adding options for ILB CPU
Date: Fri, 5 Sep 2025 14:16:02 +0200 [thread overview]
Message-ID: <aLrUgpOshn5mg6sL@localhost.localdomain> (raw)
In-Reply-To: <a968dba3-0acb-f175-fb73-aa384a2745a9@gentwo.org>
Le Thu, Sep 04, 2025 at 09:18:42AM -0700, Christoph Lameter (Ampere) a écrit :
> On Thu, 4 Sep 2025, Frederic Weisbecker wrote:
>
> > > > That's an argument _not_ in favour of dynamic balancing such as ILB, even for
> > > > this usecase in nohz_full (all the other usecases of nohz_full I know really
> > > > want static affinity and no balancing at all).
> > > >
> > > > So I have to ask, what would be wrong with static affinities to these tasks?
> > >
> > > Static affinities are great but they keep the tick active and thus the
> > > rendevous can be off off one or the other compute thread.
> >
> > How do static affinities keep the tick active?
>
> If you dont use hohz_full and only do static affinities then the tick is
> active.
If you don't use nohz_full then the tick is active, yes :-)
> My wish for the future would be that nohz_full would be the default and
> that the scheduler does correct load balancing regardless of the cpu being
> in tick mode or not.
Provided we ever manage to run nohz_full without tradeoffs (offloaded 1Hz tick,
RCU user/kernel overhead, cputime accounting overhead, use hrtick when
preemption must be maintained) then yes it would make sense but we are very
far from that. I'm not even sure this will ever be possible.
> It should automatically switch the tick off if a cpu
> goes into 100% compute and ideally there would be no performance
> regression if the tick is off.
Automatically means the kernel has to guess and make conclusion after some
execution time. That doesn't sound right, especially when nohz_full is used
with strong jitter-free guarantee, which has been the case for every usecases
so far.
Thanks.
--
Frederic Weisbecker
SUSE Labs
next prev parent reply other threads:[~2025-09-05 12:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-19 2:57 [PATCH] sched/nohz: Fix NOHZ imbalance by adding options for ILB CPU Adam Li
2025-08-19 14:00 ` Valentin Schneider
2025-08-20 3:35 ` Adam Li
2025-08-20 8:43 ` Valentin Schneider
2025-08-20 11:05 ` Adam Li
2025-08-20 11:46 ` Valentin Schneider
2025-08-21 11:18 ` Adam Li
2025-08-28 10:56 ` Valentin Schneider
2025-08-28 15:44 ` Christoph Lameter (Ampere)
2025-09-03 12:35 ` Valentin Schneider
2025-09-03 14:14 ` Vincent Guittot
2025-09-03 20:33 ` Christoph Lameter (Ampere)
2025-09-11 8:55 ` Vincent Guittot
2025-08-20 17:31 ` Christoph Lameter (Ampere)
2025-08-21 9:01 ` Valentin Schneider
2025-09-04 13:54 ` Frederic Weisbecker
2025-09-04 15:34 ` Christoph Lameter (Ampere)
2025-09-04 16:13 ` Frederic Weisbecker
2025-09-04 16:18 ` Christoph Lameter (Ampere)
2025-09-05 12:16 ` Frederic Weisbecker [this message]
2025-09-05 16:45 ` Christoph Lameter (Ampere)
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=aLrUgpOshn5mg6sL@localhost.localdomain \
--to=frederic@kernel.org \
--cc=adamli@os.amperecomputing.com \
--cc=bsegall@google.com \
--cc=cl@gentwo.org \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=patches@amperecomputing.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.