Re: [PATCH] proc/softirqs: replace seq_printf with seq_put_decimal_ull_width

From: Linus Torvalds
Date: Thu Nov 07 2024 - 12:47:47 EST


On Tue, 5 Nov 2024 at 16:13, David Wang <00107082@xxxxxxx> wrote:
>
> seq_printf is costy, on a system with n CPUs, reading /proc/softirqs
> would yield 10*n decimal values, and the extra cost parsing format string
> grows linearly with number of cpus. Replace seq_printf with
> seq_put_decimal_ull_width have significant performance improvement.

Applied.

Linus