From: Anatoly Stepanov <stepanov.anatoly@huawei.com>
To: <willy@infradead.org>, <akpm@linux-foundation.org>,
<david@kernel.org>, <ljs@kernel.org>, <Liam.Howlett@oracle.com>,
<vbabka@kernel.org>, <rppt@kernel.org>, <surenb@google.com>,
<mhocko@suse.com>, <wangkefeng.wang@huawei.com>,
<yanquanmin1@huawei.com>, <zuoze1@huawei.com>,
<artem.kuzin@huawei.com>, <gutierrez.asier@huawei-partners.com>
Cc: <linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>,
<linux-kernel@vger.kernel.org>,
Anatoly Stepanov <stepanov.anatoly@huawei.com>
Subject: [RFC PATCH 0/2] Use high-order folios in mmap sync RA
Date: Thu, 16 Apr 2026 03:28:51 +0800 [thread overview]
Message-ID: <20260415192853.3470423-1-stepanov.anatoly@huawei.com> (raw)
When "fault around" is enabled, 0-order folios might significantly
slowdown filemap_map_pages().
For example when async RA won't be able to start,
we might end up with a large mmap'ed file with 0-orders.
Imagine an access pattern, when we
just access file chunk-by-chunk, where each chunk size equals to RA window,
until every chunk of the file gets loaded into the page cache.
In this case, we never touch RA-marked page, thus async RA wouldn't kick
in, ending with 0-orders covering all the file.
Let's resolve this by starting sync RA with high-order.
(procfs smaps patch is just for showing contpte coverage improvement for arm64)
Based on linux-7.0-rc5
Anatoly Stepanov (2):
procfs: add contpte info into smaps
filemap: use high-order folios in filemap sync RA
fs/proc/task_mmu.c | 20 +++++++++++++++++---
include/linux/pagemap.h | 1 +
mm/filemap.c | 1 +
mm/internal.h | 1 +
mm/memory.c | 2 +-
mm/readahead.c | 5 +++--
6 files changed, 24 insertions(+), 6 deletions(-)
--
2.34.1
next reply other threads:[~2026-04-15 11:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-15 19:28 Anatoly Stepanov [this message]
2026-04-15 13:18 ` Matthew Wilcox
2026-04-15 13:33 ` Stepanov Anatoly
2026-04-15 19:28 ` [RFC PATCH 1/2] procfs: add contpte info into smaps Anatoly Stepanov
2026-04-15 12:52 ` David Hildenbrand (Arm)
2026-04-15 19:28 ` [RFC PATCH 2/2] filemap: use high-order folios in filemap sync RA Anatoly Stepanov
2026-04-15 12:06 ` Pedro Falcato
2026-04-15 12:31 ` Stepanov Anatoly
2026-04-15 12:46 ` Stepanov Anatoly
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=20260415192853.3470423-1-stepanov.anatoly@huawei.com \
--to=stepanov.anatoly@huawei.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=artem.kuzin@huawei.com \
--cc=david@kernel.org \
--cc=gutierrez.asier@huawei-partners.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=mhocko@suse.com \
--cc=rppt@kernel.org \
--cc=surenb@google.com \
--cc=vbabka@kernel.org \
--cc=wangkefeng.wang@huawei.com \
--cc=willy@infradead.org \
--cc=yanquanmin1@huawei.com \
--cc=zuoze1@huawei.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