Linux
linux CPU 정보 및 사용량 확인 명령어
Bonita SY
2019. 9. 27. 19:39
728x90
CPU 정보 확인
$ cat /proc/cpuinfo
물리 CPU 개수 확인
$ grep "physical id" /proc/cpuinfo | sort -u | wc -l
논리 코어 개수 확인
$ grep -c processor /proc/cpuinfo
CPU 당 코어 개수 확인
$ grep "cpu cores" /proc/cpuinfo | tail -1
process 별 CPU 사용량 확인
$ top
CPU 코어별 사용량 확인
$ top
1
thread별 CPU 사용량 확인
$ top -H
출처
http://sarghis.com/blog/1136/
http://blog.naver.com/PostView.nhn?blogId=anbv3&logNo=130116624489
728x90