Re: mm/mprotect: testing a zero-offset fast path
From: Lorenzo Stoakes (ARM)
Date: Mon Nov 30 2026 - 11:48:41 EST
On Mon, Nov 30, 2026 at 08:44:45AM -0800, Chengfeng Lin wrote:
> Hi Lorenzo,
>
> Thanks for taking a look. I meant to share a microbenchmark result,
> not submit an RFC or patch. Sorry I didn’t make that clear.
>
> I don’t have evidence that this matters in an application workload,
> and the follow-up test actually showed a slowdown when most offsets
> were nonzero. I agree that these results don’t justify adding the
> branch, so I won’t pursue the change.
Ack OK well I don't want to scare away reasonable discussion either :P
Probably the easiest way to clarify is to prefix [DISCUSSION] to the thread
but I don't think we really have a great convention for this.
Always with this stuff it's a bit of a 'why are we doing X' vs. benefit
trade-off.
But do welcome feedback + discussion, sorry didn't mean to dissuade that :)
--
Cheers, Lorenzo