我这里只通过/proc目录查看cpu信息


[root@xiangys proc]# cat /proc/cpuinfo 

processor : 0

vendor_id : GenuineIntel

cpu family : 6

model : 26

model name : Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz

stepping : 5

cpu MHz : 2132.817

cache size : 4096 KB

physical id : 0

siblings : 4

core id : 0

cpu cores : 4

apicid : 0

initial apicid : 0

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm

bogomips : 4265.63

clflush size : 64                                                                                              //cpu是64位的处理器

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:


processor : 1                                                                                                    //逻辑处理器ID

vendor_id : GenuineIntel

cpu family : 6

model : 26

model name : Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz

stepping : 5

cpu MHz : 2132.817                                                                                     //cpu的主频        

cache size : 4096 KB

physical id : 0                                                                                                  //物理cpu的ID 如果都是0表示就1个物理cpu

siblings : 4

core id : 1

cpu cores : 4                                                                                                //cpu的逻辑个数 

apicid : 1

initial apicid : 1

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm

bogomips : 4296.00

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:


processor : 2

vendor_id : GenuineIntel

cpu family : 6

model : 26

model name : Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz

stepping : 5

cpu MHz : 2132.817

cache size : 4096 KB

physical id : 0

siblings : 4

core id : 2

cpu cores : 4

apicid : 2

initial apicid : 2

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm

bogomips : 4290.12

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:


processor : 3

vendor_id : GenuineIntel

cpu family : 6

model : 26

model name : Intel(R) Xeon(R) CPU           E5506  @ 2.13GHz                      //cpu型号

stepping : 5

cpu MHz : 2132.817

cache size : 4096 KB                          

physical id : 0

siblings : 4

core id : 3

cpu cores : 4

apicid : 3

initial apicid : 3

fdiv_bug : no

hlt_bug : no

f00f_bug : no

coma_bug : no

fpu : yes

fpu_exception : yes

cpuid level : 11

wp : yes

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc unfair_spinlock pni ssse3 cx16 sse4_1 sse4_2 popcnt hypervisor lahf_lm

bogomips : 4296.42

clflush size : 64

cache_alignment : 64

address sizes : 40 bits physical, 48 bits virtual

power management:


[root@xiangys proc]#