From: Klaus Kusche <klaus.kusche@computerix.info>
To: Tim Chen <tim.c.chen@linux.intel.com>,
"Chen, Yu C" <yu.c.chen@intel.com>,
Mario Limonciello <mario.limonciello@amd.com>
Cc: "Badole, Vishal" <Vishal.Badole@amd.com>,
Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<x86@kernel.org>,
platform-driver-x86@vger.kernel.org,
K Prateek Nayak <KPrateek.Nayak@amd.com>,
ricardo.neri@intel.com
Subject: Re: Cache-aware scheduling does not work well with amd big/little cores
Date: Sat, 5 Sep 2026 17:40:59 +0200 [thread overview]
Message-ID: <14630984-9287-4454-b52f-3a1e526e1fdf@computerix.info> (raw)
In-Reply-To: <406a5c407bbe60cafc24f715e089f5552a0791f9.camel@linux.intel.com>
Hello,
On 31/08/2026 19:29, Tim Chen wrote:
> On Mon, 2026-08-31 at 13:24 +0200, Klaus Kusche wrote:
>> Hello,
>>
>> both patches in combination seem to have the desired effect.
>>
>> But I just look at a bar graph showing the current load
>> of each core.
>> The graph suggests that long-running CPU-intensive processes
>> migrate to fast cores when fast cores become available.
>> And I have the impression that LTO compilations
>> finish significantly faster now.
>>
>> I don't have exact numbers or benchmarks.
>
> Thanks for testing the fix.
>
> If you just apply https://lore.kernel.org/lkml/20260825174112.2580942-1-tim.c.chen@linux.intel.com/,
> with default aggr_tolerance, what numbers do you see?
>
> That will be helpful for further tuning. Thanks.
>
> Tim
I did some quick testing (no perfect benchmark environment,
just checking runtime and CPU consumption with "time").
I timed a kernel build (-j 24 and full lto, my own .config)
and an application build (also with a lot of parallelism)
with three different kernels:
a) Cache aware scheduling completely configured off
b) Cache aware scheduling turned on, but without patch
c) Cache aware scheduling turned on, with patch
Big/little scheduling was always on,
Mario's patch was always applied
(without it, results are significantly worse,
because I use kernels without debugfs,
so big/little scheduling is off without the patch).
Results:
There is no significant difference between b) and c)
(<= 1 % wallclock time)
Sometimes b) is better, sometimes c) is better,
I'd say the differences are below the accuracy of my tests.
But a) was reproducibly better than b) and c)
w.r.t. wallclock time: 2-2.6 %
It was also very slightly better w.r.t. total kernel CPU seconds.
The results w.r.t. total usermode CPU seconds varied too much.
(I always ran the application build twice,
and for all a), b) and c), the second run consumed
significantly more usermode CPU seconds,
but took a little less wallclock time - I don't know why).
So in short, at least for the two build benchmarks I made,
and with respect to the wallclock time they took, AMD Ryzen HX 370
does slightly better completely *without* cache aware scheduling,
but cache aware scheduling looses less than 3 %,
both with and without the patch.
The big difference I observed when 7.2 came out
was perhaps due to the fact
that the older version of Mario's patch I had
did not apply correctly or did not work as expected with 7.2.
Greetings
--
Prof. Dr. Klaus Kusche
Privat: Söllmnitz 32 d, D-07554 Gera/Söllmnitz
036695/859909 klaus.kusche@computerix.info https://www.computerix.info
Dienstlich: DHGE Gera, Weg der Freundschaft 4, D-07546 Gera
klaus.kusche@dhge.de https://www.dhge.de
prev parent reply other threads:[~2026-09-05 15:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-29 15:42 Klaus Kusche
2026-08-31 1:53 ` Mario Limonciello
2026-08-31 2:08 ` Chen, Yu C
2026-08-31 11:24 ` Klaus Kusche
2026-08-31 17:29 ` Tim Chen
2026-08-31 18:49 ` Klaus Kusche
2026-08-31 18:53 ` Mario Limonciello
2026-09-05 15:40 ` Klaus Kusche [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=14630984-9287-4454-b52f-3a1e526e1fdf@computerix.info \
--to=klaus.kusche@computerix.info \
--cc=KPrateek.Nayak@amd.com \
--cc=Vishal.Badole@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=peterz@infradead.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=ricardo.neri@intel.com \
--cc=tim.c.chen@linux.intel.com \
--cc=x86@kernel.org \
--cc=yu.c.chen@intel.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®