Re: [PATCH v5 2/6] mm: shrinkers: introduce debugfs interface for memory shrinkers

From: Roman Gushchin
Date: Wed Jun 01 2022 - 20:31:16 EST


On Wed, Jun 01, 2022 at 02:23:58PM -0700, Andrew Morton wrote:
> On Tue, 31 May 2022 20:22:23 -0700 Roman Gushchin <roman.gushchin@xxxxxxxxx> wrote:
>
> > This commit introduces the /sys/kernel/debug/shrinker debugfs
> > interface
>
> Should it be at the top level? Maybe /sys/kernel/debug/vm/shrinker
> would be more future-safe. (or .../mm/...)

There are already some top-level mm-related items (slab, zswap, extfrag, etc)
and I don't think there will be non-mm shrinkers in the kernel (given that
it's a kernel-wide API).

But no strong opinion here, if you strongly prefer mm/ or vm/, I'm happy
to change it.

Thanks!