[CentOS7] cpu info & temperature check
0. CPU 정보 확인 ( CPU information )
> cat /proc/cpuinfo
1. CPU 코어 전체 개수 확인( CPU Core Total number )
> grep -c processor /proc/cpuinfo
2. 물리 CPU 수 확인( physical CPU number )
> grep "physical id" /proc/cpuinfo | sort -u | wc -l
3. CPU당 물리 코어 수 확인 (CPU per physical Core number )
> grep "cpu cores" /proc/cpuinfo | tail -1
출처: http://nota.tistory.com/41 [nota's story]
How to get CPU temperature on CentOS 7
# install
$ sudo yum install -y lm_sensors
# config
$ sudo sensors-detect
Usage:
$sensors
coretemp-isa-0000 |