[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <uvmqfu2ms7itmfl2bk47yxtbafccscc2hlsw56uq2qy3q6fri3@sl56sf33fvyj>
Date: Mon, 12 Jan 2026 16:23:19 -0800
From: Shakeel Butt <shakeel.butt@...ux.dev>
To: Jianyue Wu <wujianyue000@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
cgroups@...r.kernel.org, hannes@...xchg.org, mhocko@...nel.org, roman.gushchin@...ux.dev,
muchun.song@...ux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] mm: optimize stat output for 11% sys time reduce
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@...il.com> 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.
Powered by blists - more mailing lists