본문 바로가기
OS/linux

리눅스 cpu 개수 확인

by Knowledge Store In Hyunsoft 2020. 12. 17.

 

 

  • cpu 정보 확인
cat /proc/cpuinfo

 

 

  • 결과
19:49 root:/root> cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz                 : 1992.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id                 : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 c
lflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
 bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtp
r pdcm dca sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority dtherm
bogomips        : 5652.25
clflush size    : 64
cache_alignment         : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz                 : 1992.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id                 : 1
cpu cores       : 4
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 c
lflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
 bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtp
r pdcm dca sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority dtherm
bogomips        : 5652.25
clflush size    : 64
cache_alignment         : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz                 : 1992.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id                 : 2
cpu cores       : 4
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 c
lflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
 bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtp
r pdcm dca sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority dtherm
bogomips        : 5652.25
clflush size    : 64
cache_alignment         : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz
stepping        : 10
microcode       : 0xa0b
cpu MHz                 : 1992.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id                 : 3
cpu cores       : 4
apicid          : 3
initial apicid  : 3
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 c
lflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs
 bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtp
r pdcm dca sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority dtherm
bogomips        : 5652.25
clflush size    : 64
cache_alignment         : 64
address sizes   : 38 bits physical, 48 bits virtual
power management:

 

 

  • 리눅스 cpu 개수 확인 ( 하이퍼 쓰레딩이 있는 경우 실제 코어 의 2배로  표시됨)
grep -c process /proc/cpuinfo

4

 

 

728x90

댓글