scaphandre
scaphandre copied to clipboard
Running scaphandre_linux returns "0 W"
Please see below the full details.
$ scaphandre_linux_amd64 -s powercap_rapl stdout
Scaphandre stdout exporter
Sending ⚡ metrics
Measurement step is: 2s
Host: 0 W
package core uncore
Top 5 consumers:
Power PID Exe
No processes found yet or filter returns no value.
------------------------------------------------------------
Host: 0 W
package core uncore
Top 5 consumers:
Power PID Exe
0 W 2599 "gnome-shell"
0 W 4704 "gnome-terminal-"
0 W 796 "systemd-oomd"
0 W 3612 "Xwayland"
0 W 1 "systemd"
------------------------------------------------------------
Host: 0 W
package core uncore
Top 5 consumers:
Power PID Exe
0 W 2599 "gnome-shell"
0 W 848 "dbus-daemon"
0 W 1116 "containerd"
0 W 4704 "gnome-terminal-"
0 W 1 "systemd"
------------------------------------------------------------
...
$ powercap-info -p intel-rapl
enabled: 1
Zone 0
name: package-0
enabled: 1
max_energy_range_uj: 262143328850
Constraint 0
name: long_term
power_limit_uw: 200000000
time_window_us: 31981568
max_power_uw: 55000000
Constraint 1
name: short_term
power_limit_uw: 30000000
time_window_us: 2440
max_power_uw: 0
Constraint 2
name: peak_power
power_limit_uw: 246000000
max_power_uw: 0
Zone 0:0
name: core
enabled: 0
max_energy_range_uj: 262143328850
Constraint 0
name: long_term
power_limit_uw: 0
time_window_us: 976
Zone 0:1
name: uncore
enabled: 0
max_energy_range_uj: 262143328850
Constraint 0
name: long_term
power_limit_uw: 0
time_window_us: 976
Zone 1
name: psys
enabled: 1
max_energy_range_uj: 262143328850
Constraint 0
name: long_term
power_limit_uw: 280000000
time_window_us: 999424
Constraint 1
name: short_term
power_limit_uw: 280000000
time_window_us: 976
$ cat /proc/cpuinfo
model : 183
model name : 13th Gen Intel(R) Core(TM) i9-13900HX
$ uname -a
Linux ubuntu 6.5.0-14-generic #14-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:59:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Is this not supported on my CPU?
Thanks Ionut Balosin
Same here on Linux Mint running on
model name : 12th Gen Intel(R) Core(TM) i7-12700H
Version 1.0 gives a useful error message
scaphandre::sensors: Could'nt read record from /sys/class/powercap/intel-rapl:0/energy_uj, error was: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Changing the rights with sudo chmod -R a+r /sys/class/powercap/intel-rapl
fixed the issue
See https://github.com/mlco2/codecarbon/issues/244
@bpetit I will check the README and docs later on + submit a PR to add the instructions if missing
edit - I can see now that the init.sh script exists for that very purpose and that its use is documented both in sensor-powercap_rapl.md and troubleshooting.md
@ionutbalosin can you please check whether calling init.sh
fixes the issue for you?