Skip to content

scaphandre doesn't work on AMD Zen #55

@barnumbirr

Description

@barnumbirr

Bug description

Trrying to get scaphandre running on AMD Zen (Ryzen 5 Pro 2500U) results in thread panic.

To Reproduce

  • Install msr-tools
  • run scaphandre stdout -t 15

Output:

root@host:~# ./scaphandre stdout -t 15
thread 'main' panicked at 'Couldn't find intel_rapl modules.', src/sensors/powercap_rapl.rs:72:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior

scaphandre should work as AMD RAPL support was added to kernel 5.8 and perf seems to return sensible data:

root@host:~# perf stat -a --per-socket -I 1000 -e power/energy-pkg/
#           time socket cpus             counts   unit events
     1.001342541 S0        1               2.06 Joules power/energy-pkg/
     2.002912211 S0        1               2.40 Joules power/energy-pkg/
     3.004453609 S0        1               1.87 Joules power/energy-pkg/
     3.837946645 S0        1               2.04 Joules power/energy-pkg/

Environment

  • Debian Buster
  • 5.9.15 (buster-backports)

Thank you again for creating scaphandre and please do let me know if I can help test this further.
Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Previous releases

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions