Open ionutbalosin opened 10 months ago
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?
@jnioche I am running scaphandre on a K8S cluster following this documentation:
https://hubblo-org.github.io/scaphandre-documentation/tutorials/kubernetes.html
I have followed this workaround: https://github.com/mlco2/codecarbon/issues/244
Yet, even if my user can now read the file:
$ cat /sys/class/powercap/intel-rapl:0/energy_uj
13956425892
I still get an error in the logs of the scaphandre pod:
$ kubectl logs scaphandre-tfldv -n monitoring --timestamps=true -f
2024-07-23T13:49:31.418916867Z scaphandre::sensors: Sysinfo sees 24
2024-07-23T13:49:31.422281808Z Scaphandre prometheus exporter
2024-07-23T13:49:31.422291908Z Sending ⚡ metrics
2024-07-23T13:49:31.422294098Z Press CTRL-C to stop scaphandre
2024-07-23T13:50:25.034472133Z 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" }
hi !
any updates please ? same issue on cluster K8s !
nothing change with "sudo chmod -R a+r /sys/class/powercap/intel-rapl", access isstill denied
my proc: Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz
thanks in advance!
Hello
I fixed using privileged:true in my container https://github.com/hubblo-org/scaphandre/pull/391 could you please review
Please see below the full details.
$ scaphandre_linux_amd64 -s powercap_rapl stdout
$ powercap-info -p intel-rapl
$ cat /proc/cpuinfo
$ 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