* Re: [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width
[not found] <20241103080552.4787-1-00107082@163.com>
@ 2024-11-08 14:25 ` Thomas Gleixner
2024-11-08 15:28 ` David Wang
2024-12-11 22:32 ` patchwork-bot+linux-riscv
1 sibling, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2024-11-08 14:25 UTC (permalink / raw)
To: David Wang, richard.henderson, linux, catalin.marinas, will,
guoren, chenhuacai, kernel, James.Bottomley, deller, mpe,
paul.walmsley, ysato, dalias, glaubitz, davem, andreas, mingo, bp,
dave.hansen, x86, chris, jcmvbkbc
Cc: linux-kernel, linux-alpha, linux-arm-kernel, linux-csky,
loongarch, linux-parisc, linuxppc-dev, linux-riscv, linux-sh,
sparclinux, David Wang
David!
On Sun, Nov 03 2024 at 16:05, David Wang wrote:
$Subject: [PATCH] kernel/irq/proc: performance: ...
That's not a valid subsystem prefix.
> seq_printf is costy, when stress reading /proc/interrupts, profiling indicates
> seq_printf takes about ~47% of show_interrupts samples:
Also please follow the documentation for denoting functions in change
logs:
https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#function-references-in-changelogs
> arch/alpha/kernel/irq.c | 8 +--
> arch/arm/kernel/smp.c | 4 +-
> arch/arm64/kernel/smp.c | 3 +-
> arch/csky/kernel/smp.c | 4 +-
> arch/loongarch/kernel/smp.c | 2 +-
> arch/parisc/kernel/irq.c | 34 ++++++------
> arch/powerpc/kernel/irq.c | 44 ++++++++--------
> arch/riscv/kernel/smp.c | 3 +-
> arch/sh/kernel/irq.c | 4 +-
> arch/sparc/kernel/irq_32.c | 12 ++---
> arch/sparc/kernel/irq_64.c | 4 +-
> arch/x86/kernel/irq.c | 100 ++++++++++++++++++------------------
> arch/xtensa/kernel/irq.c | 2 +-
> arch/xtensa/kernel/smp.c | 4 +-
> kernel/irq/proc.c | 6 ++-
There is no dependency on these changes. So please split them up into
seperate patches for core and the individual architectures.
Thanks,
tglx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width
2024-11-08 14:25 ` [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width Thomas Gleixner
@ 2024-11-08 15:28 ` David Wang
0 siblings, 0 replies; 3+ messages in thread
From: David Wang @ 2024-11-08 15:28 UTC (permalink / raw)
To: Thomas Gleixner
Cc: richard.henderson, linux, catalin.marinas, will, guoren,
chenhuacai, kernel, James.Bottomley, deller, mpe, paul.walmsley,
ysato, dalias, glaubitz, davem, andreas, mingo, bp, dave.hansen,
x86, chris, jcmvbkbc, linux-kernel, linux-alpha, linux-arm-kernel,
linux-csky, loongarch, linux-parisc, linuxppc-dev, linux-riscv,
linux-sh, sparclinux
Hi,
At 2024-11-08 22:25:13, "Thomas Gleixner" <tglx@linutronix.de> wrote:
>David!
>
>On Sun, Nov 03 2024 at 16:05, David Wang wrote:
>
>$Subject: [PATCH] kernel/irq/proc: performance: ...
>
>That's not a valid subsystem prefix.
copy that~
>
>> seq_printf is costy, when stress reading /proc/interrupts, profiling indicates
>> seq_printf takes about ~47% of show_interrupts samples:
>
>Also please follow the documentation for denoting functions in change
>logs:
>
>https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#function-references-in-changelogs
>
copy that~
>> arch/alpha/kernel/irq.c | 8 +--
>> arch/arm/kernel/smp.c | 4 +-
>> arch/arm64/kernel/smp.c | 3 +-
>> arch/csky/kernel/smp.c | 4 +-
>> arch/loongarch/kernel/smp.c | 2 +-
>> arch/parisc/kernel/irq.c | 34 ++++++------
>> arch/powerpc/kernel/irq.c | 44 ++++++++--------
>> arch/riscv/kernel/smp.c | 3 +-
>> arch/sh/kernel/irq.c | 4 +-
>> arch/sparc/kernel/irq_32.c | 12 ++---
>> arch/sparc/kernel/irq_64.c | 4 +-
>> arch/x86/kernel/irq.c | 100 ++++++++++++++++++------------------
>> arch/xtensa/kernel/irq.c | 2 +-
>> arch/xtensa/kernel/smp.c | 4 +-
>> kernel/irq/proc.c | 6 ++-
>
>There is no dependency on these changes. So please split them up into
>seperate patches for core and the individual architectures.an
Thanks for all the review, I will make a patchset for this.
>
>Thanks,
>
> tglx
David
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width
[not found] <20241103080552.4787-1-00107082@163.com>
2024-11-08 14:25 ` [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width Thomas Gleixner
@ 2024-12-11 22:32 ` patchwork-bot+linux-riscv
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+linux-riscv @ 2024-12-11 22:32 UTC (permalink / raw)
To: David Wang
Cc: linux-riscv, tglx, richard.henderson, linux, catalin.marinas,
will, guoren, chenhuacai, kernel, James.Bottomley, deller, mpe,
paul.walmsley, ysato, dalias, glaubitz, davem, andreas, mingo, bp,
dave.hansen, x86, chris, jcmvbkbc, linux-kernel, linux-alpha,
linux-arm-kernel, linux-csky, loongarch, linux-parisc,
linuxppc-dev, linux-sh, sparclinux
Hello:
This patch was applied to riscv/linux.git (fixes)
by Michael Ellerman <mpe@ellerman.id.au>:
On Sun, 3 Nov 2024 16:05:52 +0800 you wrote:
> seq_printf is costy, when stress reading /proc/interrupts, profiling indicates
> seq_printf takes about ~47% of show_interrupts samples:
>
> show_interrupts(94.495% 5166019/5466991)
> seq_printf(47.429% 2450210/5166019)
> vsnprintf(89.232% 2186366/2450210)
> format_decode(24.005% 524831/2186366)
> number(19.488% 426084/2186366)
> memcpy_orig(3.739% 81753/2186366)
> ...
> _raw_spin_unlock_irqrestore(26.643% 1376379/5166019)
> mtree_load(8.059% 416304/5166019)
>
> [...]
Here is the summary with links:
- kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width
https://git.kernel.org/riscv/c/5b881c1f8379
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-11 22:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20241103080552.4787-1-00107082@163.com>
2024-11-08 14:25 ` [PATCH] kernel/irq/proc: performance: replace seq_printf with seq_put_decimal_ull_width Thomas Gleixner
2024-11-08 15:28 ` David Wang
2024-12-11 22:32 ` patchwork-bot+linux-riscv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).