Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1399723
| From | Jiri Olsa <jolsa@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Add top down metrics to perf stat |
| Date | 2016-05-12 09:50 +0200 |
| Message-ID | <rxTxE-17U-9@gated-at.bofh.it> (permalink) |
| References | <rvAz7-1bh-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, May 05, 2016 at 04:03:57PM -0700, Andi Kleen wrote:
SNIP
> The kernel declares the events supported by the current
> CPU and perf stat then computes the formulas based on the
> available metrics.
>
>
> Example output:
>
> $ perf stat --topdown -I 1000 cmd
> 1.000735655 frontend bound retiring bad speculation backend bound
> 1.000735655 S0-C0 2 47.84% 11.69% 8.37% 32.10%
> 1.000735655 S0-C1 2 45.53% 11.39% 8.52% 34.56%
> 2.003978563 S0-C0 2 49.47% 12.22% 8.65% 29.66%
> 2.003978563 S0-C1 2 47.21% 12.98% 8.77% 31.04%
> 3.004901432 S0-C0 2 49.35% 12.26% 8.68% 29.70%
> 3.004901432 S0-C1 2 47.23% 12.67% 8.76% 31.35%
> 4.005766611 S0-C0 2 48.44% 12.14% 8.59% 30.82%
> 4.005766611 S0-C1 2 46.07% 12.41% 8.67% 32.85%
> 5.006580592 S0-C0 2 47.91% 12.08% 8.57% 31.44%
> 5.006580592 S0-C1 2 45.57% 12.27% 8.63% 33.53%
> 6.007545125 S0-C0 2 47.45% 12.02% 8.57% 31.96%
> 6.007545125 S0-C1 2 45.13% 12.17% 8.57% 34.14%
> 7.008539347 S0-C0 2 47.07% 12.03% 8.61% 32.29%
getting -0% for bad speculation.. im on your perf/top-down-20
thanks,
jirka
[root@ibm-x3650m4-01 perf]# ./perf stat --topdown -a -I 1000
nmi_watchdog enabled with topdown. May give wrong results.
Disable with echo 0 > /proc/sys/kernel/nmi_watchdog
1.002322346 retiring bad speculation frontend bound backend bound
1.002322346 S0-C0 2 38.3% 0.0% 57.9% 3.8%
1.002322346 S0-C1 2 38.3% 0.0% 59.1% 2.6%
1.002322346 S0-C2 2 38.3% 0.0% 59.0% 2.6%
1.002322346 S0-C3 2 38.3% 0.0% 58.7% 3.0%
1.002322346 S0-C4 2 38.3% -0.0% 58.6% 3.1%
1.002322346 S0-C5 2 38.4% -0.0% 58.3% 3.3%
1.002322346 S1-C0 2 38.3% -0.0% 58.7% 3.0%
1.002322346 S1-C1 2 38.3% 0.0% 59.7% 2.0%
1.002322346 S1-C2 2 38.3% -0.0% 59.3% 2.5%
1.002322346 S1-C3 2 38.3% -0.0% 59.1% 2.5%
1.002322346 S1-C4 2 38.3% 0.0% 59.1% 2.6%
1.002322346 S1-C5 2 38.3% -0.0% 59.1% 2.7%
2.005429451 S0-C0 2 38.3% 0.0% 57.9% 3.8%
...
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Add top down metrics to perf stat Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
[PATCH 05/10] x86, perf: Use new topology_max_smt_threads() in HT leak workaround Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
[PATCH 10/10] perf, tools, stat: Add extra output of counter values with -vv Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: [PATCH 10/10] perf, tools, stat: Add extra output of counter values with -vv Jiri Olsa <jolsa@redhat.com> - 2016-05-12 10:10 +0200
Re: [PATCH 10/10] perf, tools, stat: Add extra output of counter values with -vv Andi Kleen <andi@firstfloor.org> - 2016-05-20 02:10 +0200
[PATCH 07/10] perf, tools, stat: Scale values by unit before metrics Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: [PATCH 07/10] perf, tools, stat: Scale values by unit before metrics Jiri Olsa <jolsa@redhat.com> - 2016-05-07 21:20 +0200
[tip:perf/core] perf stat: Scale values by unit before metrics tip-bot for Andi Kleen <tipbot@zytor.com> - 2016-05-10 22:40 +0200
[PATCH 09/10] perf, tools, stat: Add computation of TopDown formulas Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
[PATCH 04/10] x86, perf: Add Top Down events to Intel Atom Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
[PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales Jiri Olsa <jolsa@redhat.com> - 2016-05-07 21:20 +0200
Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales Andi Kleen <andi@firstfloor.org> - 2016-05-07 21:30 +0200
Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales Jiri Olsa <jolsa@redhat.com> - 2016-05-11 15:10 +0200
Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-05-11 18:50 +0200
[tip:perf/urgent] perf stat: Avoid fractional digits for integer scales tip-bot for Andi Kleen <tipbot@zytor.com> - 2016-05-20 08:50 +0200
[PATCH 02/10] x86, perf: Support sysfs files depending on SMT status Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: [PATCH 02/10] x86, perf: Support sysfs files depending on SMT status Peter Zijlstra <peterz@infradead.org> - 2016-05-09 11:50 +0200
Re: [PATCH 02/10] x86, perf: Support sysfs files depending on SMT status Andi Kleen <ak@linux.intel.com> - 2016-05-09 16:30 +0200
Re: [PATCH 02/10] x86, perf: Support sysfs files depending on SMT status Peter Zijlstra <peterz@infradead.org> - 2016-05-09 16:40 +0200
Re: [PATCH 02/10] x86, perf: Support sysfs files depending on SMT status Ingo Molnar <mingo@kernel.org> - 2016-05-12 10:10 +0200
[PATCH 03/10] x86, perf: Add Top Down events to Intel Core Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: [PATCH 03/10] x86, perf: Add Top Down events to Intel Core Peter Zijlstra <peterz@infradead.org> - 2016-05-11 15:30 +0200
Re: [PATCH 03/10] x86, perf: Add Top Down events to Intel Core Jiri Olsa <jolsa@redhat.com> - 2016-05-11 15:30 +0200
Re: [PATCH 03/10] x86, perf: Add Top Down events to Intel Core Ingo Molnar <mingo@kernel.org> - 2016-05-12 10:20 +0200
[PATCH 08/10] perf, tools, stat: Basic support for TopDown in perf stat Andi Kleen <andi@firstfloor.org> - 2016-05-06 01:10 +0200
Re: Add top down metrics to perf stat Jiri Olsa <jolsa@redhat.com> - 2016-05-12 09:50 +0200
csiph-web