IT/server

리눅스 cpu 정보 메모리 정보 하드 정보 파악 [기초]

Ne...Pa~~~~~ 2012. 1. 26. 15:18

서버 접속하셔서

cat /proc/cpuinfo

cat /proc/meminfo

fdisk -l

확인하시면 됩니다.

추가 Cpu 조사 할 때 좀더  상세히

 

Cpu 개수와 core 개수가 헷갈리신다면

 

해당 cat /proc/cpuinfo 하시면 physical id 가 나옵니다.

) physical id     : 0  0번이 4 있으면 종류가 1종류

이 값이 1종류 라면 실제 물리적 cpu개수는 1개라는 뜻입니다.

Cpu core 수는

) cpu cores       : 4  요런 형식으로 나오구요 코어는 4개가 되겠조?

즉각 개수 파악 명령어

cat /proc/cpuinfo | grep "physical id" |  uniq -dc | wc -l

 

추가로 간혹~! 좋은 cpu 일때 processor 개수가 실제 core 수랑 맞지 않는 경우도 있습니다.

이 경우는

siblings        : 4 == 동기  cores 4개인데 siblings 값은 8이면 즉 HyperThread 라는 뜻입니다.그게 아니라면

둘다 값이 똑같겟조?

 

요렇게 파악 하시면 됩니다.

 

하드 개수 파악은

fdisk l

으로 파악 하시면 됩니다.! 개수 및 용량이 나오겟조 ^^~


추가

1) Physical ID = Number assigned to each Processor on MotherBoard  

2) Sibling ID =  Number of logical processor provided by each Physical Processor

3) Core ID  = Number of core in the Physical Processor

Note: If core Id is equal to sibling ID it means there is no Hyperthreading
            
If sibling ID is double that of core ID it supports Hyperthreading

Command:  cat /proc/cpuinfo

Case 1:

Single-processor, Single-core, HT
 
processor       0 1
physical id     0 0
siblings        2 2
core id         0 0
cpu cores       1 1

The cpu cores value is "1", so this system uses single-core processors. 
The cpu cores value does not match the siblings value, so this system has hyperthreading.
There is one physical id listed, so this is a single-processor, single-core system with hyperthreading.

Case 2:

Single-processor, Dual-core, non-HT

processor       0 1
physical id     0 0
siblings        2 2
core id         0 1
cpu cores       2 2

The cpu cores value is "2" so the system uses dual-core processors.
The cpu cores value matches the siblings value, so this system does not have hyperthreading. 
There is one physical id listed, so this is a single-processor, dual-core system without hyperthreading.

Case 3:

Dual-processor, Dual-core, HT

processor       0 1 2 3 4 5 6 7
physical id     0 0 0 0 1 1 1 1
siblings        4 4 4 4 4 4 4 4
core id         0 0 1 1 0 0 1 1
cpu cores       2 2 2 2 2 2 2 2

The cpu cores value is "2" so this system uses dual-core processors.
The cpu cores value does not match the siblings value, so this system has hyperthreading. 
There are two physical IDs listed, so this is a dual-processor, dual-core machine with hyperthreading

Case 4:

Dual-processor, Quad-core, non-HT

processor       0 1 2 3 4 5 6 7
physical id     0 1 0 1 0 1 0 1
siblings        4 4 4 4 4 4 4 4
core id         0 0 1 1 2 2 3 3
cpu cores       4 4 4 4 4 4 4 4

The cpu cores value is "4", so the system uses quad-core processors. 
The cpu cores value matches the siblings value, so this system does not have hyperthreading. 
There are two physical IDs listed, so this is a dual-processor, quad-core system without hyperthreading

Case 5:

Dual-processor, Quad-core, HT

processor       0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15
physical id     0  0  0  0  0  0  0  0  1  1  1  1  1  1  1  1
siblings        8  8  8  8  8  8  8  8  8  8  8  8  8  8  8  8
core id         0  0  1  1  2  2  3  3  0  0  1  1  2  2  3  3
cpu cores       4  4  4  4  4  4  4  4  4  4  4  4  4  4  4  4

The cpu cores value is "4", so the system uses quad-core processors. 
The cpu cores value does not match the siblings value, so this system has hyperthreading. 
There are two physical IDs listed, so this is a dual-processor, quad-core system with hyperthreading.