powerapi-ng / hwpc-sensor

Hardware Performance Counters monitoring agent for containers.
BSD 3-Clause "New" or "Revised" License
14 stars 16 forks source link

'RAPL_ENERGY_PKG' is invalid or unsupported by this machine #42

Closed Laccio closed 11 months ago

Laccio commented 1 year ago

Hello everyone, running on

sudo docker run --rm \
--net=host \
--privileged \
--pid=host \
-v /sys:/sys \
-v /var/lib/docker/containers:/var/lib/docker/containers:ro \
-v /tmp/powerapi-sensor-reporting:/reporting \
-v $(pwd):/srv \
powerapi/hwpc-sensor \
-n "$(hostname -f)" \
-r "mongodb" -U "mongodb://127.0.0.1" -D "test" -C "prep" \
-s "rapl" -o -e "RAPL_ENERGY_PKG" \
-s "msr" -e "TSC" -e "APERF" -e "MPERF" \
-c "core" -e "CPU_CLK_UNHALTED:REF_P" -e "CPU_CLK_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED"

I get this error

I: 23-11-19 18:26:24 build: version unknown (rev: unknown)
I: 23-11-19 18:26:24 uname: Linux 6.1.0-060100-generic #202303090726 SMP PREEMPT_DYNAMIC Thu Mar  9 12:33:28 UTC 2023 x86_64
I: 23-11-19 18:26:24 pmu: found ix86arch 'Intel X86 architectural PMU' having 7 events, 9 counters (6 general, 3 fixed)
I: 23-11-19 18:26:24 pmu: found perf 'perf_events generic PMU' having 198 events, 0 counters (0 general, 0 fixed)
I: 23-11-19 18:26:24 pmu: found perf_raw 'perf_events raw PMU' having 1 events, 0 counters (0 general, 0 fixed)
I: 23-11-19 18:26:24 pmu: found intel_msr 'Intel MSR' having 6 events, 6 counters (0 general, 6 fixed)
E: 23-11-19 18:26:24 config: event 'RAPL_ENERGY_PKG' is invalid or unsupported by this machine
E: 23-11-19 18:26:24 config: failed to parse the provided command-line arguments

what can I do to fix this error? I need the RAPL energy for my studies.

roda82 commented 11 months ago

Hello, please check the discussion here https://github.com/powerapi-ng/hwpc-sensor/issues/20