Can I monitor process using PCM

Can I monitor process using PCM

Hello,

I have linux.

when I run pcm.x "sleep 1" it gives me hardware counters per core. I want the hardware counters per process.

Is possible to monitor hardware counters per process using pcm?

 

Thanks,

Chandrashekhar Garkar.

9 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Hello Chandrashekhar,

Sorry, you can't use PCM to get the hardware counters per process.

You can get per process counters with VTune or maybe (probably) with linux perf.

Pat

Hello Pat,

Thanks for a quick reply.

I am facing some issues with perf so I wanted an alternative to perf.

Is VTune opensource??

--Chandrashekhar

No, VTune is not openSource.

But you can try it for free at http://software.intel.com/en-us/intel-vtune-amplifier-xe

Pat

Thanks Pat,

Can I get counters for one core at a time, as I have multicore system.

Using PCM I mean to say.

 

--chandrashekhar garkar

Thanks Pat,

Can I get counters for one core at a time, as I have multicore system.

Using PCM I mean to say.

 

--chandrashekhar garkar

Better option is to use VTune to perform code analysis.Some counters have the granularity of single hardware thread (i.e logical cpu).

If you are having issues with perf, you can try the PAPI which will work fine for the the multi-core per process analysis, or look into Valgrind.

Zitat:

Chandrashekhar G. schrieb:

Thanks Pat,

Can I get counters for one core at a time, as I have multicore system.

Using PCM I mean to say.

 

--chandrashekhar garkar

I'm not exactly sure what you mean. Using PCM you can get stats for each core. But not for just 1 core at a time (unless you boot to single core).

Pat

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen