Re: [PATCH v2] mm: mglru: provide a separate list for lazyfree anon folios

From: Barry Song
Date: Thu Oct 17 2024 - 01:59:31 EST


On Thu, Oct 17, 2024 at 11:58 AM Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Wed, 16 Oct 2024 16:30:30 +1300 Barry Song <21cnbao@xxxxxxxxx> wrote:
>
> > To address this, this patch proposes maintaining a separate list
> > for lazyfree anon folios while keeping them classified under the
> > "file" LRU type to minimize code changes.
>
> Thanks. I'll await input from other MGLRU developers before adding
> this for testing.

Thanks!

Hi Minchan, Yu,

Any comments? I understand that Minchan may have a broader plan
to "enable the system to maintain a quickly reclaimable memory
pool and provide a knob for admins to control its size." While I
have no objection to that plan, I believe improving MADV_FREE
performance is a more urgent priority and a low-hanging fruit at this
stage.

Thanks
Barry