Re: [PATCH v2] mm: optimize stat output for 11% sys time reduce

From: Jianyue Wu

Date: Sat Jan 10 2026 - 23:37:52 EST


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.