Skip to content
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

[doc] Provide commands to check rapl support #137

Closed
arthurzenika opened this issue Nov 19, 2021 · 2 comments
Closed

[doc] Provide commands to check rapl support #137

arthurzenika opened this issue Nov 19, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@arthurzenika
Copy link
Contributor

Bug description

It can be difficult to detect that scaphandre is not support on the server's CPU

To Reproduce

root@host:~# modprobe intel_rapl
modprobe: FATAL: Module intel_rapl not found in directory /lib/modules/5.10.0-9-amd64
root@host:~# modprobe intel_rapl_common
modprobe: ERROR: could not insert 'intel_rapl_common': No such device
root@host:~# insmod /lib/modules/5.10.0-9-amd64/kernel/drivers/powercap/intel_rapl_common.ko
insmod: ERROR: could not insert module /lib/modules/5.10.0-9-amd64/kernel/drivers/powercap/intel_rapl_common.ko: No such device
root@host:~# dmesg | grep rapl
[2424208.753699] intel_rapl_common: driver does not support CPU family 6 model 26
[2481103.619707] intel_rapl_common: driver does not support CPU family 6 model 26

Expected behavior

A bit more warning in the documentation about supported/unsupported CPUs

I ended up reading https://hubblo-org.github.io/scaphandre-documentation/compatibility.html and https://hubblo-org.github.io/scaphandre-documentation/references/sensor-powercap_rapl.html which mentions the age of the CPU. Maybe there could be a command dmesg | grep rapl or some flag in /proc/cpuinfo ?

Maybe there could be some sort of detection in the binary to guide the end user to this conclusion ?

Environment

  • Linux distribution version : debian bullseye/buster [e.g. Ubuntu 20.04.1]
  • Kernel version (output of uname -r) : 5.10.0-9-amd64
@arthurzenika arthurzenika added the bug Something isn't working label Nov 19, 2021
@bpetit bpetit added this to the Release v0.6.0 milestone Aug 24, 2022
@bpetit bpetit added documentation Improvements or additions to documentation and removed bug Something isn't working labels Aug 14, 2023
@bpetit
Copy link
Contributor

bpetit commented Aug 14, 2023

@bpetit bpetit closed this as completed Aug 14, 2023
@arthurzenika
Copy link
Contributor Author

Awesome, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Previous releases
Development

No branches or pull requests

2 participants