From: Christian Loehle <christian.loehle@arm.com>
To: Vincent Guittot <vincent.guittot@linaro.org>,
James Buck <jbuck2005.linux@outlook.com>
Cc: K Prateek Nayak <kprateek.nayak@amd.com>,
Andrea Righi <arighi@nvidia.com>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Valentin Schneider <vschneid@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [REGRESSION] sched/fair: SIS_UTIL limit in select_idle_capacity() leaves busy tasks on little CPUs while big CPUs are idle
Date: Tue, 24 Nov 2026 18:41:19 +0000 [thread overview]
Message-ID: <cea5c1cb-5bad-49ea-88c7-bbf1cf6e02fb@arm.com> (raw)
In-Reply-To: <CAKfTPtDBk=V+ApVCxGHQ0A+juE-rwid-hBxAF_KoeXbg4Vn5nw@mail.gmail.com>
On 11/24/26 15:18, Vincent Guittot wrote:
> On Tue, 24 Nov 2026 at 12:56, James Buck <jbuck2005.linux@outlook.com> wrote:
>>
>> Hi,
>>
>> Since commit 61ea17a63719 ("sched/fair: Add SIS_UTIL support to select_idle_capacity()"), first in v7.2, CPU-bound multi-threaded work on my big.LITTLE arm64 board runs 12-19% slower than on v7.1 and earlier, because waking threads are placed on idle little CPUs while idle big CPUs are never looked at.
>>
>> Turning SIS_UTIL off at runtime restores the old speed. select_idle_capacity() and update_idle_cpu_scan() are unchanged in v7.4-rc4, so I expect mainline to behave the same.
>>
>> #regzbot introduced: 61ea17a63719
>>
>> System
>> ------
>> Orange Pi 6 (CIX CD8180 "Sky1"), 12 CPUs in five clusters, ACPI boot, no SMT:
>>
>> CPUs capacity
>> 0-1 1024
>> 2-5 279 (little)
>> 6-7 905
>> 8-9 866
>> 10-11 984
>>
>> The firmware's PPTT gives one MC domain over all 12 CPUs. It has SD_ASYM_CPUCAPACITY(_FULL) and SD_SHARE_LLC, with a CLS domain per cluster below it. The kernel is v7.3.5 plus the out-of-tree Sky1 SoC
>> driver patches the board needs to boot. None of them touch kernel/sched/; the only one in drivers/base/arch_topology.c adds a helper that updates capacity_freq_ref when boost is toggled.
>>
>> Workload
>> --------
>> llama.cpp llama-bench, Qwen2.5 1.5B Instruct Q4_K_M, CPU only, 8 threads, pp512 / tg128, tokens/s:
>>
>> 6.18.64 123.5 / 36.5
>> 7.3.5 109.0 / 29.5
>>
>> 7.3.5, taskset to the 8 big CPUs 121.4 / 34.7
>> 7.3.5, NO_SIS_UTIL at runtime 122.1 / 35.9
>> 7.3.5, patch below 121.7 / 35.7
>
> I have something similar on radxa O6 and 7.4-rc4 with latest tip/sched/core
> - 7.4-rc4+tip : 124.4
> - 7.4-rc4+tip NO_SIS_UTIL at runtime : 136.3
>
> I'm surprised that the newly_idle and/or periodic load balance doesn't
> pull the tasks earlier onto a mid/big core. It takes around 15/20ms to
> migrate a long-running thread to a bigger core when it runs on a
> little core whereas misfit should trigger an active load balance at
> next tick. I wonder if the Cluster level could slow down this
> migration.
I can reproduce the same on Pixel6 without any CLS, affecting CPU7 then.
The patch James posted it restores the good behavior and I currently don't
see a way to not do the full scan in select_idle_capacity().
prev parent reply other threads:[~2026-11-24 18:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 11:56 James Buck
2026-11-24 13:15 ` Andrea Righi
2026-11-24 15:18 ` Vincent Guittot
2026-11-24 18:41 ` Christian Loehle [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=cea5c1cb-5bad-49ea-88c7-bbf1cf6e02fb@arm.com \
--to=christian.loehle@arm.com \
--cc=arighi@nvidia.com \
--cc=dietmar.eggemann@arm.com \
--cc=jbuck2005.linux@outlook.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=regressions@lists.linux.dev \
--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
all inboxes | Powered by JetHome®