[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7b24d6e38c9e46c4ae98211d5a815eb2@honor.com>
Date: Fri, 28 Nov 2025 07:19:00 +0000
From: wangzicheng <wangzicheng@...or.com>
To: Randy Dunlap <rdunlap@...radead.org>, "akpm@...ux-foundation.org"
<akpm@...ux-foundation.org>, "hannes@...xchg.org" <hannes@...xchg.org>,
"david@...hat.com" <david@...hat.com>, "axelrasmussen@...gle.com"
<axelrasmussen@...gle.com>, "yuanchu@...gle.com" <yuanchu@...gle.com>
CC: "mhocko@...nel.org" <mhocko@...nel.org>, "zhengqi.arch@...edance.com"
<zhengqi.arch@...edance.com>, "shakeel.butt@...ux.dev"
<shakeel.butt@...ux.dev>, "lorenzo.stoakes@...cle.com"
<lorenzo.stoakes@...cle.com>, "weixugc@...gle.com" <weixugc@...gle.com>,
"Liam.Howlett@...cle.com" <Liam.Howlett@...cle.com>, "vbabka@...e.cz"
<vbabka@...e.cz>, "rppt@...nel.org" <rppt@...nel.org>, "surenb@...gle.com"
<surenb@...gle.com>, "mhocko@...e.com" <mhocko@...e.com>, "corbet@....net"
<corbet@....net>, "linux-mm@...ck.org" <linux-mm@...ck.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 2/3] mm/lru_gen: add configuration option to select
debugfs/procfs for lru_gen
> On 11/27/25 6:53 PM, Zicheng Wang wrote:
> > Signed-off-by: Zicheng Wang <wangzicheng@...or.com>
> > ---
> > mm/Kconfig | 10 ++++++++++
> > 1 file changed, 10 insertions(+)
> >
> > diff --git a/mm/Kconfig b/mm/Kconfig
> > index e443fe8cd..be7efa794 100644
> > --- a/mm/Kconfig
> > +++ b/mm/Kconfig
> > @@ -1325,6 +1325,16 @@ config LRU_GEN_STATS
> > config LRU_GEN_WALKS_MMU
> > def_bool y
> > depends on LRU_GEN && ARCH_HAS_HW_PTE_YOUNG
> > +
> > +config LRU_GEN_PROCFS_CTRL
> > + bool "Move lru_gen files from debugfs to procfs"
> > + depends on LRU_GEN && PROC_FS
> > + help
> > + Move lru_gen management from debugfs to procfs (/proc/lru_gen).
> > + This production-ready feature provides critical memory reclaim
> > + prediction and control. It is no longer experimental.
> > + The migration ensures availability in commercial products where
> > + debugfs may be disabled.
>
> A. missing patch description
> B. The help message above sounds like a patch description.
>
Thanks for the comments, will be fix in the next version.
> If someone does not enable this kconfig option, what happens?
> a. lru_gen files stay in debugfs
> b. lru_gen files are not present
> c. something else. If so, what?
>
>
> --
> ~Randy
Regard to the questions,
If this Kconfig option is enabled, the `lru_gen` and `lru_gen_full` files will appear under /proc/.
If it is not enabled, the files remain under debugfs, which is the current default behavior.
Thanks,
Zicheng
Powered by blists - more mailing lists