Re: [RFC PATCH v1 0/4] Control folio sizes used for page cache memory
From: Barry Song
Date: Wed Dec 17 2025 - 23:51:15 EST
On Thu, Dec 18, 2025 at 3:21 AM Andi Kleen <ak@xxxxxxxxxx> wrote:
>
> Ryan Roberts <ryan.roberts@xxxxxxx> writes:
>
> > Hi All,
> >
> > This series is an RFC that adds sysfs and kernel cmdline controls to configure
> > the set of allowed large folio sizes that can be used when allocating
> > file-memory for the page cache. As part of the control mechanism, it provides
> > for a special-case "preferred folio size for executable mappings" marker.
> >
> > I'm trying to solve 2 separate problems with this series:
> >
>
> What happened to this patchkit? I was looking into how to efficiently
> get larger pages for text transparently, and there doesn't seem
> to be anything better than such a heuristic?
I do feel that we need some controls over file folio sizes.
It could also be implemented using an eBPF-based approach, such as [1]?
[1] https://lore.kernel.org/linux-mm/20251026100159.6103-1-laoar.shao@xxxxxxxxx/
Thanks
Barry