Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring

Can I monitor process using PCM

Chandrashekhar_G_
248 Views

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.

0 Kudos
8 Replies
Patrick_F_Intel1
Employee
248 Views

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

Chandrashekhar_G_
248 Views

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

Patrick_F_Intel1
Employee
248 Views

No, VTune is not openSource.

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

Pat

Chandrashekhar_G_
248 Views

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

Chandrashekhar_G_
248 Views

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

Bernard
Black Belt
248 Views

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

sol_s_
Beginner
248 Views

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.

Patrick_F_Intel1
Employee
248 Views

Chandrashekhar G. wrote:

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

Reply