Scheduler idle-search limit slows big.LITTLE boards by up to 19%
A change first shipped in Linux 7.2 parks CPU-bound threads on little cores while faster cores sit idle; maintainers are weighing a revert.
A Linux scheduler change that was meant to cut wasted idle-CPU searches is leaving busy threads on the slow cores of asymmetric Arm boards while faster cores sit idle, costing 12% to 19% on a CPU-bound workload. James Buck reported the regression on the kernel mailing list after multi-threaded work on an Orange Pi 6, a 12-core CIX Sky1 board with four little cores and eight much faster ones, ran well below the speed he measured on 6.18.
The change, first in 7.2 and still present in 7.4-rc4, applies an existing utilization limit to the search that is supposed to place a waking task on a CPU with enough capacity. When that search stops early, a thread lands on an idle little core and an idle big core is never considered. Buck's llama.cpp benchmark, eight threads of a small language model that wait on one another at a barrier, dropped from 123.5 to 109.0 tokens per second in prompt processing and from 36.5 to 29.5 in generation. One thread stuck on a core with about a quarter of the capacity of the fastest cores holds up the other seven. Turning the limit off at runtime, or pinning the job to the eight big cores, restored nearly the old rate. Sampling showed one to four of the eight workers on little cores whenever the limit was on.
Scheduler maintainer Andrea Righi tied the report to an earlier one from Usama Arif on Arm Grace, where a zero search budget skipped suitable idle CPUs entirely. Buck's case is the other failure: a nonzero budget can still end before the scan reaches an idle big CPU. "Given both reports, reverting the commit seems the safest thing to do for now," Righi wrote, with a better policy for both symmetric and asymmetric machines to follow.
Vincent Guittot reproduced a similar gap on a Radxa O6 running 7.4-rc4: about 124 tokens per second with the limit, about 136 without it. He also found that once a long-running thread is on a little core, moving it to a larger one takes 15 to 20 milliseconds, longer than the next scheduler tick at which a misfit task should be actively balanced. He questioned whether the cluster scheduling domain is delaying that migration.
K Prateek Nayak argued the limit still earns its place on SMT machines, where cutting short a search for a non-idle core has helped at high utilization, and suggested tracking whether any idle core exists on non-SMT systems so the search is gated rather than budgeted. Guittot said he had already tried idle-core tracking on non-SMT systems with energy-aware scheduling. No revert has landed.