pcm icon indicating copy to clipboard operation
pcm copied to clipboard

Issue with Obtaining Uncore Event Count Values on RPL Platform

Open Arka2009 opened this issue 11 months ago • 0 comments

Hi Team,

I'm currently working on obtaining the uncore event count values for my application's ROI using the command:

pcm-raw -el <evt file> -ep <perfmon dir> ...

I'm implementing this on two platforms, both running Linux:

  1. Intel(R) Xeon(R) Gold 6326 CPU @ 2.90GHz (ICX)
  2. 13th Gen Intel(R) Core(TM) i9-13900K (RPL) It works well on ICX but on RPL, I get the following error, shown below.
 Intel(r) Performance Counter Monitor: Raw Event Monitoring Utility 


=====  Processor information  =====
Linux arch_perfmon flag  : yes
Hybrid processor         : yes
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : yes
Max CPUID level          : 32
CPU family               : 6
CPU model number         : 183
Number of logical cores: 32
Number of online logical cores: 32
Threads (logical cores) per physical core: 2 (maybe imprecise due to core offlining/hybrid CPU)
Offlined cores: 
Num sockets: 1
Physical cores per socket: 16 (maybe imprecise due to core offlining/hybrid CPU)
Core PMU (perfmon) version: 5
Number of core PMU generic (programmable) counters: 6
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 3000000000 Hz
IBRS enabled in the kernel   : yes
STIBP enabled in the kernel  : no
The processor is not susceptible to Rogue Data Cache Load: yes
The processor supports enhanced IBRS                     : yes
Package thermal spec power: 125 Watt; Package minimum power: 0 Watt; Package maximum power: 0 Watt;

INFO: Linux perf interface to program uncore PMUs is present
Socket 0: 0 PCU units detected. 0 IIO units detected. 0 IRP units detected. 0 CHA/CBO units detected. 0 MDF units detected. 0 UBOX units detected. 0 CXL units detected. 0 PCIE_GEN5x16 units detected. 0 PCIE_GEN5x8 units detected.

Error: failed to load Intel-PMT/xml/pmt.xml
Matched event files:
GenuineIntel-6-B7 hybridcore /ADL/events/alderlake_gracemont_core.json
GenuineIntel-6-B7 hybridcore /ADL/events/alderlake_goldencove_core.json
GenuineIntel-6-B7 uncore /ADL/events/alderlake_uncore.json
GenuineIntel-6-B7 uncore experimental /ADL/events/alderlake_uncore_experimental.json
hybridcore /ADL/events/alderlake_gracemont_core.json
hybridcore /ADL/events/alderlake_goldencove_core.json
uncore /ADL/events/alderlake_uncore.json
uncore experimental /ADL/events/alderlake_uncore_experimental.json
ERROR: event MEM_INST_RETIRED.ALL_LOADS could not be found in event database. Ignoring the event.
ERROR: event MEM_LOAD_RETIRED.L1_HIT could not be found in event database. Ignoring the event.
ERROR: event MEM_LOAD_RETIRED.L1_MISS could not be found in event database. Ignoring the event.

Detected 13th Gen Intel(R) Core(TM) i9-13900K "Intel(r) microarchitecture codename Raptor Lake" stepping 1 microcode level 0x123
No events specified. Exiting.
Cleaning up
 Closed perf event handles
 Zeroed uncore PMU registers

I've noticed that some files, specifically GenuineIntel-6-B7-1.json, are missing from https://github.com/intel/pcm/tree/master/src/PMURegisterDeclarations directory

However, the performance monitoring events for Alder Lake are present in the perfmon directory: https://github.com/intel/perfmon/tree/3fc7a87fde40817b521dbfb079da85b52a0cc96b. These events are also used by Raptor Lake. Any guidance on this discrepancy would be greatly appreciated.

Thanks Arka

Arka2009 avatar Feb 11 '25 04:02 Arka2009