Comments (11)
Spotted ! 🥳
$ apt install linux-modules-extra-$(uname -r)
$ modprobe intel_rapl_common
$ docker run -v /sys/class/powercap:/sys/class/powercap -v /proc:/proc -e RUST_BACKTRACE=full -ti hubblo/scaphandre stdout -t 15
Measurement step is: 2s
Host: 0 W Core Uncore DRAM
Socket0 ? W 0 W
Top 5 consumers:
Power PID Exe
------------------------------------------------------------
Host: 11.838703 W Core Uncore DRAM
Socket0 11.88223 W 8.319255 W
Top 5 consumers:
Power PID Exe
5.7872815 W 377006 ""
1.218375 W 848 ""
0.30459374 W 558 ""
0.30459374 W 905 ""
0 W 1 ""
------------------------------------------------------------
Host: 13.552203 W Core Uncore DRAM
Socket0 13.544806 W 10.927634 W
Top 5 consumers:
Power PID Exe
9.757587 W 377006 ""
0.7744116 W 1891 ""
0.61952925 W 1620 ""
0.15488231 W 1 ""
0.15488231 W 11 ""
------------------------------------------------------------
from scaphandre.
Hi,
Thanks for reporting. What is the ouput of lsmod | grep intel_rapl
?
from scaphandre.
Hello,
No output for this command
$ lsmod | grep intel_rapl
$
If I try to load the module I get an error
$ modprobe intel_rapl
modprobe: FATAL: Module intel_rapl not found in directory /lib/modules/5.4.0-62-generic
But some related files do exist
$ locate rapl
/usr/src/linux-headers-5.4.0-62/include/linux/intel_rapl.h
/usr/src/linux-headers-5.4.0-62-generic/include/config/intel/rapl
/usr/src/linux-headers-5.4.0-62-generic/include/config/intel/rapl.h
/usr/src/linux-headers-5.4.0-62-generic/include/config/intel/rapl/core.h
/usr/src/linux-headers-5.4.0-62-generic/include/config/perf/events/intel/rapl.h
/usr/src/linux-headers-5.4.0-62-generic/include/config/proc/thermal/mmio/rapl.h
from scaphandre.
Could you try a modprobe intel_rapl_common
and modprobe rapl
?
from scaphandre.
$ modprobe rapl
modprobe: FATAL: Module rapl not found in directory /lib/modules/5.4.0-62-generic
$ modprobe intel_rapl_common
modprobe: FATAL: Module intel_rapl_common not found in directory /lib/modules/5.4.0-62-generic
Additionally :
$ grep -rni rapl /lib/modules/$(uname -r)/
/lib/modules/5.4.0-62-generic/modules.order:2:kernel/arch/x86/events/rapl.ko
/lib/modules/5.4.0-62-generic/modules.order:3782:kernel/drivers/powercap/intel_rapl_common.ko
/lib/modules/5.4.0-62-generic/modules.order:3783:kernel/drivers/powercap/intel_rapl_msr.ko
$ find /lib/modules/$(uname -r) -type f -name '*.ko' | grep rapl
$
"Is this real life ?" 😅
from scaphandre.
I'm on ubuntu 20.04.1 too but I guess there is something different in your setup as I dont have the modules.order:XX
-like folders you have:
find /lib/modules/$(uname -r)/ -name *rapl*
/lib/modules/5.8.0-38-generic/kernel/arch/x86/events/rapl.ko
/lib/modules/5.8.0-38-generic/kernel/drivers/powercap/intel_rapl_common.ko
/lib/modules/5.8.0-38-generic/kernel/drivers/powercap/intel_rapl_msr.ko
I don't know where it could come from 🤔
I'm honestly on try and fail mode here, what happens if you manually insmod one of those .ko files available ?
# insmod /lib/modules/5.4.0-62-generic/modules.order:3782:kernel/drivers/powercap/intel_rapl_common.ko
Certainly not a good solution, but I try to understand what's happening and it may give us some lead.
Another question: are you using a kernel you compiled yourself or is it the default one that is managed by your distribution ?
from scaphandre.
@uggla just made me realize you may have to install the linux-modules-extra-$(uname-r)
package !
I'm very curious about how it is going 🤓 ?
from scaphandre.
Great !
It's still strange that you have "traces" of the kernel modules, if you never installed the package before 🤔
If someone has a clear understanding on why it may happen I'm interested ! :)
from scaphandre.
Hi everyone,
I had the same problem, but mine goes further 😞
I'm working on a Raspberry Pi 3b+ on which I installed the latest version of RaspiOS (former Raspbian). When I try to install the extra packages using apt, this is what I get :
"Impossible to find the package linux-module-extra-5.10.17-v8". I looked up for answers in several forums but no one seems to provide a way for the installer to find these packages. I'm not very used to install manually Linux packages, so I wonder if anyone has an idea to do so, maybe by adding a repository in the etc/apt/source.plist file ?
Thanks :)
from scaphandre.
Hi @DarylSaucier, unless if i'm wrong because I have currently no Rasberry Pi to verify. But there is not "rapl" sensor for the Rasberry Pi. The rapl technology is provided only on x86 (Intel or Amd) hardware. So scaphandre cannot run on a rpi.
Looking at the package, I think that it does not make sens to have a module-extra package on the rpi because as the hardware is the same, there are no need to provide various hardware configuration options/extensions.
from scaphandre.
Thank you very much @uggla, we'll thus find another machine
from scaphandre.
Related Issues (20)
- Fix MSRRapl sensor multi-socket support
- missing kubernetes pods metric labels HOT 2
- Wrong Wattage gets displayed for a Programm HOT 2
- sum(scaph_process_power_consumption_microwatts) by (node) and sum( scaph_socket_power_microwatts) by (node) don't match
- Running scaphandre_linux returns "0 W" HOT 2
- Kubernetes Scaphandre Deployment reporting 0 W HOT 5
- Kubernetes > 1.22 HOT 3
- 'IndexError: list index out of range' in Prometheus Scraping of Scaphandre Metrics HOT 2
- JSON exporter output cut short due to BufWriter size HOT 1
- Scaphandre does not run on Debian 12 HOT 8
- Systemd service results in empty "exe" prometheus label
- Add label "comm" from /proc to prometheus metrics HOT 1
- .json file output format HOT 11
- [Docker] couldn't read record HOT 1
- Qemu exporter not working - Default build does not include qemu
- Power of 0W for all processes on Windows 11 HOT 4
- Order-of-magnitude problem with the scaph_process_power_consumption_microwatts in v1.0
- Random failure in rocky linux based custom container
- Error: Couldn't find intel_rapl modules.
- IO error in winpai call on Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scaphandre.