-
Notifications
You must be signed in to change notification settings - Fork 16
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
Access to RAPL counters on some CPU / kernel combinaison #20
Comments
It seems this can also happen if the appropriate kernel module is not loaded.
The module is in Thanks @gfieni for this info ! However, I think there are still cases where perf implementation is not available in a kernel (for a recent cpu), while powercap is ok. For example with a 5.4 kernel on a i7-10875H (that's a laptop spu, but I've seen similar issue with server class cpu). |
Hi, It seems I can't use the hwpc-sensor. My issue seems to be similar to powerapi-ng/powerapi#125
I have a laptop with a Would the advice solution be to implement a sensor accessing RAPL through powercap sysfs ? |
Hello @dsaingre, |
Hi @gfieni,
(is this relevant and what you're asking? Not very knowledgeable yet on powercap and co) Regarding
Does it helps to see if the issue is coming from my side? |
I think that's another case where rapl support is implemented in powercap (and thus fs access) but not in the perf tool. If I'm understanding that code correctly (clearly no warranted here !! :), support for rapl is not even implemented in the current source tree, in perf Meanwhile it's been implemented in powercap two years ago : I think we still need an option for the sensor to read the rapl information through the powercap fs . |
Hi,
I also get an issue with perf
|
Hi, |
Hi, |
Hi @PierreRustOrange, |
Hello everyone, We investigated this issue and it is clear that the Linux kernel (packaged with Ubuntu) does not support energy events access at least for "Tiger Lake" and "Rocket Lake" Intel families via the perf interface. To deploy hwpc_sensor on these families, the current solution requires to modify the kernel (cf. arch/x86/events/rapl.c) and recompile it. If you cannot do that, the best that we can do now is to create a list of supported families with your help. To check if you can access energy events on your host machine, you should run the command perf list | grep power/ and check that the output is not empty. |
Hi, |
Output is empty on my side too |
Hello, |
Hello, |
Hi @BZConserto |
Hi @Mbenni |
|
Hello, measurements are in watts. |
Hello everyone, from i5 13600k with Ubuntu 22.04.3 LTS and kernel as 5.10.0-051000-generic giving:
I'm getting this output.
What do u suggest me to do? I have already downgraded the kernel to 5.10 as suggested above but still not working. I need RAPL energy for my studies. |
Hi, |
On some system, the sensor fails to access RAPL counters and we get this error at startup:
However, on the same systems, we can see rapl data in the powercap sysfs.
powerapi-ng/powerapi#125 is probably an example of such error.
Actually the sensor use the perf subsystem to access rapl, which is implemented in a different part of the kernel source tree than powercap. Thus I suspect that this can happens when the kernel contains, for the cpu of the machine, the implementation of powercap but not of rapl access in perf.
I suggest we implement a fallback access to RAPL using powercap sysfs, when we cannot use perf.
The text was updated successfully, but these errors were encountered: