diff options
author | 2024-11-06 10:12:28 +0800 | |
---|---|---|
committer | 2024-11-07 07:40:14 -1000 | |
commit | 84b9749a3a704dcc824a88aa8267247c801d51e4 (patch) | |
tree | c88f60eb72742cb5a17e741a7ddf29d59f7a24d0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'nfs-for-6.12-3' of git://git.linux-nfs.org/projects/anna/linux-nfs (diff) | |
download | wireguard-linux-84b9749a3a704dcc824a88aa8267247c801d51e4.tar.xz wireguard-linux-84b9749a3a704dcc824a88aa8267247c801d51e4.zip |
proc/softirqs: replace seq_printf with seq_put_decimal_ull_width
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.
On an 8CPUs system, reading /proc/softirqs show ~40% performance
gain with this patch.
Signed-off-by: David Wang <00107082@163.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions