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

Access to Intel(r) Performance Counter Monitor has denied (no MSR or PCI CFG space access).

Shuja-ur-Rehman_B_
829 Views

Hi

I m getting following output when I ran pcm-memory.x command on Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz  with linux (open-suse) os.

 Intel(r) Performance Counter Monitor: Memory Bandwidth Monitoring Utility V2.10 (2015-11-17 09:01:38 +0100 ID=cd66c34)

 Copyright (c) 2009-2015 Intel Corporation
 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: 2700000000 Hz
Package thermal spec power: 45 Watt; Package minimum power: 36 Watt; Package maximum power: 0 Watt;
Access to Intel(r) Performance Counter Monitor has denied (no MSR or PCI CFG space access).
Cleaning up

and following output when i ran pcm.x

Intel(r) Performance Counter Monitor V2.10 (2015-11-17 09:01:38 +0100 ID=cd66c34)

 Copyright (c) 2009-2015 Intel Corporation

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: 2700000000 Hz
Package thermal spec power: 45 Watt; Package minimum power: 36 Watt; Package maximum power: 0 Watt;
Trying to use Linux perf events...
Linux Perf: Error on programming generic event #0 error: Invalid argument
Access to Intel(r) Performance Counter Monitor has denied (Unknown error).
Cleaning up

Can anybody let me know the issue(s).

 

Thanks

Shuja

 

 

 

 

 

 

 

 

0 Kudos
1 Reply
Carlos_P_
New Contributor I
829 Views

Hi,

Well, for the access to the MSR driver, I needed to set the permissions to allow the read access with "sudo modprobe msr".
I don't know if that solution uses the perf_event but, anyway, you can change the /proc/sys/kernel/perf_event_paranoid value to less than 1. It's needed for the perf_event_open() support.

Regards

0 Kudos
Reply