直接从CPU读取TEMPERATURE_TARGET [英] Reading TEMPERATURE_TARGET directly from CPU
问题描述
我想直接从我的Intel i7-5930k中的TEMPERATURE_TARGET寄存器中读取激活TCC的最低温度.插座散热指南(英特尔(http://www.intel.com/content/www/us/en/processors/core/core-i7-lga2011-3-tmsdg.html )表示TEMPERATURE_TARGET中有一个软件可读字段登记.是否可以使用命令行工具或编写一些代码来读取此字段以获取Linux中的绝对处理器温度?
I would like to directly read the minimum temperate at which the TCC will be activated from the TEMPERATURE_TARGET register in my Intel i7-5930k. The Socket Thermal Guide (http://www.intel.com/content/www/us/en/processors/core/core-i7-lga2011-3-tmsdg.html) from intel says there is a software readable field in the TEMPERATURE_TARGET register. Is there a way to read this field to get the absolute processor Temperature in Linux using either a command line tool or a writing some code?
推荐答案
这取决于操作系统.
在linux上,您可以使用 rdmsr
读取它(读取模型特定寄存器)
On linux, you can read it using rdmsr
(read model
specific registers)
在ubuntu上,您可以尝试以下操作:
On ubuntu, you could try something like the following:
sudo apt-get install msr-tools
sudo modprobe msr
sudo rdmsr --bitfield 15:8 -c 0x00001a2
sudo rdmsr --bitfield 23:16 -c 0x00001a2
返回我计算机上的 0x12
和 0x69
.
说明
0x00001a2
is the register number.- The first
rdmsr
command reads the field Temperature Control Offset. - The second
rdmsr
command reads the field TCC Activation Temperature.
这篇关于直接从CPU读取TEMPERATURE_TARGET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!