From: Peng Huang <penghuang@google.com>
To: Tejun Heo <tj@kernel.org>
Cc: Peng Huang <penghuang@google.com>,
void@manifault.com, arighi@nvidia.com, changwoo@igalia.com,
sched-ext@lists.linux.dev, 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,
vschneid@redhat.com, kprateek.nayak@amd.com, haoluo@google.com,
brho@google.com, joshdon@google.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] sched_ext: Update other_load_avgs on set_next_task_scx and idle entry
Date: Mon, 23 Nov 2026 12:19:58 -0800 [thread overview]
Message-ID: <20261123201958.3988584-1-penghuang@google.com> (raw)
In-Reply-To: <06baa96f105bbe10e6283e908f1240cb@kernel.org>
Hello Tejun,
On Sun, Nov 22, 2026 at 11:47:04PM -1000, Tejun Heo wrote:
> I think this overstates the staleness. While the tick is running,
> scx_tick() updates them on every tick, so they're at most a tick old,
> at idle entry too. That's already a lot more often than fair, which
> updates them at load balancing intervals.
>
> update_other_load_avgs() isn't necessarily cheap and I don't think we
> want to call it from scheduling hot paths. If anything, sched_ext is
> already updating them too often and we should pace it down.
>
> The actual hole is CPUs with the tick stopped, where nothing updates
> them, and this patch doesn't address that.
>
> Also, how was this tested? Is this from reading the code, or was the
> effect observed or tested in some way?
Fair points on all counts -- calling update_other_load_avgs() from
set_next_task_scx() and put_prev_task_scx() adds unnecessary hot-path
cost when scx_tick() already covers active-tick CPUs every tick.
To answer your question on testing: on an Android 6.18 setup running
sched_ext, we observed frozen/elevated avg_rt in Perfetto traces, but
the actual root cause there turned out to be idle rq_clock_pelt()
stalling due to non-zero dormant rq->cfs.avg.util_sum (discussed in
the separate sched/pelt thread). This upstream patch came from reading
the SCX_RQ_CAN_STOP_TICK code paths afterwards rather than an isolated
reproducer on mainline.
Let's drop this patch. If we later observe a concrete issue on
tick-stopped CPUs, we can come back with a targeted fix and benchmark
numbers.
Thanks,
Peng
prev parent reply other threads:[~2026-11-23 20:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 3:33 [PATCH] sched_ext: Update other_load_avgs on set_next_task_scx Peng Huang
2026-11-22 6:21 ` [PATCH v2] sched_ext: Update other_load_avgs on set_next_task_scx and idle entry Peng Huang
2026-11-23 9:47 ` Tejun Heo
2026-11-23 20:19 ` Peng Huang [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=20261123201958.3988584-1-penghuang@google.com \
--to=penghuang@google.com \
--cc=arighi@nvidia.com \
--cc=brho@google.com \
--cc=bsegall@google.com \
--cc=changwoo@igalia.com \
--cc=dietmar.eggemann@arm.com \
--cc=haoluo@google.com \
--cc=joshdon@google.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
--cc=vincent.guittot@linaro.org \
--cc=void@manifault.com \
--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
all inboxes | Powered by JetHome®