제2외국어/Linux

[Ubuntu]CPU Core 수 확인하기.

윈플. 2014. 12. 17. 13:49

make 컴파일을 할 때 -j 옵션을 통해 속도를 향상 시키는 방법이 있습니다.

example) make -j [CPU Core 수 * 2] 
(CPU Core가 8일 경우 16)

CPU Core 수를 확인하는 방법

1. nproc

2. lscpu


3. less /proc/cpuinfo

: lscpu 명령어보다 더 자세히 나옮니다.

끝.


Google Search : Ubuntu CPU Core count
참고 : http://www.cyberciti.biz/faq/linux-get-number-of-cpus-core-command/