don't stop believing

CentOS CPU Core 수 확인 본문

Linux/CentOS

CentOS CPU Core 수 확인

Tongchun 2017. 10. 16. 15:41

간혹 부하 테스트를 할때 부하를 발생하는 Agent 서버의 CPU Core를 확인해야 할 때까 있다.

CentOS에서 CPU Core 확인하는 명령어를 알아봅시다.


dmidecode를 사용할 수 있으며 아래에서 설치명령을 확인할 수 있다.

[CentOS dmidecode 설치]


CPU 코어 전체 개수 확인

1
2
$ grep -c processor /proc/cpuinfo
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


물리 CPU 개수 확인

1
2
$ grep ^processor /proc/cpuinfo | wc -l
4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
$ sudo dmidecode -t processor | grep 'Socket Designation'
Socket Designation: CPU 1
Socket Designation: CPU 2
Socket Designation: CPU 3
Socket Designation: CPU 4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


CPU당 물리 코어 수 확인

1
2
3
4
5
$ grep 'cpu cores' /proc/cpuinfo | tail -l
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


'Linux > CentOS' 카테고리의 다른 글

CentOS 7 GUI 설치 (GNOME Desktop)  (3) 2019.01.03
CentOS TimeZone 변경하기  (0) 2018.11.30
일반 user 계정 suder 추가하기  (0) 2018.11.23
CentOS 설치 후 yum 이 안될 때  (4) 2018.09.21
CentOS dmidecode 설치  (0) 2017.10.16