-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAPL_ENERGY_PKG is invalid or unsupported by this machine #125
Comments
Thanks for reaching out @fmuyassarov, we will have a look to your issue with @ldesauw and come back to you asap. |
I've reproduced your problem on my machine using your command line. docker run --privileged --rm --name sensorhwpc --network="host" --pid host \
-v /sys:/sys \
-v /var/lib/docker/containers:/var/lib/docker/containers:ro \
-v /tmp/powerapi-sensor-reporting:/reporting \
powerapi/hwpc-sensor \
-n sensor \
-f 500 \
-r mongodb -U "mongodb://127.0.0.1:27888" -D db -C col1 \
-s "rapl" -o -e "RAPL_ENERGY_PKG" \
-s "msr" -e "TSC" -e "APERF" -e "MPERF" \
-c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" \
-e "CPU_CLK_THREAD_UNHALTED:THREAD_P" \
-e "LLC_MISSES"\
-e "INSTRUCTIONS_RETIRED"
|
The problem come from the fact that you are using |
Thank you. That makes sense. But I still get the same error for the pkg + flags. I wonder if there is some kind of typo I'm doing when passing those arguments. docker run --privileged --rm --name sensorhwpc --network="host" --pid host \
-v /sys:/sys \
-v /var/lib/docker/containers:/var/lib/docker/containers:ro \
-v /tmp/powerapi-sensor-reporting:/reporting \
powerapi/hwpc-sensor \
-n sensor \
-f 500 \
-r mongodb -U "mongodb://127.0.0.1:27888" -D db1 -C col1 \
-s "rapl" -o -e "RAPL_ENERGY_PKG" \
-s "msr" -e "TSC" -e "APERF" -e "MPERF" \
-c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" \
-e "CPU_CLK_THREAD_UNHALTED:THREAD_P" \
-e "LLC_MISSES" \
-e "INSTRUCTIONS_RETIRED" I: 21-12-07 13:55:40 build: version undefined (rev: undefined) (Sep 28 2021 - 14:40:24)
I: 21-12-07 13:55:40 uname: Linux 5.13.0-1020-oem #24-Ubuntu SMP Thu Nov 11 14:28:56 UTC 2021 x86_64
E: 21-12-07 13:55:40 config: event 'RAPL_ENERGY_PKG' is invalid or unsupported by this machine
E: 21-12-07 13:55:40 config: failed to parse the provided command-line arguments |
Just a heads up, there are some RAPL results available in the machine $ ls /sys/class/powercap/intel-rapl:0
constraint_0_max_power_uw constraint_0_time_window_us constraint_1_power_limit_uw constraint_2_name device intel-rapl:0:0 name uevent
constraint_0_name constraint_1_max_power_uw constraint_1_time_window_us constraint_2_power_limit_uw enabled intel-rapl:0:1 power
constraint_0_power_limit_uw constraint_1_name constraint_2_max_power_uw constraint_2_time_window_us energy_uj max_energy_range_uj subsystem |
It appears that recent change in the kernel broke the way we acceded the perf counter, we are currently working on solving that. |
I see, thanks for verifying. Do you know the hash of the commit that you think potentially broke the counter? Perhaps, meanwhile I can go back on the git history and try it out with older releases. |
It's not a commit that broke the counter but an update on the linux kernel change the way to access counters via |
@fmuyassarov could you provide me your kernel version ? |
Sure, it is |
Hi @fmuyassarov could you check you the module for rapl access is loaded ? see powerapi-ng/hwpc-sensor#20 for details. |
Hi @PierreRustOrange . I think it isn't unfortunately
|
I'm wondering if it's just issue with perf access |
as you said I have rapl values, but the issue is with the access probably
|
@ldesauw I was able to run the sensor on 5.11.0-40-generic Kernel with no issues. |
@fmuyassarov : ok, correct me if I did not get this right :
Can you check that you have the right module when using 5.13.0-1020-oem ?
If it's not the case you should be able to install it (see powerapi-ng/hwpc-sensor#20), please tell us if that solve the issue on that kernel version. |
I was having the same issue with following setup, though my system has rapl drivers and perf is able to access it perfectly.
After debugging the hwpc-sensor, I found that it's using pfm_get_os_event_encoding from libpfm to verify the provided events. Unfortunately, that library has not been updated according to the latest Linux perf interface. So as a quick hack I commented the call in src/events.c:setup_perf_event_attr and it works fine for me. I don't have the time to create a proper fix. I hope it helps! |
Hi Power API team,
I've tried to run a couple of tests, but apparently sensor is failing to start off, due to unsupported event group.
The processor architecture in which I'm running tests has
Willow Cove
architecture, which is from 2020 (i.e. Sandy Brige +).Machine characteristics:
Willow Cove
11th Generation Intel® Core™ i7 Processors
$ sudo lshw -C CPU *-cpu description: CPU product: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz vendor: Intel Corp. physical id: 400 bus info: cpu@0 version: 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz slot: U3E1 size: 2704MHz capacity: 4800MHz width: 64 bits clock: 100MHz capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 invpcid_single cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb intel_pt avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves split_lock_detect dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req avx512vbmi umip pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg tme avx512_vpopcntdq rdpid movdiri movdir64b fsrm avx512_vp2intersect md_clear flush_l1d arch_capabilities cpufreq configuration: cores=4 enabledcores=4 threads=8
Steps I took
Container logs:
I would appreciate if you could help out for me to move forward, do you think there is something I'm missing?
Thanks.
The text was updated successfully, but these errors were encountered: