Linux-perf-users Archive mirror
 help / color / mirror / Atom feed
From: Alan Egerton <eggyal@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Percentages reported by `perf stat --hybrid-merge`
Date: Mon, 15 Apr 2024 19:50:08 +0100	[thread overview]
Message-ID: <CA+phaecbKJXE56ExeJUA5c2=tc3m3p8iNefuqyjs9P3kOn_aWg@mail.gmail.com> (raw)

Hi,

I'm struggling to understand the intended semantics of the percentage
field in `--hybrid-merge` results.

I'm looking at both the `instructions` and `cycles` counters on an
Apple M1 Ultra (so 4 "apple_icestorm_pmu" cores and 16
"apple_firestorm_pmu" cores), but with `--hybrid-merge` the
percentages consistently read `80.00` (which curiously is the
proportion of cores that are firestorm) instead of `100.00` as I had
expected.

Whilst I see the following mentioned in the manual, I can't quite grok
how it applies:

> perf-stat reports the scaled counts for hybrid event and with a percentage displayed. The percentage is the event’s running time/enabling time.

Could someone possibly explain why my 100% expectation was wrong and
how the percentage is actually calculated?

Many thanks,
Alan

             reply	other threads:[~2024-04-15 18:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-15 18:50 Alan Egerton [this message]
2024-04-15 19:30 ` Percentages reported by `perf stat --hybrid-merge` Alan Egerton

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='CA+phaecbKJXE56ExeJUA5c2=tc3m3p8iNefuqyjs9P3kOn_aWg@mail.gmail.com' \
    --to=eggyal@gmail.com \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).