查看linux服務器CPU詳細情況

 linux服務器的硬件信息放在/proc下,cat /proc/cpuinfo可以查看到CPU的詳細信息。

 

[fengzhige@33 ~]$ cat /proc/cpuinfo |less

processor       : 0  ##CPU超線程數

vendor_id       : GenuineIntel   ##CPU生產廠商

cpu family      : 6

model           : 45

model name      : Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz

stepping        : 7

cpu MHz         : 2300.154  ##CPU主頻

cache size      : 15360 KB  ##CPU緩存

physical id     : 0     ##CPU物理ID號

siblings        : 12

core id         : 0    ##CPU核心ID號

cpu cores       : 6    ##CPU核心個數

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 mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid

bogomips        : 4600.30

clflush size    : 64

cache_alignment : 64

address sizes   : 46 bits physical, 48 bits virtual

 

  1. 查看物理CPU個數:
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'physical id' |sort |uniq |wc -l 

 

  1. 查看CPU核心個數: 
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'cpu cores' |uniq 
  3. cpu cores       : 6 

 

  1. 查看CPU超線程數: 
  2. [fengzhige@33 ~]$ cat /proc/cpuinfo |grep 'processor' 

超線程數=邏輯CPU個數;

理論上,

物理CPU個數x核心個數=邏輯CPU個數

若CPU支持超線程則是

物理CPU個數x核心個數x每個核心支持超線程個數=邏輯CPU個數

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章