IIO is not returning any value
hi Team,
We are getting the following error message in one of our test server. Not sure why the IIO related details are not popping up. Any help would be much appreciated.
Note. I am running PCM as a docker image. In my host machine, I could see the pci.ids file. But I cant see the pci.ids in the docker image. Should I bind the hwdata into the container to get this metrics ?
pcm-iio
Intel(r) Performance Counter Monitor ($Format:%ci ID=%h$)
This utility measures IIO information
===== Processor information ===== Linux arch_perfmon flag : yes Hybrid processor : no IBRS and IBPB supported : yes STIBP supported : yes Spec arch caps supported : yes Max CPUID level : 27 CPU family : 6 CPU model number : 106 Number of physical cores: 64 Number of logical cores: 128 Number of online logical cores: 128 Threads (logical cores) per physical core: 2 Num sockets: 2 Physical cores per socket: 32 Last level cache slices per socket: 32 Core PMU (perfmon) version: 5 Number of core PMU generic (programmable) counters: 8 Width of generic (programmable) counters: 48 bits Number of core PMU fixed counters: 4 Width of fixed counters: 48 bits Nominal core frequency: 2200000000 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: 185 Watt; Package minimum power: 84 Watt; Package maximum power: 652 Watt;
INFO: Linux perf interface to program uncore PMUs is present Socket 0: 4 memory controllers detected with total number of 8 channels. 3 UPI ports detected. 4 M2M (mesh to memory)/B2CMI blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 3 M3UPI/B2UPI blocks detected. Socket 1: 4 memory controllers detected with total number of 8 channels. 3 UPI ports detected. 4 M2M (mesh to memory)/B2CMI blocks detected. 0 HBM M2M blocks detected. 0 EDC/HBM channels detected. 0 Home Agents detected. 3 M3UPI/B2UPI blocks detected. Socket 0: 1 PCU units detected. 6 IIO units detected. 6 IRP units detected. 32 CHA/CBO units detected. 0 MDF units detected. 1 UBOX units detected. 0 CXL units detected. 0 PCIE_GEN5x16 units detected. 0 PCIE_GEN5x8 units detected. Socket 1: 1 PCU units detected. 6 IIO units detected. 6 IRP units detected. 32 CHA/CBO units detected. 0 MDF units detected. 1 UBOX units detected. 0 CXL units detected. 0 PCIE_GEN5x16 units detected. 0 PCIE_GEN5x8 units detected. Initializing RMIDs
Detected Intel(R) Xeon(R) Gold 6338N CPU @ 2.20GHz "Intel(r) microarchitecture codename Icelake-SP" stepping 6 microcode level 0xd0003d1 /usr/share/hwdata/pci.ids file is not available. Ensure that the "hwdata" package is properly installed or download https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids and copy it to the current directory. Error info:event config file opCode-6-106.txt or /usr/local/share/pcm/opCode-6-106.txt is not available, you can try to manually copy it from PCM source package. Event configure file have the problem and cause the program exit, please double check it!
I would assume that yes you have to make sure pcm in docker can access those files.
I think the main issue is that opCode-*.txt files are not available. Did you run "make install" inside the container to let pcm build process install opCode-*.txt files?
Not having hwdata is not a showstopper but to solve it you need to install the hwdata package inside the container.
@rdementi : we haven't execute that it. I guess the image should be pre-build with all the required packages. Can you point me the docker file for the same to build and test this out ?
we will need to extend https://github.com/intel/pcm/blob/master/Dockerfile to support running pcm-iio. As of now it only supports pcm-sensor-server
@rdementi : we haven't execute that it. I guess the image should be pre-build with all the required packages. Can you point me the docker file for the same to build and test this out ?
@arun2arunraj the change implementing your request has been merged: https://github.com/intel/pcm/commit/041dc87f71da77dcef79377571e77124cc1eecf3
Please try it. It works in our environment.