Bug 1794941 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

We currently use the scale 0.23nJ for all RAPL perf event values, but the RAPL perf event scale for each domain (PKG, CORES, DRAM, etc) should be determined by the corresponding sysfs files. The scale value should be present in `/sys/bus/event_source/devices/power/events/energy-<domain` e.g. `/sys/bus/event_source/devices/power/events/energy-pkg`.
We currently use the scale 0.23nJ for all RAPL perf event values, but the RAPL perf event scale for each domain (PKG, CORES, DRAM, etc) should be determined by the corresponding sysfs files. The scale value should be present in `/sys/bus/event_source/devices/power/events/energy-<domain>` e.g. `/sys/bus/event_source/devices/power/events/energy-pkg`.
We currently use the scale 0.23nJ for all RAPL perf event values, but the RAPL perf event scale for each domain (PKG, CORES, DRAM, etc) should be determined by the corresponding sysfs files. The scale value should be present in `/sys/bus/event_source/devices/power/events/energy-<domain>.scale`. For example:

```
cat /sys/bus/event_source/devices/power/events/energy-pkg.scale
2.3283064365386962890625e-10
```

Back to Bug 1794941 Comment 0