Coder Social home page Coder Social logo

Comments (11)

frntn avatar frntn commented on May 22, 2024 2

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      ""
------------------------------------------------------------

Thank you @uggla & @bpetit 💪

from scaphandre.

bpetit avatar bpetit commented on May 22, 2024

Hi,

Thanks for reporting. What is the ouput of lsmod | grep intel_rapl ?

from scaphandre.

frntn avatar frntn commented on May 22, 2024

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.

bpetit avatar bpetit commented on May 22, 2024

Could you try a modprobe intel_rapl_common and modprobe rapl ?

from scaphandre.

frntn avatar frntn commented on May 22, 2024
$ 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.

bpetit avatar bpetit commented on May 22, 2024

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.

bpetit avatar bpetit commented on May 22, 2024

@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.

bpetit avatar bpetit commented on May 22, 2024

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.

DarylSaucier avatar DarylSaucier commented on May 22, 2024

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.

uggla avatar uggla commented on May 22, 2024

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.

DarylSaucier avatar DarylSaucier commented on May 22, 2024

Thank you very much @uggla, we'll thus find another machine

from scaphandre.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.