Software Tuning, Performance Optimization & Platform Monitoring
Discussion around monitoring and software tuning methodologies, Performance Monitoring Unit (PMU) of Intel microprocessors, and platform monitoring
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

pcm-memory.x fails to read memory stats

Somnath_M_
Beginner
163 Views

Greetings,

I built and ran the PCM code on Ubuntu 16.04 PC with Intel Core i7-4810MQ running at 2.8GHz. "pcm.x" returns some memory stats but "pcm-memory.x" fails. How can I resolve the issue?

Output of pcm-memory.x:

$ sudo ./pcm-memory.x

 Processor Counter Monitor: Memory Bandwidth Monitoring Utility  ($Format:%ci ID=%h$)

 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: 3
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: 2800000000 Hz
Package thermal spec power: 47 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

 

Parts of pcm.x output:

$ sudo ./pcm.x 

 Processor Counter Monitor  ($Format:%ci ID=%h$)


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: 3
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: 2800000000 Hz
Package thermal spec power: 47 Watt; Package minimum power: 0 Watt; Package maximum power: 0 Watt; 

Detected Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz "Intel(r) microarchitecture codename Haswell" stepping 3

<snip>
 Instructions retired:   27 M ; Active cycles:  124 M ; Time (TSC): 2794 Mticks ; C0 (active,non-halted) core residency: 0.59 %

 C1 core residency: 4.26 %; C3 core residency: 0.32 %; C6 core residency: 0.18 %; C7 core residency: 94.65 %;
 C2 package residency: 79.76 %; C3 package residency: 0.00 %; C6 package residency: 0.00 %; C7 package residency: 0.00 %;

 PHYSICAL CORE IPC                 : 0.45 => corresponds to 11.18 % utilization for cores in active state
 Instructions per nominal CPU cycle: 0.00 => corresponds to 0.06 % core utilization over time interval
---------------------------------------------------------------------------------------------------------------
MEM (GB)->|  READ |  WRITE |   IO   | CPU energy |
---------------------------------------------------------------------------------------------------------------
 SKT   0     0.64     0.07     0.50       8.39     
---------------------------------------------------------------------------------------------------------------

 

0 Kudos
1 Reply
Somnath_M_
Beginner
163 Views

My current understanding is that you have to rely on Integrated Memory Controller counters stated in https://software.intel.com/en-us/articles/monitoring-integrated-memory-controller-requests-in-the-2nd-3rd-and-4th-generation-intel . Those are reported by pcm.x.

Reply