Re: [REGRESSION] mm/mprotect: 2x+ slowdown for >=400KiB regions since PTE batching (cac1db8c3aad)

From: David Hildenbrand (Arm)

Date: Fri Feb 13 2026 - 10:47:43 EST


On 2/13/26 16:08, Luke Yang wrote:
Hello,

Hi!


we have bisected a significant mprotect() performance regression in
6.17-rc1 to:

cac1db8c3aad ("mm: optimize mprotect() by PTE batching")

The regression becomes clearly visible starting around 400 KiB region
sizes and above. It is also still present in the latest 6.19 kernel.


Micro-benchmark results are nice. But what is the real word impact? IOW, why should we care?

--
Cheers,

David