Re: [RFC v2 PATCH 0/16] Optimize this_cpu_*() ops for non-x86 (ARM64 for this series)
From: David Hildenbrand (Arm)
Date: Tue Aug 04 2026 - 18:03:14 EST
On 8/4/26 23:56, Christoph Lameter (Ampere) wrote:
> On Tue, 4 Aug 2026, David Hildenbrand (Arm) wrote:
>
>>> These are operations that are key to the performance in critical parts of
>>> memory management and this code is replicated by being inlined thousands
>>> of times in the kernel.
>>
>> Cool, then it is easy to show the difference by running micro + macro benchmarks.
>
> And we have done so repeatedly. Look at Yang's posts.
>
I'm getting tired of this.
So to be clear: claiming that the additional instructions are unacceptable I'd
expect something minimal like: "removing these 3 instructions speeds up
micro-benchmark (a, b, c) by X% and macro-benchmarks (d, e, f) by Y% compared to
Mark's approach". [1]
https://lore.kernel.org/r/ea268481-d584-4744-99d6-0b05aade7d5d@xxxxxxxxxx
--
Cheers,
David