Comments (12)
Hi,
Thanks for reporting ! Do you have files in /sys/class/powercap/
?
I just merged an on going PR to allow scaphandre going further even if the modules are not found as excpected.
Could you get the latest version from main and try again so that we get some more informations ?
On a debian 10 machine of mine I see that the modules are already there so maybe it's just the way they are listed that differs in your case. I'd like to see the result of lsmod | grep rapl
too if you can :)
Thanks !
from scaphandre.
Re,
I don't have files in /sys/class/powercap/
I just dockerized the latest version from github and i got the same error.
lsmod | grep rapl
intel_rapl_perf 16384 0
Thank you.
from scaphandre.
Did you get the exact same stacktrace with the latest version ? 🤔
from scaphandre.
You're right. There it is :
scaphandre::sensors::powercap_rapl: Couldn't find intel_rapl modules.
thread 'main' panicked at 'Trick: if you are running on a vm, do not forget to use --vm parameter invoking scaphandre at the command line', src/sensors/mod.rs:238:18
stack backtrace:
0: 0x55d3339b711a - std::backtrace_rs::backtrace::libunwind::trace::h72c2fb8038f1bbee
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
1: 0x55d3339b711a - std::backtrace_rs::backtrace::trace_unsynchronized::h1e3b084883f1e78c
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/mod.rs:66
2: 0x55d3339b711a - std::sys_common::backtrace::_print_fmt::h3bf6a7ebf7f0394a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:79
3: 0x55d3339b711a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2e8cb764b7fe02e7
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:58
4: 0x55d3337fa19c - core::fmt::write::h7a1184eaee6a8644
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/fmt/mod.rs:1080
5: 0x55d3339b67d1 - std::io::Write::write_fmt::haeeb374d93a67eac
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/io/mod.rs:1516
6: 0x55d3339b60cb - std::sys_common::backtrace::_print::h1d14a7f6ad632dc8
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:61
7: 0x55d3339b60cb - std::sys_common::backtrace::print::h301abac8bb2e3e81
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:48
8: 0x55d3339b60cb - std::panicking::default_hook::{{closure}}::hde0cb80358a6920a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:208
9: 0x55d3339b60cb - std::panicking::default_hook::h9b1a691049a0ec8f
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:227
10: 0x55d3339b60cb - std::panicking::rust_panic_with_hook::h2bdec87b60580584
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:577
11: 0x55d3339d23b8 - std::panicking::begin_panic_handler::{{closure}}::h101ca09d9df5db47
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:484
12: 0x55d3339d2384 - std::sys_common::backtrace::__rust_end_short_backtrace::h3bb85654c20113ca
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:153
13: 0x55d3339d233d - rust_begin_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
14: 0x55d3337f78a0 - core::panicking::panic_fmt::h48c31e1e3d550146
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
15: 0x55d3337fe6b2 - core::option::expect_failed::hf3f43f1792267e24
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/option.rs:1226
16: 0x55d3339505ed - core::option::Option<T>::expect::h1d2151c9c2d652aa
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/option.rs:346
17: 0x55d3339505ed - scaphandre::sensors::Topology::add_cpu_cores::h7d23931f9ff69840
at /app/src/sensors/mod.rs:234
18: 0x55d33398f151 - <scaphandre::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor>::generate_topology::h8b771600fb2688b8
at /app/src/sensors/powercap_rapl.rs:106
19: 0x55d333990347 - <scaphandre::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor>::get_topology::hb65fc2a32bd7f703
at /app/src/sensors/powercap_rapl.rs:112
20: 0x55d333907924 - scaphandre::exporters::stdout::StdoutExporter::new::h2c386abeb6cb01be
at /app/src/exporters/stdout.rs:51
21: 0x55d333907924 - scaphandre::run::h4bfb5995a2909473
at /app/src/lib.rs:60
22: 0x55d333736e43 - scaphandre::main::hf6b720fe640825d8
at /app/src/main.rs:92
23: 0x55d3339b2ff3 - core::ops::function::FnOnce::call_once::hb8b31c0b0b2918aa
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/ops/function.rs:227
24: 0x55d3339b2ff3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h69b16c01bbf36f97
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:137
25: 0x55d3337372e5 - main
26: 0x7f5e84c64cb2 - __libc_start_main
27: 0x55d33373309a - _start
28: 0x0 - <unknown>
from scaphandre.
And with the --vm parameter :
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/sensors/powercap_rapl.rs:76:53
stack backtrace:
0: 0x55f53f27611a - std::backtrace_rs::backtrace::libunwind::trace::h72c2fb8038f1bbee
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/libunwind.rs:96
1: 0x55f53f27611a - std::backtrace_rs::backtrace::trace_unsynchronized::h1e3b084883f1e78c
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/../../backtrace/src/backtrace/mod.rs:66
2: 0x55f53f27611a - std::sys_common::backtrace::_print_fmt::h3bf6a7ebf7f0394a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:79
3: 0x55f53f27611a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h2e8cb764b7fe02e7
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:58
4: 0x55f53f0b919c - core::fmt::write::h7a1184eaee6a8644
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/fmt/mod.rs:1080
5: 0x55f53f2757d1 - std::io::Write::write_fmt::haeeb374d93a67eac
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/io/mod.rs:1516
6: 0x55f53f2750cb - std::sys_common::backtrace::_print::h1d14a7f6ad632dc8
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:61
7: 0x55f53f2750cb - std::sys_common::backtrace::print::h301abac8bb2e3e81
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:48
8: 0x55f53f2750cb - std::panicking::default_hook::{{closure}}::hde0cb80358a6920a
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:208
9: 0x55f53f2750cb - std::panicking::default_hook::h9b1a691049a0ec8f
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:227
10: 0x55f53f2750cb - std::panicking::rust_panic_with_hook::h2bdec87b60580584
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:577
11: 0x55f53f2913b8 - std::panicking::begin_panic_handler::{{closure}}::h101ca09d9df5db47
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:484
12: 0x55f53f291384 - std::sys_common::backtrace::__rust_end_short_backtrace::h3bb85654c20113ca
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:153
13: 0x55f53f29133d - rust_begin_unwind
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/panicking.rs:483
14: 0x55f53f0b68a0 - core::panicking::panic_fmt::h48c31e1e3d550146
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/panicking.rs:85
15: 0x55f53f0bd742 - core::option::expect_none_failed::h6154dc750ae47ade
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/option.rs:1234
16: 0x55f53f24eda6 - core::result::Result<T,E>::unwrap::h6c4fc165a30e1d5c
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/result.rs:973
17: 0x55f53f24eda6 - <scaphandre::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor>::generate_topology::h8b771600fb2688b8
at /app/src/sensors/powercap_rapl.rs:76
18: 0x55f53f24f347 - <scaphandre::sensors::powercap_rapl::PowercapRAPLSensor as scaphandre::sensors::Sensor>::get_topology::hb65fc2a32bd7f703
at /app/src/sensors/powercap_rapl.rs:112
19: 0x55f53f1c6924 - scaphandre::exporters::stdout::StdoutExporter::new::h2c386abeb6cb01be
at /app/src/exporters/stdout.rs:51
20: 0x55f53f1c6924 - scaphandre::run::h4bfb5995a2909473
at /app/src/lib.rs:60
21: 0x55f53eff5e43 - scaphandre::main::hf6b720fe640825d8
at /app/src/main.rs:92
22: 0x55f53f271ff3 - core::ops::function::FnOnce::call_once::hb8b31c0b0b2918aa
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/core/src/ops/function.rs:227
23: 0x55f53f271ff3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h69b16c01bbf36f97
at /rustc/7eac88abb2e57e752f3302f02be5f3ce3d7adfb4/library/std/src/sys_common/backtrace.rs:137
24: 0x55f53eff62e5 - main
25: 0x7fe3b7589cb2 - __libc_start_main
26: 0x55f53eff209a - _start
27: 0x0 - <unknown>
from scaphandre.
Thanks. I forgot to ask: did you run a modprobe intel_rapl
first ?
from scaphandre.
Yeah I got a error :
modprobe: ERROR: could not insert 'intel_rapl': No such device
from scaphandre.
Okay, unfortunately it's more likely because your CPU doesn't embbed RAPL capabilities. I should have asked about that first. What do you have in /proc/cpuinfo ?
from scaphandre.
Here we go :
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 85
model name : Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
stepping : 4
microcode : 0x2006906
cpu MHz : 2499.998
cache size : 33792 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips : 4999.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 85
model name : Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz
stepping : 4
microcode : 0x2006906
cpu MHz : 2499.998
cache size : 33792 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single kaiser fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips : 4999.99
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
from scaphandre.
I didn't find it on ark.intel.com, but if I look at ark pages for models from the same family (found here) like this one I don't find the "Thermal Monitoring Technologies" item that usually says if RAPL is available.
So I guess you don't have the hardware required for the measurement :/
There is a discussion here to integrate an estimation feature in scaphandre for cases like that, if you are interested in contributing or just stay tuned about it.
from scaphandre.
Aww so sad. I'm going to take a look at the discussion.
I'm very interest at monitoring energy consumption and I would like to make a link between the consumption of cloud provider machines with the type of energy they use in order to make a CO2eq and rank the cloud providers.
Any idea ? Any plans ?
from scaphandre.
The thread I indicated is about that, or more exactly to estimate the power consumption only. Once you have the power consumption, you can rely on services like co2signal.com to get the estimated GHG emissions associated.
from scaphandre.
Related Issues (20)
- Problems in estimating multithreaded virtualisation processes
- Proper handling of Windows service management HOT 1
- Some metrics are set to 0 after docker scaphandre:dev restart HOT 5
- Prometheus metrics formatting is changing after request HOT 6
- 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
- Fix multi-socket support on MSR collection
- 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
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.