Software Tuning, Performance Optimization & Platform Monitoring
Discussion regarding monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform updating.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Access to Processor Counter Monitor has denied with pcm-memory.x

lai_z_
Beginner
3,388 Views

          I built and ran the pcm-memory.x tool on CentOS 7 with Intel Xeon E3-1230 V5,but display as follows:

[root@localhost pcm-master]# ./pcm-memory.x 
 
 Processor Counter Monitor: Memory Bandwidth Monitoring Utility  (2018-07-17 12:46:01 +0200 ID=e9b093b)
 
 This utility measures memory bandwidth per channel or per DIMM rank in real-time
 
Number of physical cores: 4
Number of logical cores: 8
Number of online logical cores: 8
Threads (logical cores) per physical core: 2
Num sockets: 1
Physical cores per socket: 4
Core PMU (perfmon) version: 4
Number of core PMU generic (programmable) counters: 4
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 3400000000 Hz
Package thermal spec power: 80 Watt; Package minimum power: 0 Watt; Package maximum power: 0 Watt; 
Access to Processor Counter Monitor has denied (no MSR or PCI CFG space access).
Cleaning up
[root@localhost pcm-master]#
     Whether the pcm-memory.x tool not support the skylake CPU or I need to change some parameters?
0 Kudos
11 Replies
Roman_D_Intel
Employee
3,388 Views

does pcm.x work for you?

could you please share strace output?

strace -f -o pcm-memory.strace.out ./pcm-memory.x

 

0 Kudos
lai_z_
Beginner
3,388 Views

Hi,Roman,

     I can run the pcm.x tool when I disabled the NMI_watchdog,and I typed 'strace -f -o pcm-memory.strace.out ./pcm-memory.x' at the command

line,the output is the same as running ./pcm-memory.x command.The output is as follows:

[root@localhost pcm-master]# strace -f -o pcm-memory.strace.out ./pcm-memory.x
 
 Processor Counter Monitor: Memory Bandwidth Monitoring Utility  (2018-07-17 12:46:01 +0200 ID=e9b093b)
 
 This utility measures memory bandwidth per channel or per DIMM rank in real-time
 
Number of physical cores: 4
Number of logical cores: 8
Number of online logical cores: 8
Threads (logical cores) per physical core: 2
Num sockets: 1
Physical cores per socket: 4
Core PMU (perfmon) version: 4
Number of core PMU generic (programmable) counters: 4
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 3400000000 Hz
Package thermal spec power: 80 Watt; Package minimum power: 0 Watt; Package maximum power: 0 Watt; 
Access to Processor Counter Monitor has denied (no MSR or PCI CFG space access).
Cleaning up
[root@localhost pcm-master]# 
 

 

0 Kudos
Roman_D_Intel
Employee
3,388 Views

could you please attach the pcm-memory.strace.out file produced by strace?

0 Kudos
lai_z_
Beginner
3,388 Views

Hi,Roman,

    The attach file is a file generated by strace.

0 Kudos
Roman_D_Intel
Employee
3,388 Views

thanks! Could you please also send me the content of /proc/cpuinfo file?

0 Kudos
lai_z_
Beginner
3,388 Views

Hi,Roman,

    The attachment is the cpuinfo file.

0 Kudos
Roman_D_Intel
Employee
3,388 Views

thank you. Unfortunately your processor does not have the hardware PMU unit that pcm-memory requires. pcm.x supports memory traffic metric as a replacement. PCM-memory will be updated to print this information.

Best regards,

Roman

0 Kudos
lai_z_
Beginner
3,388 Views

Hi,Roman,

    Thanks for your reply,can you tell me which models of E3 series CPU have the hardware PMU unit?

0 Kudos
Roman_D_Intel
Employee
3,388 Views
As far as I know only E5 and E7 series from that CPU generation have this unit
0 Kudos
lai_z_
Beginner
3,388 Views

Hi,Roman,

    I found the release notes for version 2.10 of the PCM tool on this page: https://software.intel.com/en-us/articles/intel-performance-counter-monitor/ ,details are as follows:

  • Support Memory Bandwidth Monitoring technology (new local and remote memory bandwidth reported per (logical) core in pcm.x/exe)
  • Added support of Broadwell-based Intel®Xeon®E3 series
  • Added support of processor models based on archtitecture code-named Skylake U/Y.
  • New option for pcm (-yescores to enable specific core output)
  • Bug fixes

    How to monitor memory bandwidth with the pcm.x/exe? What are the features that support Broadwell-based Intel®Xeon®E3 series?Whether Haswell and Ivy Bridge E3 series can be supported?

0 Kudos
Roman_D_Intel
Employee
3,388 Views

in pcm.x/exe you can find metrics called "READ" and "WRITE":

 READ  : bytes read from main memory controller (in GBytes)
 WRITE : bytes written to main memory controller (in GBytes)
 
sample output:
---------------------------------------------------------------------------------------------------------------
MEM (GB)->|  READ |  WRITE |   IO   | CPU energy |
---------------------------------------------------------------------------------------------------------------
 SKT   0     5.07     0.41     1.10      13.38
---------------------------------------------------------------------------------------------------------------
0 Kudos
Reply