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

Andrew Morton
2026-03-20T02:42:36Z

On Thu, 19 Mar 2026 18:31:04 +0000 Pedro Falcato <pfalcato@suse.de> wrote:

> After a long session of performance-cat herding, here's the first version
> I am relatively ok with.
>
> Micro-optimize the change_protection functionality and the
> change_pte_range() routine. This set of functions works in an incredibly
> tight loop, and even small inefficiencies are incredibly evident when spun
> hundreds, thousands or hundreds of thousands of times.