linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Barry Song <21cnbao@gmail.com>
To: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Cc: "linux-mm@kvack.org" <linux-mm@kvack.org>,
	Pavan Rallabhandi <Pavan.Rallabhandi@ibm.com>,
	 "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	 "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	 "lsf-pc@lists.linux-foundation.org"
	<lsf-pc@lists.linux-foundation.org>,
	 "bpf@vger.kernel.org" <bpf@vger.kernel.org>
Subject: Re: [LSF/MM/BPF TOPIC] Machine Learning (ML) library in Linux kernel
Date: Tue, 10 Feb 2026 11:06:12 +0800	[thread overview]
Message-ID: <CAGsJ_4wymvTimJrKoq1=PRmX6BMwKp9pRH62cQ_a06Avms-0XQ@mail.gmail.com> (raw)
In-Reply-To: <83e395c84c9bfa52f1abccf12ff6d39547d6bede.camel@ibm.com>

On Tue, Feb 10, 2026 at 6:07 AM Viacheslav Dubeyko
<Slava.Dubeyko@ibm.com> wrote:
>
> Hi Barry,
>
> On Mon, 2026-02-09 at 18:25 +0800, Barry Song wrote:
> > On Sat, Feb 7, 2026 at 3:40 AM Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> wrote:
> > >
> > > Hello,
> > >
> > [...]
> > >
> > > The continuous learning model can be adopted during training phase.
> > > It implies that kernel subsystem can receive ML model recommendations
> > > even during training phase. ML model proxy on kernel side can estimate
> > > the current kernel subsystem state, tries to apply the ML model
> > > recommendations, and estimate the efficiency of applied recommendations.
> > > Generally speaking, ML model proxy on kernel side can consider several
> > > modes of interaction with ML model recommendations: (1) emergency mode,
> > > (2) learning mode, (3) collaboration mode, (4) recommendation mode.
> > > The emergency mode is the mode when kernel subsystem is in critical state
> > > and it is required to work as efficient as possible without capability of
> > > involving the ML model recommendations (for example, ML model
> > > recommendations are completely inadequate or load is very high).
> > > The learning mode implies that kernel subsystem can try to apply
> > > the ML model recommendations for some operations with the goal of
> > > estimation the maturity of ML model. Also, ML model proxy can degrade
> > > the mode to learning state if ML model recommendations becomes inefficient.
> > > The collaboration mode has the goal of using ML recommendations in
> > > 50% of operations with the goal of achieving mature state of ML model.
> > > And, finally, ML model proxy can convert kernel subsystem in recommendation
> > > mode if ML model is mature enough and efficiency of applying
> > > the ML recommendations is higher than using human-made algorithms.
> >
> > Hi Slava,
> >
> > Do we have any concrete examples where an ML-based proxy,
> > together with its userspace ML agent, has demonstrated
> > measurable performance improvements over well-designed,
> > human-crafted kernel algorithms?
> >
> > Such examples could be in scheduling, filesystem I/O, or memory
> > reclamation and readahead. I think having a real, data-backed
> > example would be much more helpful for this discussion than
> > reasoning about an abstract framework without a concrete use
> > case.
> >
>
> This patchset [1] is the first step of declaring the ML library API with the
> goal of discussing it. As the next step, I am considering of using ML library
> API for implementing two real-life use-cases: (1) GC subsystem of LFS file
> systems (NILFS2, F2FS, SSDFS), (2) ML-based DAMON approach. I see multiple
> potential real-life use-cases of ML library. But let me start from these two
> ones and, then, we will able to extend the approach for other use-cases. The
> goal of this talk is to hear the opinion of the community and to elaborate the
> proper vision of ML library architecture.

I’m very interested in your real-world use case.
If you have any early-stage prototype code that demonstrates the full
flow from user space to kernel space—including both the kernel ML proxy
and the user-space ML agent (for example, for filesystem garbage
collection)—I’d be glad to take a look if you’re able to share it.

Thanks
Barry


  reply	other threads:[~2026-02-10  3:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-06 19:38 Viacheslav Dubeyko
2026-02-06 23:28 ` Hillf Danton
2026-02-09 10:03 ` Chris Li
2026-02-09 22:28   ` Viacheslav Dubeyko
2026-02-10 13:47     ` [Lsf-pc] " Jan Kara
2026-02-10 14:20       ` Chris Mason
2026-02-10 22:36         ` Viacheslav Dubeyko
2026-02-11  1:30           ` SeongJae Park
2026-02-11 20:29             ` Viacheslav Dubeyko
2026-02-10 21:02       ` Viacheslav Dubeyko
2026-02-11  9:55         ` Jan Kara
2026-02-12  0:53           ` Viacheslav Dubeyko
2026-02-12 11:02             ` Jan Kara
2026-02-09 10:25 ` Barry Song
2026-02-09 22:07   ` Viacheslav Dubeyko
2026-02-10  3:06     ` Barry Song [this message]
2026-02-10 19:57       ` Viacheslav Dubeyko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGsJ_4wymvTimJrKoq1=PRmX6BMwKp9pRH62cQ_a06Avms-0XQ@mail.gmail.com' \
    --to=21cnbao@gmail.com \
    --cc=Pavan.Rallabhandi@ibm.com \
    --cc=Slava.Dubeyko@ibm.com \
    --cc=bpf@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox