본문 바로가기

CentOS

CPU Core 수 확인

# Command


$ grep "physical id" /proc/cpuinfo | sort -u | wc -l


or


$ su - 

$ which dmidecode

/usr/sbin/dmidecode 


# Shell Script


$ ps -ef | grep -v "grep" | grep "java" | awk '{print $2}' | while read PID; do echo "$PID" && cat /proc/$PID/status |egrep "VmRSS" ; done


'CentOS' 카테고리의 다른 글

maven 설치 (CentOS 6.7)  (0) 2016.01.27
nslookup 설치하기  (0) 2016.01.26
VMware CentOS 에서 resolv.conf 초기화 문제  (0) 2015.12.07
Daum yum repository  (0) 2015.12.07
리눅스 Static Routing 추가  (0) 2015.12.07