psf / pyperf

Toolkit to run Python benchmarks
http://pyperf.readthedocs.io/
MIT License
771 stars 74 forks source link

Disable TurboBoost tuning settings on non-Intel #185

Closed mdboom closed 2 months ago

mdboom commented 2 months ago

I'm in the process of getting pyperf to run on aarch64-linux, and system tune fails with:

Errors
======
Turbo Boost (MSR): Failed to read MSR 0x1a0 from /dev/cpu/0/msr: 
[Errno 2] No such file or directory: '/dev/cpu/0/msr'
Turbo Boost (MSR): Try to load the msr kernel module: sudo modprobe msr  

As far as I understand, this feature just isn't available on non-Intel. (There might be an equivalent to adjust the frequencies on ARM, but that can be in a follow-up PR).

vstinner commented 2 months ago

platform.machine() not in ('x86', 'x86_64', 'amd64')

It should not be the opposite?

mdboom commented 2 months ago

platform.machine() not in ('x86', 'x86_64', 'amd64')

It should not be the opposite?

Oh, geeze you are right. I transferred this manually from the machine where I had this working. I'll file a new PR right now.