Re: [RFC 1/3] mm: implement cleancache

2025-03-21 Thread Suren Baghdasaryan
On Thu, Mar 20, 2025 at 10:14 PM Christoph Hellwig wrote: > > On Thu, Mar 20, 2025 at 10:39:29AM -0700, Suren Baghdasaryan wrote: > > Cleancache can be thought of as a page-granularity victim cache for clean > > Please implement your semantics directly instea of with a single user > abstraction.

Re: [RFC 1/3] mm: implement cleancache

2025-03-20 Thread Christoph Hellwig
On Thu, Mar 20, 2025 at 10:39:29AM -0700, Suren Baghdasaryan wrote: > Cleancache can be thought of as a page-granularity victim cache for clean Please implement your semantics directly instea of with a single user abstraction. If we ever need an abstraction we can add it once we have multiple con

[RFC 1/3] mm: implement cleancache

2025-03-20 Thread Suren Baghdasaryan
Cleancache can be thought of as a page-granularity victim cache for clean pages that the kernel's pageframe replacement algorithm (PFRA) would like to keep around, but can't since there isn't enough memory. So when the PFRA "evicts" a page, it first attempts to use cleancache code to put the data