User Tools

Site Tools


system_administration

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
system_administration [2021/03/17 13:09] – external edit 127.0.0.1system_administration [2021/04/07 20:21] – [CPU & core] hyjeong
Line 3: Line 3:
 ===== 하드웨어 정보 ===== ===== 하드웨어 정보 =====
 ==== CPU & core ==== ==== CPU & core ====
-  $ cat /proc/cpuinfo (일반 정보) +  $ cat /proc/cpuinfo #일반 정보 
-  $ grep "physical id" /proc/cpuinfo | sort -u | wc -l (물리적인 CPU 수 확인) +  $ grep "physical id" /proc/cpuinfo | sort -u | wc -l #물리적인 CPU 수 확인 
-  $ grep "cpu cores" /proc/cpuinfo | tail -1 (CPU 당 물리적 코어 수) +  $ grep "cpu cores" /proc/cpuinfo | tail -1 #CPU 당 물리적 코어 수 
-  $ grep -c processor /proc/cpuinfo (CPU 코어 전체 수 확인)+  $ grep -c processor /proc/cpuinfo #CPU 코어 전체 수 확인 
 +  $ lscpu #display information about the CPU architecture
  
 맨 마지막 명령으로 출력되는 수치는 가상 코어 수이다. /proc/cpuinfo에서는 하이퍼스레딩 기술에 의해 물리적 코어의 두 배에 해당하는 가상적 코어의 수를 출력한다. 따라서 (두번째 수치)x(세번째 수치)를 하면 (물리적 코어의 수)보다 두 배 큰 값이 나온다. 맨 마지막 명령으로 출력되는 수치는 가상 코어 수이다. /proc/cpuinfo에서는 하이퍼스레딩 기술에 의해 물리적 코어의 두 배에 해당하는 가상적 코어의 수를 출력한다. 따라서 (두번째 수치)x(세번째 수치)를 하면 (물리적 코어의 수)보다 두 배 큰 값이 나온다.
system_administration.txt · Last modified: 2024/02/23 15:02 by hyjeong