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

Can I monitor process using PCM

Chandrashekhar_G_
575 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
575 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

0 Kudos
Chandrashekhar_G_
575 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

0 Kudos
Patrick_F_Intel1
Employee
575 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

0 Kudos
Chandrashekhar_G_
575 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

0 Kudos
Chandrashekhar_G_
575 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

0 Kudos
Bernard
Valued Contributor I
575 Views

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

0 Kudos
sol_s_
Beginner
575 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.

0 Kudos
Patrick_F_Intel1
Employee
575 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

0 Kudos
Reply