Re: [PATCH 0/3] mm/lru_gen: move lru_gen control interface from debugfs to procfs

Barry Song
2025-12-01T08:48:21Z

On Mon, Dec 1, 2025 at 4:14 PM wangzicheng <wangzicheng@honor.com> wrote:
>
> >
> > I strongly recommend separating this from your patchset. Avoid including
> > unrelated changes in a single patchset.
> >
> Thank you for the clarification, separating it from our patchset makes sense.
>

Also note that memcg already has an interface for proactive reclamation,
so I’m not certain whether your patchset can coexist with it or extend
it to meet your requirements—which seems quite impossible to me

memory.reclaim
A write-only nested-keyed file which exists for all cgroups.

This is a simple interface to trigger memory reclaim in the
target cgroup.

Example::

echo "1G" > memory.reclaim

Please note that the kernel can over or under reclaim from
the target cgroup. If less bytes are reclaimed than the
specified amount, -EAGAIN is returned.

Thanks
Barry