[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAHk-=wjAC2+dCD6-DqyZOv_ew_WGqKGuXnb-7aaK4bb5Q6fFgw@mail.gmail.com>
Date: Thu, 7 Nov 2024 07:47:19 -1000
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: David Wang <00107082@....com>
Cc: linux-kernel@...r.kernel.org, tglx@...utronix.de
Subject: Re: [PATCH] proc/softirqs: replace seq_printf with seq_put_decimal_ull_width
On Tue, 5 Nov 2024 at 16:13, David Wang <00107082@....com> 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
Powered by blists - more mailing lists