Re: Performance Counters

2015-02-22 Thread Philip Guenther
On Thu, Feb 19, 2015 at 6:11 AM, Sai Prajeeth cspraje...@gmail.com wrote:
 Does pctr count events for all CPUs or just 1 CPU? I cant seem to find any
 good documentation for pctr other than its man page. I tried it and the
 values it gives are differing too much.

The pctr driver is currently not MP aware, so it only sets or fetches
the counters on the CPU it's run on, making it very hard to use on MP
boxes.  :-(



 Also is there any explanation of what the unit masks are for the specific
 functions (-m command line option) ?

You need to consult the documentation for your CPU to see what UMASK
values are supported and how they are interpreted.
For Intel CPUs, this is in volume 3b System Programming Guide, Part
2, chapters 18 and 19, for example.


Philip Guenther



Re: Performance Counters

2015-02-19 Thread Boudewijn Dijkstra

Op Wed, 18 Feb 2015 10:15:26 +0100 schreef Sai Prajeeth cspraje...@gmail.com:

Is there any command that will let me access the processor's performance
counters?? I am looking for something like Linux's perf / FreeBSDs pmcstat
that will help me get the IPC (Instructions per cycle) of the system.


$ apropos 'performance counter'
pctr(1) - display CPU performance counters
pctr(4/amd64) - driver for CPU performance counters
pctr(4/i386) - driver for CPU performance counters
uperf(4/sparc64) - performance counters driver


--
(Remove the obvious prefix to reply privately.)
Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/



Re: Performance Counters

2015-02-19 Thread Sai Prajeeth
Does pctr count events for all CPUs or just 1 CPU? I cant seem to find any
good documentation for pctr other than its man page. I tried it and the
values it gives are differing too much.

I am counting INST_RET and CPU_CLK_UNHALTED. The ratio of these 2 gives the
IPC and i am getting very varied results for the same run of the program.

Also is there any explanation of what the unit masks are for the specific
functions (-m command line option) ?

Thanks

On Thu, Feb 19, 2015 at 3:13 PM, Boudewijn Dijkstra 
sp4mtr4p.boudew...@indes.com wrote:

 Op Wed, 18 Feb 2015 10:15:26 +0100 schreef Sai Prajeeth 
 cspraje...@gmail.com:

 Is there any command that will let me access the processor's performance
 counters?? I am looking for something like Linux's perf / FreeBSDs pmcstat
 that will help me get the IPC (Instructions per cycle) of the system.


 $ apropos 'performance counter'
 pctr(1) - display CPU performance counters
 pctr(4/amd64) - driver for CPU performance counters
 pctr(4/i386) - driver for CPU performance counters
 uperf(4/sparc64) - performance counters driver


 --
 (Remove the obvious prefix to reply privately.)
 Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/



Performance Counters

2015-02-18 Thread Sai Prajeeth
Hi,

Is there any command that will let me access the processor's performance
counters?? I am looking for something like Linux's perf / FreeBSDs pmcstat
that will help me get the IPC (Instructions per cycle) of the system.

Thanks



Re: cpu performance counters (cache hit/miss etc)

2011-04-27 Thread Luis Useche
Unless already fixed, I remember this didn't work very well with SMP
kernels. If you have problems try to use bsd.sp.

Luis.

On Tue, Apr 26, 2011 at 9:16 PM, Philip Guenther guent...@gmail.com wrote:
 On Tue, Apr 26, 2011 at 5:00 PM, David Steiner
 davidsteiner2...@gmail.com wrote:
 is there a convenient way to display CPU cache statistics in openbsd?
 like the amount of L1/L2 hits/misses? there's OProfile for linux, Vtune
 for Linux/Windows, cachekit for Solaris, but what's available for the
 best OS out there?

 sure i could read the intel manuals on accessing the special
 performance registers to find out. but time is limited. i've searched
 manpages and on the web without any cache hits so to speak.

 Did you try searching for the subject of your message?

 $ apropos 'cpu performance counters'
 pctr (1) - display CPU performance counters
 pctr (4/AMD64) - driver for CPU performance counters
 pctr (4/i386) - driver for CPU performance counters
 $


 Philip Guenther



Re: cpu performance counters (cache hit/miss etc)

2011-04-27 Thread David Steiner
On Wed, 27 Apr 2011 14:02:09 -0400
Luis Useche use...@gmail.com wrote:

  Did you try searching for the subject of your message?
 
  $ apropos 'cpu performance counters'
  pctr (1) - display CPU performance counters
  pctr (4/AMD64) - driver for CPU performance counters
  pctr (4/i386) - driver for CPU performance counters
  $
 
 
  Philip Guenther
 

thank you philip guenther. just what i was looking for. are there more
examples how to use pctr? not so easy to interpret what's going on.



Re: cpu performance counters (cache hit/miss etc)

2011-04-27 Thread Philip Guenther
On Wed, Apr 27, 2011 at 12:28 PM, David Steiner
davidsteiner2...@gmail.com wrote:
 thank you philip guenther. just what i was looking for. are there more
 examples how to use pctr? not so easy to interpret what's going on.

I don't know of anything relevant that isn't already referenced from
the manpage.  Good luck!


Philip Guenther



cpu performance counters (cache hit/miss etc)

2011-04-26 Thread David Steiner
hi.

is there a convenient way to display CPU cache statistics in openbsd?
like the amount of L1/L2 hits/misses? there's OProfile for linux, Vtune
for Linux/Windows, cachekit for Solaris, but what's available for the
best OS out there?

sure i could read the intel manuals on accessing the special
performance registers to find out. but time is limited. i've searched
manpages and on the web without any cache hits so to speak.

David



Re: cpu performance counters (cache hit/miss etc)

2011-04-26 Thread Philip Guenther
On Tue, Apr 26, 2011 at 5:00 PM, David Steiner
davidsteiner2...@gmail.com wrote:
 is there a convenient way to display CPU cache statistics in openbsd?
 like the amount of L1/L2 hits/misses? there's OProfile for linux, Vtune
 for Linux/Windows, cachekit for Solaris, but what's available for the
 best OS out there?

 sure i could read the intel manuals on accessing the special
 performance registers to find out. but time is limited. i've searched
 manpages and on the web without any cache hits so to speak.

Did you try searching for the subject of your message?

$ apropos 'cpu performance counters'
pctr (1) - display CPU performance counters
pctr (4/AMD64) - driver for CPU performance counters
pctr (4/i386) - driver for CPU performance counters
$


Philip Guenther