直接从CPU读取TEMPERATURE_TARGET [英] Reading TEMPERATURE_TARGET directly from CPU

查看:64
本文介绍了直接从CPU读取TEMPERATURE_TARGET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想直接从我的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 .

说明

来自

  1. 温度控制(T_CONTROL)偏移:MSR(1A2h)TEMPERATURE_TARGET [15:8]
  2. TCC激活温度:MSR(1A2h)TEMPERATURE_TARGET [23:16]

  • 0x00001a2 是寄存器号.
  • 第一个 rdmsr 命令读取字段温度控制偏移量.
  • 第二个 rdmsr 命令读取 TCC激活温度字段.
    • 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屋!

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