linux系统查看cpu|linux系统下cpu温度查看方法

时间:2019-10-29  来源:linux  阅读:

1.先确定你系统是不是64位
uname -p
x86_64
如果是x84_64,那么恭喜你,你可以继续看下去了,如果是i686和i386的,那不好意思,请你去重装系统吧.

2.安装
yum install lm_sensors -y

#配置
sh -c "yes|sensors-detect"

#加载模块
modprobe i2c-dev
modprobe coretemp (如果是64位系统,这步就直接通过了,如果是32位系统,这步是我弄死都过不去的一道坎)

#查看CPU温度

1、使用命令sensors (管理员用户,主节点)
[root@console ~]# sensors
w83627hf-isa-0a00
Adapter: ISA adapter
VCore 1:   +1.15 V  (min =  +0.00 V, max =  +0.00 V)       ALARM 
VCore 2:   +1.15 V  (min =  +0.00 V, max =  +0.00 V)       ALARM 
+3.3V:     +3.22 V  (min =  +3.14 V, max =  +3.47 V)             
+5V:       +5.11 V  (min =  +4.76 V, max =  +5.24 V)             
+12V:      +5.78 V  (min = +10.82 V, max = +13.19 V)       ALARM 
-12V:      -5.45 V  (min = -13.18 V, max = -10.80 V)       ALARM 
-5V:       +2.94 V  (min =  -5.25 V, max =  -4.75 V)       ALARM 
V5SB:      +5.67 V  (min =  +4.76 V, max =  +5.24 V)       ALARM 
VBat:      +3.34 V  (min =  +2.40 V, max =  +3.60 V)             
fan1:     5273 RPM  (min =    0 RPM, div = 8)                    
fan2:     5818 RPM  (min =    0 RPM, div = 8)                    
fan3:     5818 RPM  (min =  883 RPM, div = 8)                    
temp1:       +64°C  (high =    -1°C, hyst =    -1°C)   sensor = thermistor   ALARM  
temp2:      -3.0°C  (high =   +80°C, hyst =   +75°C)   sensor = diode          
temp3:      -3.0°C  (high =   +80°C, hyst =   +75°C)   sensor = diode          
vid:      +0.000 V  (VRM Version 8.2)
alarms:   Chassis intrusion detection                      ALARM
beep_enable:
          Sound alarm enabled
 
2、gpu
GPU 0000:82:00.0
    Product Name                : GeForce GTX 460
    Display Mode                : N/A
    Persistence Mode            : Disabled
    Driver Model
        Current                 : N/A
        Pending                 : N/A
    Serial Number               : N/A
    GPU UUID                    : N/A
    VBIOS Version               : 70.04.13.00.00
    Inforom Version
        OEM Object              : N/A
        ECC Object              : N/A
        Power Management Object : N/A
    PCI
        Bus                     : 0x82
        Device                  : 0x00
        Domain                  : 0x0000
        Device Id               : 0x0E2210DE
        Bus Id                  : 0000:82:00.0
        Sub System Id           : 0x23221462
        GPU Link Info
            PCIe Generation
                Max             : 2
                Current         : 1
            Link Width
                Max             : 16x
                Current         : 16x
    Fan Speed                   : 52 %
    Performance State           : N/A
    Memory Usage
        Total                   : 1023 MB
        Used                    : 3 MB
        Free                    : 1019 MB
    Compute Mode                : Default
    Utilization
        Gpu                     : N/A
        Memory                  : N/A
    Ecc Mode
        Current                 : N/A
        Pending                 : N/A
    ECC Errors
        Volatile
            Single Bit
                Device Memory   : N/A
                Register File   : N/A
                L1 Cache        : N/A
                L2 Cache        : N/A
                Total           : N/A
            Double Bit
                Device Memory   : N/A
                Register File   : N/A
                L1 Cache        : N/A
                L2 Cache        : N/A
                Total           : N/A
        Aggregate
            Single Bit
                Device Memory   : N/A
                Register File   : N/A
                L1 Cache        : N/A
                L2 Cache        : N/A
                Total           : N/A
            Double Bit
                Device Memory   : N/A
                Register File   : N/A
                L1 Cache        : N/A
                L2 Cache        : N/A
                Total           : N/A
    Temperature
        Gpu                     : 41 C
    Power Readings
        Power Management        : N/A
        Power Draw              : N/A
        Power Limit             : N/A
    Clocks
        Graphics                : N/A
        SM                      : N/A
        Memory                  : N/A
    Max Clocks
        Graphics                : N/A
        SM                      : N/A
        Memory                  : N/A
    Compute Processes           : Not Supported
可以看到我cpu的温度有点高,笔记本将就了.

ps:
其他查看cpu温度命令:
cat /proc/acpi/thermal_zone/THRM/temperature (这条我在我机器上是可以用的)

这两条没有测试过:

cat /sys/bus/acpi/devices/LNXTHERM\:00/thermal_zone/temp
cat /proc/acpi/thermal_zone/THM0/temperature

补充一篇文章:

监控cpu温度?显卡温度和硬盘温度

1.安装applet

luther@gliethttp:~$ apt-get install lm-sensors sensors-applet // 之后添加"Hardware Sensors Monitor到面板上,如果没有该applet,那么重启一下电脑就可以了.
luther@gliethttp:~$ sudo sensors-detect // 一路回车就可以了
效果图:


2.安装硬件检测软件

luther@gliethttp:~$ sudo apt-get install hddtemp
luther@gliethttp:~$ sudo hddtemp /dev/sda
/dev/sda: ST3160815AS: 36°C

linux系统查看cpu|linux系统下cpu温度查看方法

http://m.bbyears.com/caozuoxitong/76017.html

推荐访问:内存 系统怎么看cpu温度
相关阅读 猜你喜欢
本类排行 本类最新