Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.
Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/43935535
(1), view CPU Information
[Email protected] ~]# Cat/proc/cpuinfo
-- View CPU Information
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 syscal L 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, bits virtual
Power Management:
(2), view CPU Brief information
[Email protected] ~]# cat/proc/cpuinfo |grep name |cut-f2-d: |uniq–c
-- View CPU Brief information
1 Intel (R) Core (TM) i5-3320m CPU @ 2.60GHz
(3), view the number of physical CPUs
[[email protected] ~]# grep ' physical id '/proc/cpuinfo | Sort-u
1
-- look at the physics. CPU number is 1
(4), view the number of cores
[[email protected] ~]# grep ' core ID '/proc/cpuinfo | Sort-u | Wc-l
6
-- View CPU The core number is 6
(5), view the number of threads
[[email protected] ~]# grep ' processor '/proc/cpuinfo | Sort-u | Wc-l
12
-- View CPU the number of bus threads is A ( 6 a core)
Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the following sources, otherwise, the legal responsibility to pursue copyright.
Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/43935535
Linux_ View System CPU count, number of cores, number of threads