Re: mm/mprotect: testing a zero-offset fast path
From: Chengfeng Lin
Date: Mon Nov 30 2026 - 12:13:17 EST
Hi Lorenzo,
No worries at all, and thanks for the note. The [DISCUSSION] prefix is
a good suggestion and would have made my intent clearer. I'll use it
for similar threads in the future.
I appreciate the feedback and the discussion.
Best,
Chengfeng
On Mon, 30 Nov 2026 16:48:33 +0000, "Lorenzo Stoakes (ARM)"
<ljs@xxxxxxxxxx> wrote:
> 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