1、查看cpu信息
[root@xckydb ~]# cat /proc/cpuinfo
--查看cpu信息
processor: 0
vendor_id: GenuineIntel
cpu family: 6
model: 58
model name : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
stepping: 9
cpu MHz: 2566.490
cache size : 6144 KB
fpu : yes
fpu_exception : yes
cpuid level : 5
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 syscall nx rdtscp lm constant_tsc up pni monitor ssse3 lahf_lm
bogomips : 5132.98
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
2、查看cpu简要信息
[root@xckydb ~]# cat /proc/cpuinfo |grep name |cut -f2 -d: |uniq –c
--查看cpu简要信息
1 Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz
3、查看物理cpu个数
[root@xckydb ~]# grep 'physical id' /proc/cpuinfo | sort -u
1
--查看到物理cpu个数为1
4、查看核心数量
[root@xckydb ~]# grep 'core id' /proc/cpuinfo | sort -u | wc -l
6
--查看CPU的核心数为6
5、查看线程数
[root@xckydb ~]# grep 'processor' /proc/cpuinfo | sort -u | wc -l
12
--查看cpu总线程数为12(6个核心)