travisdowns / freq-bench

Fine-grained frequency and voltage transition tests
19 stars 4 forks source link

Issue with running the script #7

Open saurabhtangri opened 2 years ago

saurabhtangri commented 2 years ago

Resolved and programmed event 'cpu_clk_unhalted.thread' to cpu/config=0x3c/ R1 UT1 ZT1 index: 0x1 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x124f4 time_running=0x124f4 rdtsc=0x156224e9bceac57 Resolved and programmed event 'inst_retired.any' to cpu/config=0xc0/ R1 UT1 ZT1 index: 0x40000001 pmc_width=0x30 offset=0x7fffffffffff time_enabled=0x119d time_running=0x119d rdtsc=0x156224e9bd6376b EventManager configured 2 events terminate called after throwing an instance of 'std::runtime_error' what(): MSR 408 read failed with error -2 scripts/data.sh: line 34: 18161 Aborted (core dumped) ./bench $test_name > "$TEMPDIR/temp.csv"

travisdowns commented 2 years ago

@saurabhtangri thanks for the report.

This can occur if the msr kernel module isn't loaded.

Does the file /dev/cpu/0/msr exist?

What does lsmod | grep msr report?

You try modprobe msr and run it again.