Re: [PATCH v5 4/4] entry: Inline syscall_exit_to_user_mode()
From: Charlie Jenkins
Date: Sat Mar 08 2025 - 19:08:36 EST
On Sat, Mar 08, 2025 at 01:37:30PM +0100, Thomas Gleixner wrote:
> On Wed, Mar 05 2025 at 16:43, Charlie Jenkins wrote:
> > Architectures using the generic entry code can be optimized by having
> > syscall_exit_to_user_mode inlined.
>
> That's a pretty handwavy claim. What's the actual benefit in numbers?
I put the numbers in the cover letter! Here is the data I gathered:
Testing was done with the byte-unixbench [1] syscall benchmark (which
calls getpid) and QEMU. On riscv I measured a 7.09246% improvement, on
x86 a 2.98843% improvement, on loongarch a 6.07954% improvement, and on
s390 a 11.1328% improvement.
The Intel bot also reported "kernel test robot noticed a 1.9%
improvement of stress-ng.seek.ops_per_sec" [2]
- Charlie
>
> Thanks,
>
> tglx