summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorTim Chen <tim.c.chen@linux.intel.com>2026-10-07 10:25:30 -0700
committerPeter Zijlstra <peterz@infradead.org>2026-10-23 19:09:54 +0200
commitee92b7ef4c1e271b3c1ea2a8b13034bdc62422a7 (patch)
treecdd8765212da530402f6c1272aa0ba15c4424120 /scripts/Makefile.thinlto
parent7dbc307b6c72a5412e3f4e9fa2e0e926925fc5d6 (diff)
downloadlinux-ee92b7ef4c1e271b3c1ea2a8b13034bdc62422a7.tar.gz
linux-ee92b7ef4c1e271b3c1ea2a8b13034bdc62422a7.zip
sched/cache: Honor asym packing over cache aware scheduling on hybrid systems
A regression was reported on an AMD Ryzen AI HX 370 running a cache intensive Clang full-LTO link. The little cores run at a much lower frequency (3.3 GHz vs 5.1 GHz) and have only half of the L3 cache (8 MB vs 16 MB), so pinning such a task to the little-core LLC hurts twice, and full-LTO builds slow down dramatically compared to pre-cache-aware-scheduling kernels. Asym packing and cache aware scheduling express conflicting placement strategies. Asym packing wants a task to run on the highest priority CPU, whereas cache aware scheduling wants to co-locate the tasks of a process on one LLC regardless of the priority of CPUs in that LLC. When asym packing tries to migrate task to an idle core that has higher priority than source cpu, let asym packing win. Moving tasks to a higher performing idle core will buy more performance than cache co-location. Prioritize asym packing over LLC balancing for regular and active load balancing. Fixes: 23b2b5ccc45c ("sched/cache: Introduce helper functions to enforce LLC migration policy") Closes: https://lore.kernel.org/lkml/2180ea5a-eb28-4152-8d4d-cd00b0c24b2e@computerix.info/ Reported-by: Klaus Kusche <klaus.kusche@computerix.info> Suggested-by: Kayra Cizmeci <kayracizmeci@gmail.com> Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Kayra Cizmeci <kayracizmeci@gmail.com> Tested-by: Klaus Kusche <klaus.kusche@computerix.info> Tested-by: Ricardo Neri <ricardo.neri@intel.com> Tested-by: Chen Yu <yu.c.chen@intel.com> Cc: stable@vger.kernel.org Cc: stable@vger.kernel.org # 7.2.x Link: https://patch.msgid.link/b29badede27bb6bfb4a759e06754cb19657f0778.1791308631.git.tim.c.chen@linux.intel.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions