From: Dev Jain <dev.jain@arm.com>
To: Chengfeng Lin <chengfenglin@stu.xmu.edu.cn>,
Pedro Falcato <pfalcato@suse.de>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org
Cc: "Liam R. Howlett" <liam@infradead.org>,
Lorenzo Stoakes <ljs@kernel.org>,
Vlastimil Babka <vbabka@kernel.org>, Jann Horn <jannh@google.com>,
linux-kernel@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: [REGRESSION] mm/mprotect: shared-dirty base-page toggle slower since v6.17
Date: Wed, 22 Jul 2026 11:18:18 +0530 [thread overview]
Message-ID: <dc402537-1527-4433-839e-960b6eb32bc4@arm.com> (raw)
In-Reply-To: <6c8d9b6c.24a8b.19f84afccdd.Coremail.chengfenglin@stu.xmu.edu.cn>
On 21/07/26 6:09 pm, Chengfeng Lin wrote:
> Hi,
>
> Just a gentle ping, with results from an exact commit-level check.
>
> I tested cac1db8c3aad ("mm: optimize mprotect() by PTE batching")
> against its direct parent 45199f715b74. Each point used a fresh boot:
>
> 45199f715b74 parent A -> cac1db8c3aad child ->
> 45199f715b74 parent B
>
> I used the same narrow 64 MiB shared-dirty 4 KiB base-page toggle
> workload from the report. Each point had 3 warm-up processes and
> 15 measured processes. Each measured process ran 1,000 iterations.
> The primary result, iteration_ns_per_page (lower is better), was:
>
> point mean ns/page SD
> parent A 38.133 0.743
> child 53.533 0.516
> parent B 38.467 0.640
>
> The parent midpoint was 38.300 ns/page. The child was 39.77% slower,
> while parent B differed from parent A by only 0.87%. Dropping the first
> measured process from every point left a 39.53% child delta.
>
> All 45 measured processes passed the semantic checks and used 4 KiB
> pages with no THP. The protect and restore components each increased
> from 13 ns/page in the parent controls to 20 ns/page in the child.
> The post-touch component stayed close to 12 ns/page.
>
> The exact commit changes only mm/mprotect.c. Both kernels were built from
> the exact commits with the same normalized config, GCC 15.2.0, and Kbuild
> metadata. Every point used the same CPU settings and runtime preempt=none.
>
> For this narrow workload, the exact parent/child result identifies
> cac1db8c3aad as the source of the measured slowdown. I am not claiming
> a generic mprotect() or application-level regression.
>
> Evidence:
>
> https://github.com/lcf0399/linux-regression-evidence/tree/a3ae7bf1a50e4d88b572c6005a037679530c9b1f/mprotect-shared-dirty-toggle/bare-metal/20260721-cac1db8c3aad-exact-ab
>
> #regzbot introduced: cac1db8c3aad97d6ffb56ced8868d6cbbbd2bfbe
>
> If useful, I can still collect a perf profile of the child around
> change_pte_range().
>
Sorry it is difficult for me to parse your report. So I didn't understand whether
Pedro's patches helped you or not?
> Thanks,
> Chengfeng
next prev parent reply other threads:[~2026-07-22 5:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-24 17:28 Chengfeng Lin
2026-07-01 10:50 ` Chengfeng Lin
2026-07-21 12:39 ` Chengfeng Lin
2026-07-22 5:48 ` Dev Jain [this message]
2026-07-22 10:37 ` Chengfeng Lin
2026-07-22 13:54 ` Dev Jain
2026-07-22 14:11 ` Pedro Falcato
2026-07-23 17:43 ` Chengfeng Lin
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=dc402537-1527-4433-839e-960b6eb32bc4@arm.com \
--to=dev.jain@arm.com \
--cc=akpm@linux-foundation.org \
--cc=chengfenglin@stu.xmu.edu.cn \
--cc=jannh@google.com \
--cc=liam@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=pfalcato@suse.de \
--cc=regressions@lists.linux.dev \
--cc=vbabka@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
all inboxes | Powered by JetHome®