mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: acme@kernel.org, irogers@google.com,
	"Krzysztof Łopatowski" <krzysztof.m.lopatowski@gmail.com>
Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf: Improve startup time by reducing unnecessary stat() calls
Date: Thu, 20 Feb 2025 10:26:14 -0800	[thread overview]
Message-ID: <174007597483.1790567.5712005674301381670.b4-ty@kernel.org> (raw)
In-Reply-To: <20250206113314.335376-2-krzysztof.m.lopatowski@gmail.com>

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



      parent reply	other threads:[~2025-02-20 18:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06 11:33 Krzysztof Łopatowski
2025-02-06 17:54 ` Ian Rogers
2025-02-06 21:45   ` Krzysztof Łopatowski
2025-02-12  2:10     ` Namhyung Kim
2025-02-07  1:04 ` Howard Chu
2025-02-07  8:31   ` Krzysztof Łopatowski
2025-02-20 18:26 ` Namhyung Kim [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=174007597483.1790567.5712005674301381670.b4-ty@kernel.org \
    --to=namhyung@kernel.org \
    --cc=acme@kernel.org \
    --cc=irogers@google.com \
    --cc=krzysztof.m.lopatowski@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®