如何暂时关闭 Turbo Boost? [英] How to turn off Turbo Boost temporarily?

查看:68
本文介绍了如何暂时关闭 Turbo Boost?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的应用程序中,我们有许多版本的相同例程针对不同类型的处理器架构进行了优化.在安装过程中,我们运行性能测试并选择例程的最佳版本.

In our application we have many versions of the same routine optimized for different kind of processor architectures. During install we run performance tests and select the best version of routine.

如果使用的内核很少,最新的处理器可以提高它们的频率,所以有时我们的测试会看到错误版本的例程.有什么办法可以暂时关闭 Turbo Boost?

Latest processors can boost their frequencies if few cores are in use, so sometimes our tests peeking wrong version of routine. Is there some way to temporarily turn off Turbo Boost?

推荐答案

有 MSR registers (https://en.wikipedia.org/wiki/Model-specific_register) 在英特尔 CPU 中禁用/启用每核涡轮增压.在 linux 中,有 msr-tools 包允许 root 读/写 MSR 寄存器.有两篇关于在 Linux 中禁用/启用 Turbo Boost 的帖子:

There are MSR registers (https://en.wikipedia.org/wiki/Model-specific_register) in Intel CPUs to disable/enable per-core turbo boost. In linux, there are msr-tools package which allow root to read/write to MSR registers. There are two posts about Turbo Boost disabling/enabling in Linux:

https://askubuntu.com/questions/619875/disabling-intel-turbo-boost-in-ubuntu在 ubuntu 中禁用 Intel Turbo Boost",Maythux 于 2015 年回答

https://askubuntu.com/questions/619875/disabling-intel-turbo-boost-in-ubuntu "Disabling Intel Turbo Boost in ubuntu", answer by Maythux from 2015

http://luisjdominguezp.tumblr.com/post/19610447111/disabling-turbo-boost-in-linux在 Linux 中禁用 Turbo Boost,Luis J. Dominguez P,2012-2013;Sandy Bridge - 0x1a0 寄存器的第 38 位."

http://luisjdominguezp.tumblr.com/post/19610447111/disabling-turbo-boost-in-linux Disabling Turbo Boost in Linux, Luis J. Dominguez P, 2012-2013; Sandy Bridge - "38th bit of the 0x1a0 register."

http:///notepad2.blogspot.com/2014/11/a-script-to-turn-off-intel-cpu-turbo.html

OSX 也有 kext 来做同样的事情:禁用 Turbo Boost on酷睿 i7 Mac?

And there is kext for OSX to do the same: Disable Turbo Boost on Core i7 Mac?

这篇关于如何暂时关闭 Turbo Boost?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆