얕고넓은지식/linux

리눅스 CPU 온도체크 기록하기

쪽마 2021. 12. 13. 23:51

CPU 정보 확인 ( CPU information )
# cat /proc/cpuinfo

CPU 코어 전체 개수 확인( CPU Core Total number )
# grep -c processor /proc/cpuinfo

물리 CPU 수 확인( physical CPU number )
# grep "physical id" /proc/cpuinfo | sort -u | wc -l

CPU당 물리 코어 수 확인 (CPU per physical Core number )
# grep "cpu cores" /proc/cpuinfo | tail -1

 

How to get CPU temperature

install
[root@localhost ~]# yum install -y lm_sensors

config
[root@localhost ~]# sensors-detect

 

온도확인
[root@localhost ~]# sensors

 

실시간온도확인

[root@localhost ~]# watch sensors\

 

 

[root@localhost ~]# yum install -y lm_sensors
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                       | 6.8 kB  00:00:00
 * base: mirror.navercorp.com
 * epel: mirrors.nipa.cloud
 * extras: mirror.navercorp.com
 * remi-safe: ftp.riken.jp
 * updates: mirror.navercorp.com
base                                                       | 3.6 kB  00:00:00
epel                                                       | 4.7 kB  00:00:00
extras                                                     | 2.9 kB  00:00:00
mysql-connectors-community                                 | 2.6 kB  00:00:00
mysql-tools-community                                      | 2.6 kB  00:00:00
mysql57-community                                          | 2.6 kB  00:00:00
remi-safe                                                  | 3.0 kB  00:00:00
updates                                                    | 2.9 kB  00:00:00
(1/3): epel/x86_64/updateinfo                              | 1.0 MB  00:00:01
(2/3): remi-safe/primary_db                                | 2.1 MB  00:00:01
(3/3): epel/x86_64/primary_db                              | 7.0 MB  00:00:01
Resolving Dependencies
--> Running transaction check
---> Package lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================
 Package         Arch        Version                              Repository
                                                                             Size
==================================================================================
Installing:
 lm_sensors      x86_64      3.4.0-8.20160601gitf9185e5.el7       base      141 k

Transaction Summary
==================================================================================
Install  1 Package

Total download size: 141 k
Installed size: 425 k
Downloading packages:
lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64.rpm       | 141 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64               1/1
  Verifying  : lm_sensors-3.4.0-8.20160601gitf9185e5.el7.x86_64               1/1

Installed:
  lm_sensors.x86_64 0:3.4.0-8.20160601gitf9185e5.el7

Complete!

 

반응형