From: Dev Jain <dev.jain@arm.com>
To: akpm@linux-foundation.org, david@redhat.com, willy@infradead.org
Cc: ryan.roberts@arm.com, anshuman.khandual@arm.com,
baohua@kernel.org, hughd@google.com, ioworker0@gmail.com,
wangkefeng.wang@huawei.com, baolin.wang@linux.alibaba.com,
gshan@redhat.com, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, Dev Jain <dev.jain@arm.com>
Subject: [PATCH v2 0/2] Compute contiguous empty PTEs for mTHP efficiently
Date: Mon, 16 Sep 2024 16:37:52 +0530 [thread overview]
Message-ID: <20240916110754.1236200-1-dev.jain@arm.com> (raw)
We use pte_range_none() to determine whether contiguous PTEs are empty
for an mTHP allocation. Instead of iterating the while loop for every
order, use some information from the previous iteration to eliminate
some cases.
v1->v2:
- Break into two patches
v1: https://lore.kernel.org/all/20240913091902.1160520-1-dev.jain@arm.com/
Dev Jain (2):
mm: Make pte_range_none() return number of empty PTEs
mm: Compute first_set_pte to eliminate evaluating redundant ranges
mm/memory.c | 30 +++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
--
2.30.2
next reply other threads:[~2024-09-16 11:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 11:07 Dev Jain [this message]
2024-09-16 11:07 ` [PATCH v2 1/2] mm: Make pte_range_none() return number of empty PTEs Dev Jain
2024-09-18 7:03 ` Baolin Wang
2024-09-19 1:38 ` Barry Song
2024-09-16 11:07 ` [PATCH v2 2/2] mm: Compute first_set_pte to eliminate evaluating redundant ranges Dev Jain
2024-09-19 1:34 ` Barry Song
2024-09-19 8:40 ` Dev Jain
2024-09-19 16:55 ` Ryan Roberts
2024-09-20 4:04 ` Dev Jain
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=20240916110754.1236200-1-dev.jain@arm.com \
--to=dev.jain@arm.com \
--cc=akpm@linux-foundation.org \
--cc=anshuman.khandual@arm.com \
--cc=baohua@kernel.org \
--cc=baolin.wang@linux.alibaba.com \
--cc=david@redhat.com \
--cc=gshan@redhat.com \
--cc=hughd@google.com \
--cc=ioworker0@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ryan.roberts@arm.com \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.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