Skip to content

Disable TurboBoost tuning settings on non-Intel#185

Merged
corona10 merged 1 commit intopsf:mainfrom
mdboom:dont-do-msr-on-arch
May 3, 2024
Merged

Disable TurboBoost tuning settings on non-Intel#185
corona10 merged 1 commit intopsf:mainfrom
mdboom:dont-do-msr-on-arch

Conversation

@mdboom
Copy link
Copy Markdown
Collaborator

@mdboom mdboom commented May 1, 2024

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).

@mdboom mdboom force-pushed the dont-do-msr-on-arch branch from 2a157cd to 2ed444f Compare May 1, 2024 22:00
@mdboom mdboom requested a review from corona10 May 2, 2024 12:51
@corona10 corona10 merged commit 6573f89 into psf:main May 3, 2024
@vstinner
Copy link
Copy Markdown
Member

vstinner commented May 3, 2024

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

It should not be the opposite?

@mdboom
Copy link
Copy Markdown
Collaborator Author

mdboom commented May 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants