From: Can Peng <pengcan@kylinos.cn>
To: catalin.marinas@arm.com, will@kernel.org
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] arm/syscalls: mark syscall invocation as
Date: Mon, 22 Sep 2025 20:17:30 +0800 [thread overview]
Message-ID: <20250922121730.986761-1-pengcan@kylinos.cn> (raw)
In-Reply-To: <aM1BSZV43DB_l5OU@willie-the-truck>
Hello,
>> The invoke_syscall() function is overwhelmingly called for
>> valid system call entries. Annotate the main path with likely()
>> to help the compiler generate better branch prediction hints,
>> reducing CPU pipeline stalls due to mispredictions.
>>
>> This is a micro-optimization targeting syscall-heavy workloads.
>
>Does it actually make a measurable difference?
This change implements a micro-optimization. Benchmark results
from the Kunpeng 920 machine are as follows:
before:
- lat_syscall result
write call 0.2332 0.2337 0.2341
read call 0.2501 0.2493 0.2506
after:
- lat_syscall result
write call 0.2301 0.2316 0.2307
read call 0.2492 0.2498 0.2491
Best regards,
Can Peng
next prev parent reply other threads:[~2025-09-22 12:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 10:00 [PATCH 1/1] arm/syscalls: mark syscall invocation as likely in invoke_syscall Can Peng
2025-09-19 11:40 ` Will Deacon
2025-09-22 12:17 ` Can Peng [this message]
2025-09-22 13:14 ` Will Deacon
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=20250922121730.986761-1-pengcan@kylinos.cn \
--to=pengcan@kylinos.cn \
--cc=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=will@kernel.org \
/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