Re: [PATCH v2 0/2] mm/mprotect: micro-optimization work

Andrew Morton
2026-03-30T20:06:40Z

On Mon, 30 Mar 2026 15:55:51 -0400 Luke Yang <luyang@redhat.com> wrote:

> Thanks for working on this. I just wanted to share that we've created a
> test kernel with your patches and tested on the following CPUs:
>
> --- aarch64 ---
> Ampere Altra
> Ampere Altra Max
>
> --- x86_64 ---
> AMD EPYC 7713
> AMD EPYC 7351
> AMD EPYC 7542
> AMD EPYC 7573X
> AMD EPYC 7702
> AMD EPYC 9754
> Intel Xeon Gold 6126
> Into Xeon Gold 6330
> Intel Xeon Gold 6530
> Intel Xeon Platinum 8351N
> Intel Core i7-6820HQ
>
> --- ppc64le ---
> IBM Power 10
>
> On average, we see improvements ranging from a minimum of 5% to a
> maximum of 55%, with most improvements showing around a 25% speed up in
> the libmicro/mprot_tw4m micro benchmark.

Thanks, that's nice. I've added some of the above into the changelog
and I took the liberty of adding your Tested-by: to both patches.

fyi, regarding [2/2]: it's unclear to me whether the discussion with
David will result in any alterations. If there's something I need to
it always helps to lmk ;)