From: Matthew Wilcox <willy@infradead.org>
To: David Hildenbrand <david@redhat.com>
Cc: Yafang Shao <laoar.shao@gmail.com>,
akpm@linux-foundation.org, linux-mm@kvack.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] mm/readahead: Fix large folio support in async readahead
Date: Wed, 13 Nov 2024 04:19:36 +0000 [thread overview]
Message-ID: <ZzQo2JrXbGEkpPqb@casper.infradead.org> (raw)
In-Reply-To: <a1fe53f7-a520-488c-9136-4e5e1421427e@redhat.com>
On Tue, Nov 12, 2024 at 04:19:07PM +0100, David Hildenbrand wrote:
> Someone configured: "Don't readahead more than 128KiB"
Did they, though? I have nothing but contempt for the thousands of
parameters that we expect sysadmins to configure. It's ridiculous and
it needs to stop. So, we listen to the program that has told us "We
want 2MB pages" and not to the sysadmin who hasn't changed the value of
readahead from one that was originally intended for floppy discs.
> "mm/filemap: Support VM_HUGEPAGE for file mappings" talks about "even if we
> have no history of readahead being successful".
>
> So not about exceeding the configured limit, but exceeding the "readahead
> history".
>
> So I consider VM_HUGEPAGE the sign here to "ignore readahead history" and
> not to "violate the config".
>
> But that's just my opinion.
We're using the readahead code to accomplish what filemap wants.
That's an implementation detail and we shouldn't be constrained by the
limits which are in effect for normal readahead.
Normal readahead will never create a folio larger than the readahead
window. It'll get to 256kB (eventually) and then it'll stop. Indeed,
that was the problem this patch is addressing -- we started at 2MB then
readahead turned it down to 256kB. Normal readahead will start at 16kB
sized folios. This patch won't affect normal readahead at all.
next prev parent reply other threads:[~2024-11-13 4:19 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-08 14:17 Yafang Shao
2024-11-11 10:33 ` David Hildenbrand
2024-11-11 14:28 ` Yafang Shao
2024-11-11 15:05 ` David Hildenbrand
2024-11-11 15:26 ` David Hildenbrand
2024-11-11 16:13 ` Yafang Shao
2024-11-11 16:08 ` Yafang Shao
2024-11-11 18:31 ` David Hildenbrand
2024-11-11 19:10 ` Yafang Shao
2024-11-12 15:19 ` David Hildenbrand
2024-11-13 2:16 ` Yafang Shao
2024-11-13 8:28 ` David Hildenbrand
2024-11-13 9:46 ` David Hildenbrand
2024-11-13 9:54 ` Yafang Shao
2024-11-13 10:24 ` David Hildenbrand
2024-11-13 4:19 ` Matthew Wilcox [this message]
2024-11-13 8:12 ` David Hildenbrand
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=ZzQo2JrXbGEkpPqb@casper.infradead.org \
--to=willy@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=david@redhat.com \
--cc=laoar.shao@gmail.com \
--cc=linux-mm@kvack.org \
--cc=stable@vger.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