Re: [PATCH] perf: Improve startup time by reducing unnecessary stat() calls

From: Namhyung Kim
Date: Thu Feb 20 2025 - 13:27:11 EST


On Thu, 06 Feb 2025 12:33:15 +0100, Krzysztof Łopatowski wrote:
> When testing perf trace on NixOS, I noticed significant startup delays:
> - `ls`: ~2ms
> - `strace ls`: ~10ms
> - `perf trace ls`: ~550ms
>
> Profiling showed that 51% of the time is spent reading files,
> 26% in loading BPF programs, and 11% in `newfstatat`.
>
> [...]
Applied to perf-tools-next, thanks!

Best regards,
Namhyung