From: Catalin Marinas <catalin.marinas@arm.com>
To: ryan.roberts@arm.com, will@kernel.org, dev.jain@arm.com,
Barry Song <baohua@kernel.org>, Lance Yang <lance.yang@linux.dev>,
Xavier Xia <xavier.qyxia@gmail.com>
Cc: akpm@linux-foundation.org, 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
Subject: Re: [PATCH v7] arm64/mm: Optimize loop to reduce redundant operations of contpte_ptep_get
Date: Thu, 3 Jul 2025 20:04:57 +0100 [thread overview]
Message-ID: <175156948681.3519813.8652806937156134172.b4-ty@arm.com> (raw)
In-Reply-To: <20250624152549.2647828-1-xavier.qyxia@gmail.com>
On Tue, 24 Jun 2025 23:25:49 +0800, Xavier Xia 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.
>
> In order to verify the optimization performance, a test function has been
> designed. The function's execution time and instruction statistics have
> been traced using perf, and the following are the operation results on a
> certain Qualcomm mobile phone chip:
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64/mm: Optimize loop to reduce redundant operations of contpte_ptep_get
https://git.kernel.org/arm64/c/093ae7a033cf
--
Catalin
prev parent reply other threads:[~2025-07-03 19:05 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
2025-07-01 13:58 ` Catalin Marinas
2025-07-02 9:00 ` Xavier Xia
2025-07-03 19:04 ` Catalin Marinas [this message]
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=175156948681.3519813.8652806937156134172.b4-ty@arm.com \
--to=catalin.marinas@arm.com \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=david@redhat.com \
--cc=dev.jain@arm.com \
--cc=gshan@redhat.com \
--cc=lance.yang@linux.dev \
--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