如何临时关闭Turbo Boost?

时间:2010-04-29 07:47:21

标签: performance testing

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

如果使用的内核很少,最新的处理器可以提高频率,因此有时我们的测试会查看错误的例行程序。有没有办法暂时关闭Turbo Boost?

3 个答案:

答案 0 :(得分:3)

我不知道直接启用/禁用turbo boost的操作码,但显然这是可能的,因为TMonitor - 这是一个Windows应用程序 - 可以在运行时执行。

答案 1 :(得分:2)

Intel CPU中有MSR寄存器(https://en.wikipedia.org/wiki/Model-specific_register)来禁用/启用每核turbo boost。在linux中,有msr-tools包允许root读/写MSR寄存器。在Linux中有两篇关于Turbo Boost禁用/启用的帖子:

https://askubuntu.com/questions/619875/disabling-intel-turbo-boost-in-ubuntu“在ubuntu中禁用Intel Turbo Boost”,Maythux从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://notepad2.blogspot.com/2014/11/a-script-to-turn-off-intel-cpu-turbo.html

OSX也有kext做同样的事情:Disable Turbo Boost on Core i7 Mac?

答案 2 :(得分:-1)

在Windows操作系统中,您可以添加以下注册表项。

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\be337238-0d82-4146-a960-4f3749d470c7]
"Attributes"=dword:00000002

然后在高级电源设置中,您将获得新的选项,该选项可让您关闭涡轮增压。 enter image description here