Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1312055

Re: perf stat stddev reporting broken since "perf stat: Introduce read_counters function"

From Jiri Olsa <jolsa@redhat.com>
Newsgroups linux.kernel
Subject Re: perf stat stddev reporting broken since "perf stat: Introduce read_counters function"
Date 2016-01-19 11:00 +0100
Message-ID <qSBeW-5Y1-15@gated-at.bofh.it> (permalink)
References <qSmfW-43l-21@gated-at.bofh.it> <qSzd7-4Gm-7@gated-at.bofh.it> <qSzG9-56Q-7@gated-at.bofh.it> <qSAVA-5Rp-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jan 19, 2016 at 09:38:12AM +0000, Mel Gorman wrote:
> On Tue, Jan 19, 2016 at 09:16:23AM +0100, Jiri Olsa wrote:
> > On Tue, Jan 19, 2016 at 08:42:28AM +0100, Jiri Olsa wrote:
> > 
> > SNIP
> > 
> > > > 
> > > >  Performance counter stats for 'sleep 1' (5 runs):
> > > > 
> > > >           0.583178      task-clock (msec)         #    0.001 CPUs utilized
> > > >                  1      context-switches          #    0.002 M/sec
> > > >                  0      cpu-migrations            #    0.000 K/sec
> > > >                 67      page-faults               #    0.141 M/sec
> > > >          1,224,416      cycles                    #    2.585 GHz
> > > >    <not supported>      stalled-cycles-frontend
> > > >    <not supported>      stalled-cycles-backend
> > > >            892,568      instructions              #    0.68  insns per cycle
> > > >            184,975      branches                  #  390.554 M/sec
> > > >              8,512      branch-misses             #    4.57% of all branches
> > > > 
> > > >        1.000889249 seconds time elapsed                                          ( +-  0.01% )
> > > > 
> > > > I checked and current master in Linus' tree is also broken. Is this
> > > > change in documented perf stat behaviour intentional?
> > > 
> > > nope, not intentional.. I'll check on that, thanks for reporting
> > 
> > for some reason we initialized the stat every iteration,
> > (the call is also wrong because it's called only over the
> > first res_stats[0])
> > 
> > attached patch works for me, could you please test?
> > I'll run more tests and put it in my queue
> > 
> 
> That works for me too, thanks. Feel free to put this on the patch;
> 
> Tested-by: Mel Gorman <mgorman@techsingularity.net>
> 
> When you send it through, can you make sure it has the following please?
> 
> Cc: stable@vger.kernel.org # v4.2+

will do, thanks

jirka

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

perf stat stddev reporting broken since "perf stat: Introduce  read_counters function" Mel Gorman <mgorman@techsingularity.net> - 2016-01-18 19:00 +0100
  Re: perf stat stddev reporting broken since "perf stat: Introduce  read_counters function" Jiri Olsa <jolsa@redhat.com> - 2016-01-19 08:50 +0100
    Re: perf stat stddev reporting broken since "perf stat: Introduce  read_counters function" Jiri Olsa <jolsa@redhat.com> - 2016-01-19 09:20 +0100
      Re: perf stat stddev reporting broken since "perf stat: Introduce  read_counters function" Mel Gorman <mgorman@techsingularity.net> - 2016-01-19 10:40 +0100
        Re: perf stat stddev reporting broken since "perf stat: Introduce  read_counters function" Jiri Olsa <jolsa@redhat.com> - 2016-01-19 11:00 +0100

csiph-web