intel / pcm

Intel® Performance Counter Monitor (Intel® PCM)
BSD 3-Clause "New" or "Revised" License
2.73k stars 465 forks source link

pcm-202210 core dumped #2 #508

Closed dmitryluhtionov closed 1 year ago

dmitryluhtionov commented 1 year ago
CPU: Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz (2100.12-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x306e4  Family=0x6  Model=0x3e  Stepping=4
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x7fbee3ff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,DCA,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  Structured Extended Features=0x281<FSGSBASE,SMEP,ERMS>
  Structured Extended Features3=0x9c000400<MD_CLEAR,IBPB,STIBP,L1DFL,SSBD>
  XSAVE Features=0x1<XSAVEOPT>
  VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr
  TSC: P-state invariant, performance statistics

# pcm-power

 Intel(r) Performance Counter Monitor (2022-10-19 10:53:25 +0200 ID=2ae6316f)

 Power Monitoring Utility

=====  Processor information  =====
Hybrid processor         : no
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : no
Max CPUID level          : 13
CPU model number         : 62
Number of physical cores: 12
Number of logical cores: 12
Number of online logical cores: 12
Threads (logical cores) per physical core: 1
Num sockets: 2
Physical cores per socket: 6
Last level cache slices per socket: 6
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2100000000 Hz
IBRS enabled in the kernel   : no
STIBP enabled in the kernel  : no
Package thermal spec power: 80 Watt; Package minimum power: 51 Watt; Package maximum power: 110 Watt;

Socket 0: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 Home Agents detected. 0 M3UPI blocks detected.
Socket 1: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 Home Agents detected. 0 M3UPI blocks detected.

MC counter group: 0
PCU counter group: 0
Freq bands [0/1/2]: 1200 MHz; 2000 MHz; 4000 MHz; 
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Abort trapAssertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Abort trapAssertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
).
Abort trap).
DEBUG: caught signal to interrupt (Abort trap).
Cleaning up
Abort trap).
Abort trapAssertion failed: (core_global_ctrl_value), function readAndAggregate, file /wrkdirs/usr/ports/sysutils/intel-pcm/work/pcm-202210/src/cpucounters.cpp, line 4553.
Abort trapCleaning up
).
Abort trap).
Abort trap).
Abort (core dumped)
opcm commented 1 year ago

thanks for reporting the issue. Could you please try to compile and test the latest version from the master branch?

opcm commented 1 year ago

is this FreeBSD?

dmitryluhtionov commented 1 year ago

is this FreeBSD?

Yes

dmitryluhtionov commented 1 year ago

thanks for reporting the issue. Could you please try to compile and test the latest version from the master branch?

# ./pcm-power

 Intel(r) Performance Counter Monitor (2022-12-23 10:37:41 +0100 ID=91863038)

 Power Monitoring Utility

=====  Processor information  =====
Hybrid processor         : no
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : no
Max CPUID level          : 13
CPU model number         : 62
Number of physical cores: 12
Number of logical cores: 12
Number of online logical cores: 12
Threads (logical cores) per physical core: 1
Num sockets: 2
Physical cores per socket: 6
Last level cache slices per socket: 6
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2100000000 Hz
IBRS enabled in the kernel   : no
STIBP enabled in the kernel  : no
Package thermal spec power: 80 Watt; Package minimum power: 51 Watt; Package maximum power: 110 Watt;

Socket 0: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.
Socket 1: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.

MC counter group: 0
PCU counter group: 0
Freq bands [0/1/2]: 1200 MHz; 2000 MHz; 4000 MHz; 
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Abort trapAbort trapAbort trapAbort trap).
).
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Abort trap).
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-202212/src/cpucounters.cpp, line 4859.
Abort trapAbort (core dumped)

master

# ./pcm-power

 Intel(r) Performance Counter Monitor (2023-02-09 09:27:59 +0100 ID=cb41ace3)

 Power Monitoring Utility

=====  Processor information  =====
Hybrid processor         : no
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : no
Max CPUID level          : 13
CPU model number         : 62
Number of physical cores: 12
Number of logical cores: 12
Number of online logical cores: 12
Threads (logical cores) per physical core: 1
Num sockets: 2
Physical cores per socket: 6
Last level cache slices per socket: 6
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2100000000 Hz
IBRS enabled in the kernel   : no
STIBP enabled in the kernel  : no
Package thermal spec power: 80 Watt; Package minimum power: 51 Watt; Package maximum power: 110 Watt;

Socket 0: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.
Socket 1: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.

MC counter group: 0
PCU counter group: 0
Freq bands [0/1/2]: 1200 MHz; 2000 MHz; 4000 MHz; 
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
DEBUG: caught signal to interrupt (Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
DEBUG: caught signal to interrupt (DEBUG: caught signal to interrupt (Abort trapAssertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Assertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
DEBUG: caught signal to interrupt (Abort trapDEBUG: caught signal to interrupt ().
Abort trapAssertion failed: (core_global_ctrl_value), function readAndAggregate, file /home/mitya/pcm-master/src/cpucounters.cpp, line 5099.
Abort trap).
).
Abort trapDEBUG: caught signal to interrupt (Abort trapAbort (core dumped)
dmitryluhtionov commented 1 year ago

Build output

mitya@vpn:/home/mitya/pcm-master/build# cmake ..
-- The C compiler identification is Clang 14.0.5
-- The CXX compiler identification is Clang 14.0.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- System: FreeBSD-13.1-STABLE
-- Build type: Release
-- initial CMAKE_CXX_FLAGS: 
-- initial CMAKE_C_FLAGS: 
-- CMAKE_CXX_FLAGS:  -Wno-unknown-pragmas -fPIC
-- CMAKE_C_FLAGS:  -Wno-unknown-pragmas -fPIC
-- System SIMDJSON is used
-- Install directory: /usr/local
-- CPACK_GENERATOR is TXZ
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mitya/pcm-master/build
Press any key to continue...

mitya@vpn:/home/mitya/pcm-master/build# cmake --build .
mitya@vpn:/home/mitya/pcm-master/build# cmake --build .
[  1%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/bw.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  2%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/cpucounters.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/home/mitya/pcm-master/src/cpucounters.cpp:5343:45: warning: lambda capture 'globalRegPos' is not required to be captured for this use [-Wunused-lambda-capture]
    auto setOtherConf = [&conf, &fixedReg, &globalRegPos](const RawPMUConfig& corePMUConfig)
                                         ~~~^~~~~~~~~~~~
/home/mitya/pcm-master/src/cpucounters.cpp:993:9: warning: private field 'domain' is not used [-Wunused-private-field]
    int domain, b, d, f;
        ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:17: warning: private field 'b' is not used [-Wunused-private-field]
    int domain, b, d, f;
                ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:20: warning: private field 'd' is not used [-Wunused-private-field]
    int domain, b, d, f;
                   ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:23: warning: private field 'f' is not used [-Wunused-private-field]
    int domain, b, d, f;
                      ^
/home/mitya/pcm-master/src/cpucounters.cpp:1073:9: warning: private field 'ctr_id' is not used [-Wunused-private-field]
    int ctr_id;
        ^
6 warnings generated.
[  4%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/debug.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  5%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/mmio.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  7%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/msr.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[  8%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/pci.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 10%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/threadpool.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 11%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/topology.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 13%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/uncore_pmu_discovery.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/home/mitya/pcm-master/src/uncore_pmu_discovery.cpp:30:35: warning: lambda capture 'UncoreDiscoverySize' is not required to be captured for this use [-Wunused-lambda-capture]
        auto copyTable = [&range,&UncoreDiscoverySize,&bar](uint64 * table, const size_t offset)
                                ~~^~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 14%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/utils.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 16%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/dashboard.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 17%] Building CXX object src/CMakeFiles/PCM_STATIC.dir/resctrl.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 19%] Linking CXX static library libpcm.a
[ 19%] Built target PCM_STATIC
[ 20%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/bw.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 22%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/cpucounters.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/home/mitya/pcm-master/src/cpucounters.cpp:5343:45: warning: lambda capture 'globalRegPos' is not required to be captured for this use [-Wunused-lambda-capture]
    auto setOtherConf = [&conf, &fixedReg, &globalRegPos](const RawPMUConfig& corePMUConfig)
                                         ~~~^~~~~~~~~~~~
/home/mitya/pcm-master/src/cpucounters.cpp:993:9: warning: private field 'domain' is not used [-Wunused-private-field]
    int domain, b, d, f;
        ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:17: warning: private field 'b' is not used [-Wunused-private-field]
    int domain, b, d, f;
                ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:20: warning: private field 'd' is not used [-Wunused-private-field]
    int domain, b, d, f;
                   ^
/home/mitya/pcm-master/src/cpucounters.cpp:993:23: warning: private field 'f' is not used [-Wunused-private-field]
    int domain, b, d, f;
                      ^
/home/mitya/pcm-master/src/cpucounters.cpp:1073:9: warning: private field 'ctr_id' is not used [-Wunused-private-field]
    int ctr_id;
        ^
6 warnings generated.
[ 23%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/debug.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 25%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/mmio.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 26%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/msr.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 27%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/pci.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 29%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/threadpool.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 30%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/topology.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 32%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/uncore_pmu_discovery.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/home/mitya/pcm-master/src/uncore_pmu_discovery.cpp:30:35: warning: lambda capture 'UncoreDiscoverySize' is not required to be captured for this use [-Wunused-lambda-capture]
        auto copyTable = [&range,&UncoreDiscoverySize,&bar](uint64 * table, const size_t offset)
                                ~~^~~~~~~~~~~~~~~~~~~
1 warning generated.
[ 33%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/utils.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 35%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/dashboard.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 36%] Building CXX object src/CMakeFiles/PCM_STATIC_SILENT.dir/resctrl.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 38%] Linking CXX static library libPCM_STATIC_SILENT.a
[ 38%] Built target PCM_STATIC_SILENT
[ 39%] Building CXX object src/CMakeFiles/PCM_SHARED.dir/pcm-core.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 41%] Linking CXX shared library ../lib/libpcm.so
[ 41%] Built target PCM_SHARED
[ 42%] Building CXX object src/CMakeFiles/pcm.dir/pcm.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 44%] Linking CXX executable ../bin/pcm
[ 44%] Built target pcm
[ 45%] Building CXX object src/CMakeFiles/pcm-numa.dir/pcm-numa.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 47%] Linking CXX executable ../bin/pcm-numa
[ 47%] Built target pcm-numa
[ 48%] Building CXX object src/CMakeFiles/pcm-latency.dir/pcm-latency.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 50%] Linking CXX executable ../bin/pcm-latency
[ 50%] Built target pcm-latency
[ 51%] Building CXX object src/CMakeFiles/pcm-power.dir/pcm-power.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 52%] Linking CXX executable ../bin/pcm-power
[ 52%] Built target pcm-power
[ 54%] Building CXX object src/CMakeFiles/pcm-msr.dir/pcm-msr.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 55%] Linking CXX executable ../bin/pcm-msr
[ 55%] Built target pcm-msr
[ 57%] Building CXX object src/CMakeFiles/pcm-memory.dir/pcm-memory.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 58%] Linking CXX executable ../bin/pcm-memory
[ 58%] Built target pcm-memory
[ 60%] Building CXX object src/CMakeFiles/pcm-tsx.dir/pcm-tsx.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 61%] Linking CXX executable ../bin/pcm-tsx
[ 61%] Built target pcm-tsx
[ 63%] Building CXX object src/CMakeFiles/pcm-pcie.dir/pcm-pcie.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 64%] Linking CXX executable ../bin/pcm-pcie
[ 64%] Built target pcm-pcie
[ 66%] Building CXX object src/CMakeFiles/pcm-core.dir/pcm-core.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 67%] Linking CXX executable ../bin/pcm-core
[ 67%] Built target pcm-core
[ 69%] Building CXX object src/CMakeFiles/pcm-iio.dir/pcm-iio.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 70%] Linking CXX executable ../bin/pcm-iio
[ 70%] Built target pcm-iio
[ 72%] Building CXX object src/CMakeFiles/pcm-lspci.dir/pcm-lspci.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 73%] Linking CXX executable ../bin/pcm-lspci
[ 73%] Built target pcm-lspci
[ 75%] Building CXX object src/CMakeFiles/pcm-pcicfg.dir/pcm-pcicfg.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 76%] Linking CXX executable ../bin/pcm-pcicfg
[ 76%] Built target pcm-pcicfg
[ 77%] Building CXX object src/CMakeFiles/pcm-mmio.dir/pcm-mmio.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 79%] Linking CXX executable ../bin/pcm-mmio
[ 79%] Built target pcm-mmio
[ 80%] Building CXX object src/CMakeFiles/pcm-raw.dir/pcm-raw.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 82%] Linking CXX executable ../bin/pcm-raw
[ 82%] Built target pcm-raw
[ 83%] Building CXX object src/CMakeFiles/pcm-accel.dir/pcm-accel.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 85%] Linking CXX executable ../bin/pcm-accel
[ 85%] Built target pcm-accel
[ 86%] Building CXX object src/CMakeFiles/pcm-sensor-server.dir/pcm-sensor-server.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:57:18: warning: explicitly defaulted copy assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
        Indent & operator = (Indent const &) = default;
                 ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:85:22: note: copy assignment operator of 'Indent' is implicitly deleted because field 'indstrlen_' is of const-qualified type 'const size_t' (aka 'const unsigned long')
        size_t const indstrlen_;
                     ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:1947:72: warning: 'bind1st<std::not_equal_to<char>, char>' is deprecated [-Wdeprecated-declarations]
            s.erase( s.begin(), std::find_if( s.begin(), s.end(), std::bind1st( std::not_equal_to<char>(), ' ' ) ) );
                                                                       ^
/usr/include/c++/v1/__functional/binder1st.h:45:1: note: 'bind1st<std::not_equal_to<char>, char>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/usr/include/c++/v1/__config:1018:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/usr/include/c++/v1/__config:1007:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:1949:63: warning: 'bind1st<std::not_equal_to<char>, char>' is deprecated [-Wdeprecated-declarations]
            s.erase( std::find_if( s.rbegin(), s.rend(), std::bind1st( std::not_equal_to<char>(), ' ') ).base(), s.end() );
                                                              ^
/usr/include/c++/v1/__functional/binder1st.h:45:1: note: 'bind1st<std::not_equal_to<char>, char>' has been explicitly marked deprecated here
_LIBCPP_DEPRECATED_IN_CXX11 inline _LIBCPP_INLINE_VISIBILITY
^
/usr/include/c++/v1/__config:1018:39: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX11'
#  define _LIBCPP_DEPRECATED_IN_CXX11 _LIBCPP_DEPRECATED
                                      ^
/usr/include/c++/v1/__config:1007:48: note: expanded from macro '_LIBCPP_DEPRECATED'
#    define _LIBCPP_DEPRECATED __attribute__ ((deprecated))
                                               ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:890:22: warning: 'overflow' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    virtual int_type overflow( int_type ch ) {
                     ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:1065:14: note: in instantiation of template class 'basic_socketbuf<16385>' requested here
    buf_type socketBuffer_;
             ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:2055:11: note: in instantiation of template class 'basic_socketstream<char>' requested here
        in.read( &data[0], length );
          ^
/usr/include/c++/v1/streambuf:294:22: note: overridden virtual function is here
    virtual int_type overflow(int_type __c = traits_type::eof());
                     ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:903:22: warning: 'underflow' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    virtual int_type underflow() {
                     ^
/usr/include/c++/v1/streambuf:286:22: note: overridden virtual function is here
    virtual int_type underflow();
                     ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:7:24: warning: unused variable 'DEFAULT_HTTPS_PORT' [-Wunused-const-variable]
constexpr unsigned int DEFAULT_HTTPS_PORT = DEFAULT_HTTP_PORT;
                       ^
/home/mitya/pcm-master/src/pcm-sensor-server.cpp:2540:24: warning: private field 'clientAddress_' is not used [-Wunused-private-field]
    struct sockaddr_in clientAddress_;
                       ^
7 warnings generated.
[ 88%] Linking CXX executable ../bin/pcm-sensor-server
[ 88%] Built target pcm-sensor-server
[ 89%] Building CXX object src/CMakeFiles/pcm-sensor.dir/pcm-sensor.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 91%] Linking CXX executable ../bin/pcm-sensor
[ 91%] Built target pcm-sensor
[ 92%] Building C object examples/CMakeFiles/c_example.dir/c_example.c.o
cc: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 94%] Linking C executable ../bin/examples/c_example
[ 94%] Built target c_example
[ 95%] Building C object examples/CMakeFiles/c_example_shlib.dir/c_example.c.o
cc: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
cc: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[ 97%] Linking C executable ../bin/examples/c_example_shlib
[ 97%] Built target c_example_shlib
[ 98%] Building CXX object tests/CMakeFiles/daemon_alignment_test.dir/daemon_alignment_test.cpp.o
c++: warning: -lexecinfo: 'linker' input unused [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[100%] Linking CXX executable ../bin/tests/daemon_alignment_test
[100%] Built target daemon_alignment_test
rdementi commented 1 year ago

thanks, we have reproduced the issue. A fix will follow soon

rdementi commented 1 year ago

the issue should be resolved now (check out the latest version in the master branch)

dmitryluhtionov commented 1 year ago
# ./pcm-power

 Intel(r) Performance Counter Monitor (2023-02-10 19:14:21 +0100 ID=1a947ca5)

 Power Monitoring Utility

=====  Processor information  =====
Hybrid processor         : no
IBRS and IBPB supported  : yes
STIBP supported          : yes
Spec arch caps supported : no
Max CPUID level          : 13
CPU model number         : 62
Number of physical cores: 12
Number of logical cores: 12
Number of online logical cores: 12
Threads (logical cores) per physical core: 1
Num sockets: 2
Physical cores per socket: 6
Last level cache slices per socket: 6
Core PMU (perfmon) version: 3
Number of core PMU generic (programmable) counters: 8
Width of generic (programmable) counters: 48 bits
Number of core PMU fixed counters: 3
Width of fixed counters: 48 bits
Nominal core frequency: 2100000000 Hz
IBRS enabled in the kernel   : no
STIBP enabled in the kernel  : no
Package thermal spec power: 80 Watt; Package minimum power: 51 Watt; Package maximum power: 110 Watt;

Socket 0: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.
Socket 1: 1 memory controllers detected with total number of 4 channels. 2 QPI ports detected. 0 M2M (mesh to memory) blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 0 M3UPI blocks detected.

MC counter group: 0
PCU counter group: 0
Freq bands [0/1/2]: 1200 MHz; 2000 MHz; 4000 MHz; 
----------------------------------------------------------------------------------------------
Time elapsed: 1001 ms
Called sleep function for 1000 ms
S0P0; QPI Clocks: 902492738; L0p Tx Cycles: 0.00%; L1 Cycles: 0.00%
S0P1; QPI Clocks: 902493094; L0p Tx Cycles: 0.00%; L1 Cycles: 0.00%
S0CH0; DRAMClocks: 668512176; Rank0 CKE Off Residency: 0.01%; Rank0 CKE Off Average Cycles: 57712; Rank0 Cycles per transition: 668512176
S0CH0; DRAMClocks: 668512176; Rank1 CKE Off Residency: 0.01%; Rank1 CKE Off Average Cycles: 57818; Rank1 Cycles per transition: 668512176
S0CH1; DRAMClocks: 668512482; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S0CH1; DRAMClocks: 668512482; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S0CH2; DRAMClocks: 668512725; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S0CH2; DRAMClocks: 668512725; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S0CH3; DRAMClocks: 668512975; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S0CH3; DRAMClocks: 668512975; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S0; PCUClocks: 802297036; Freq band 0/1/2 cycles: 99.93%; 99.92%; 0.00%
S0; Consumed energy units: 2719274; Consumed Joules: 41.49; Watts: 41.45; Thermal headroom below TjMax: 48
S0; Consumed DRAM energy units: 225949; Consumed DRAM Joules: 3.45; DRAM Watts: 3.44
S1P0; QPI Clocks: 902479462; L0p Tx Cycles: 0.00%; L1 Cycles: 0.00%
S1P1; QPI Clocks: 902479750; L0p Tx Cycles: 0.00%; L1 Cycles: 0.00%
S1CH0; DRAMClocks: 668502672; Rank0 CKE Off Residency: 0.01%; Rank0 CKE Off Average Cycles: 83573; Rank0 Cycles per transition: 668502672
S1CH0; DRAMClocks: 668502672; Rank1 CKE Off Residency: 0.01%; Rank1 CKE Off Average Cycles: 83674; Rank1 Cycles per transition: 668502672
S1CH1; DRAMClocks: 668502943; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S1CH1; DRAMClocks: 668502943; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S1CH2; DRAMClocks: 668503212; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S1CH2; DRAMClocks: 668503212; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S1CH3; DRAMClocks: 668503150; Rank0 CKE Off Residency: 100.01%; Rank0 CKE Off Average Cycles: -1; Rank0 Cycles per transition: -1
S1CH3; DRAMClocks: 668503150; Rank1 CKE Off Residency: 100.01%; Rank1 CKE Off Average Cycles: -1; Rank1 Cycles per transition: -1
S1; PCUClocks: 802467403; Freq band 0/1/2 cycles: 99.82%; 99.82%; 0.00%
S1; Consumed energy units: 2608449; Consumed Joules: 39.80; Watts: 39.76; Thermal headroom below TjMax: 40
S1; Consumed DRAM energy units: 166317; Consumed DRAM Joules: 2.54; DRAM Watts: 2.54