From: Andrew Morton <akpm@linux-foundation.org>
To: Xavier Xia <xavier.qyxia@gmail.com>
Cc: ryan.roberts@arm.com, will@kernel.org, 21cnbao@gmail.com,
ioworker0@gmail.com, dev.jain@arm.com, catalin.marinas@arm.com,
david@redhat.com, gshan@redhat.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
willy@infradead.org, xavier_qy@163.com, ziy@nvidia.com,
Barry Song <baohua@kernel.org>
Subject: Re: [PATCH v7] arm64/mm: Optimize loop to reduce redundant operations of contpte_ptep_get
Date: Tue, 24 Jun 2025 14:15:53 -0700 [thread overview]
Message-ID: <20250624141553.17afe765c0f692b7a7ec007a@linux-foundation.org> (raw)
In-Reply-To: <20250624152549.2647828-1-xavier.qyxia@gmail.com>
On Tue, 24 Jun 2025 23:25:49 +0800 Xavier Xia <xavier.qyxia@gmail.com> wrote:
> This commit optimizes the contpte_ptep_get and contpte_ptep_get_lockless
> function by adding early termination logic. It checks if the dirty and
> young bits of orig_pte are already set and skips redundant bit-setting
> operations during the loop. This reduces unnecessary iterations and
> improves performance.
Thanks, I added this to mm.git for some testing. But perhaps the ARM
tree would be a better merge path - more testing, at least.
next prev parent reply other threads:[~2025-06-24 21:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-24 15:25 Xavier Xia
2025-06-24 21:15 ` Andrew Morton [this message]
2025-07-01 13:58 ` Catalin Marinas
2025-07-02 9:00 ` Xavier Xia
2025-07-03 19:04 ` Catalin Marinas
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=20250624141553.17afe765c0f692b7a7ec007a@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=21cnbao@gmail.com \
--cc=baohua@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=david@redhat.com \
--cc=dev.jain@arm.com \
--cc=gshan@redhat.com \
--cc=ioworker0@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ryan.roberts@arm.com \
--cc=will@kernel.org \
--cc=willy@infradead.org \
--cc=xavier.qyxia@gmail.com \
--cc=xavier_qy@163.com \
--cc=ziy@nvidia.com \
/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