4,039 views
この記事は最終更新から 2791日 が経過しています。
CentOSでCPU温度を見てみる。
(1) lm_sensorsをインストールする。
[user@]$ su
[root@]# yum -y install lm_sensors
(2) センサーを検出する。
インストール直後、sensors コマンドを実行しても何も情報が得られない。
[root@]# sensors
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
センサーを検出するために sensors-detect コマンドを実行する。
途中で何度か質問されるので YES と入力する。
[root@x5570 user]# sensors-detect
# sensors-detect revision 1.1
# System: Dell Inc. Precision WorkStation T5500
# Board: Dell Inc. 0CRH6C
This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.
Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): YES
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 11h thermal sensors... No
Intel digital thermal sensor... Success!
(driver `coretemp')
Intel AMB FB-DIMM thermal sensor... No
VIA C7 thermal and voltage sensors... No
Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): YES
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'... No
Trying family `SMSC'... Yes
Found `SMSC SCH5504-NS Super IO'
(no hardware monitoring capabilities)
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No
Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): YES
Probing for `IPMI BMC KCS' at 0xca0... No
Probing for `IPMI BMC SMIC' at 0xca8... No
Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): YES
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No
Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): YES
Using driver `i2c-i801' for device 0000:00:1f.3: Intel ICH10
Module i2c-dev loaded successfully.
Next adapter: SMBus I801 adapter at ece0 (i2c-0)
Do you want to scan it? (YES/no/selectively): YES
Next adapter: NVIDIA i2c adapter 0 at 3:00.0 (i2c-1)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Next adapter: NVIDIA i2c adapter 2 at 3:00.0 (i2c-2)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Next adapter: NVIDIA i2c adapter 6 at 3:00.0 (i2c-3)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Next adapter: NVIDIA i2c adapter 7 at 3:00.0 (i2c-4)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Next adapter: NVIDIA i2c adapter 8 at 3:00.0 (i2c-5)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Next adapter: NVIDIA i2c adapter 11 at 3:00.0 (i2c-6)
Do you want to scan it? (YES/no/selectively): YES
Adapter cannot be probed, skipping.
Now follows a summary of the probes I have just done.
Just press ENTER to continue:
Driver `coretemp':
* Chip `Intel digital thermal sensor' (confidence: 9)
Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): YES
Starting lm_sensors: loading module coretemp [ OK ]
Unloading i2c-dev... OK
(3) CPU温度を見てみる
sensors コマンドでハードウェアの状態をモニタしてみる。
[root@]# sensors
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +42.0°C (high = +87.0°C, crit = +103.0°C)
Core 1: +40.0°C (high = +87.0°C, crit = +103.0°C)
Core 2: +43.0°C (high = +87.0°C, crit = +103.0°C)
Core 3: +40.0°C (high = +87.0°C, crit = +103.0°C)
coretemp-isa-0004
Adapter: ISA adapter
Core 0: +50.0°C (high = +87.0°C, crit = +103.0°C)
Core 1: +45.0°C (high = +87.0°C, crit = +103.0°C)
Core 2: +51.0°C (high = +87.0°C, crit = +103.0°C)
Core 3: +46.0°C (high = +87.0°C, crit = +103.0°C)