Re: [REGRESSION] sched/fair: SIS_UTIL limit in select_idle_capacity() leaves busy tasks on little CPUs while big CPUs are idle

From: Christian Loehle

Date: Tue Nov 24 2026 - 13:41:29 EST


On 11/24/26 15:18, Vincent Guittot wrote:
> On Tue, 24 Nov 2026 at 12:56, James Buck <jbuck2005.linux@xxxxxxxxxxx> 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().