Re: [PATCH v2] mm: optimize stat output for 11% sys time reduce
From: Shakeel Butt
Date: Mon Jan 12 2026 - 19:23:36 EST
On Sun, Jan 11, 2026 at 12:37:45PM +0800, Jianyue Wu wrote:
> On 1/11/2026 7:33 AM, Andrew Morton wrote:
> > On Sat, 10 Jan 2026 12:22:49 +0800 Jianyue Wu <wujianyue000@xxxxxxxxx> wrote:
> >
> > > Replace seq_printf/seq_buf_printf with lightweight helpers to avoid
> > > printf parsing in memcg stats output.
> > >
> > I don't understand - your previous email led me to believe that the new
> > BPF interface can be used to address this issue?
>
> Yes, previously I think can directly use BPF interface to speedup. Later I
> think maybe this is still needed, as some platform didn't have BPF installed
> might still use these sysfs files.
>
It seems like this patch adds measurable improvement for the traditional
stat readers. The high performance ones can be switched to the bpf based
interface. So, I see no harm in taking this patch in.