[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq
cpu cores : 10
(5)查看CPU的主频
[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq
cpu MHz : 1200。000
cpu MHz : 2300。000
cpu MHz : 1200。000
(6)查看CPU的详细信息
[root@Master ~]# cat /proc/cpuinfo | head -20
processor : 0 //逻辑处理器的ID
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2。30GHz //CPU型号
stepping : 2
microcode : 54
cpu MHz : 1200。000
cache size : 25600 KB
physical id : 0
siblings : 20 //相同物理封装处理器中逻辑处理器数
core id : 0
cpu cores : 10 //相同物理封装处理器中的内核数
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 15
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep 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 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm cqm_llc cqm_occup_llc
(7)查看CPU的相关信息
[root@Master ~]# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 40
On-line CPU(s) list: 0-39
Thread(s) per core: 2
Core(s) per socket: 10
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 63
Model name: Intel(R) Xeon(R) CPU E5-2650 v3 @ 2。30GHz
Stepping: 2
CPU MHz: 1200。000
BogoMIPS: 4594。43
Virtualization: VT-x