Skip to content

Bug: Rapl greedily selects dram consumption for first numa node #70

Description

@weriomat

I am currently messing around with a 4 socket system. While looking at the output of sensors I noticed that RAPL reports the power consumption for each domain separately, but only one value for dram (and possibly other subdomains).

[root@cpl powercap]# ./target/release/sio sensors
...
── cpu/rapl ──
  RAPL dram                                  4.1 W
  RAPL package-0                            52.5 W
  RAPL package-1                            57.7 W
  RAPL package-2                            50.3 W
  RAPL package-3                            51.7 W
...

Each domain reports its own value for dram

[root@cpl powercap]# ls
intel-rapl  intel-rapl:0  intel-rapl:0:0  intel-rapl:1  intel-rapl:1:0  intel-rapl:2  intel-rapl:2:0  intel-rapl:3  intel-rapl:3:0
[root@cpl powercap]# cat /sys/class/powercap/intel-rapl:*:0/{name,energy_uj}
dram
dram
dram
dram
37871987688
16813759539
31533870934
23087939276

As each /sys/class/powercap/intel-rapl:*:0/name is dram, the SensorId is only added once in the src/sensors/rapl.rs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions