andreas-abel / nanoBench

A tool for running small microbenchmarks on recent Intel and AMD x86 CPUs.
http://www.uops.info
GNU Affero General Public License v3.0
435 stars 55 forks source link

Read MSR_PKG_ENERGY_STATUS fails #31

Closed kaposnick closed 9 months ago

kaposnick commented 9 months ago

Hi, I am trying to read the MSR_PKG_ENERGY_STATUS using the user-mode nanobenchmark (as declared in configs/msr_RAPL.txt).

However, it fails with error: 'invalid configuration: msr_611'.

I inspected the code and I suspect that it comes from the following line: https://github.com/andreas-abel/nanoBench/blob/faf75236cade57f7927f9ee949ebc679fc7864b7/common/nanoBench.c#L199

where it doesn't find any '.' in the configuration line.

Has been made any architectural decision to only support the MSR_3F6H, MSR_PF, MSR_RSP0, MSR_RSP1 in the userspace? Is MSR_PKG_ENERGY_STATUS supported in the kernel space?

Thanks a lot!

andreas-abel commented 9 months ago

The msr_* config files have to be used with the -msr_config option, which is only available in the kernel version.