mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf: multiplexing broken on amd fam16h?
@ 2015-07-21 18:14 Vince Weaver
  2015-07-21 19:32 ` Peter Zijlstra
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Vince Weaver @ 2015-07-21 18:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo

Hello

I have a new AMD A8 system and perf multiplexing support is acting weird.

If I run the perf_event_tests check_multiplexing test it fails like this:

Event	TotalCount	RawCount	Scale					ScaledCount	Error
0	500282143	150403975	-2.00 (c8050b5 fffffffff9c224ef)	-300807950	160.13%

So the problem is that the TOTAL_TIME_RUNNING value is negative, which as 
far as I know shouldn't be possible.  I can't seem to track down 
why this would happen, and the same kernel (4.2-rc3) running on a Haswell 
machine doesn't have this problem.

I tried to replicate the problem using perf, but for some reason I can't 
get perf to multiplex on any of my machines.  That used to transparently 
work didn't it?

here's the result on the haswell machine

perf stat -e cycles,instructions,cycles,instructions,cycles,instructions,cycles,instructions 
sleep 5

 Performance counter stats for 'sleep 5':

         1,354,527      cycles                   
         1,934,694      instructions              #    1.76  insns per cycle        
         1,521,148      cycles                   
         1,934,694      instructions              #    1.76  insns per cycle        
         1,521,148      cycles                   
         1,223,321      instructions              #    1.11  insns per cycle         [13.61%]
     <not counted>      cycles                   
     <not counted>      instructions             

       5.003651781 seconds time elapsed


Vince

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-07-22 20:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-21 18:14 perf: multiplexing broken on amd fam16h? Vince Weaver
2015-07-21 19:32 ` Peter Zijlstra
2015-07-21 20:08   ` Vince Weaver
2015-07-22 12:22     ` Peter Zijlstra
2015-07-22 14:57       ` Vince Weaver
2015-07-22 15:00         ` Peter Zijlstra
2015-07-22 15:02         ` Vince Weaver
2015-07-22 15:06           ` Peter Zijlstra
2015-07-22 15:41             ` Peter Zijlstra
2015-07-22 16:56               ` Vince Weaver
2015-07-22 19:07                 ` Peter Zijlstra
2015-07-22 19:59                   ` Vince Weaver
2015-07-22 20:10                     ` Peter Zijlstra
2015-07-21 22:10 ` Peter Zijlstra
2015-07-22 14:10 ` Peter Zijlstra
2015-07-22 14:36   ` Vince Weaver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome