当前位置:网站首页>CentOS view the number of CPU cores and cpuinfo analysis

CentOS view the number of CPU cores and cpuinfo analysis

2020-11-09 16:11:00 At Yang

Physics CPU Check the number

$ cat /proc/cpuinfo | grep "cpu cores"| uniq

cpu cores	: 4

$ cat /proc/cpuinfo | grep "cpu cores"| wc -l
4

Logic CPU Check the number

$ cat /proc/cpuinfo| grep "processor"| uniq

processor	: 0
processor	: 1
processor	: 2
processor	: 3
processor	: 4
processor	: 5
processor	: 6
processor	: 7

$ cat /proc/cpuinfo| grep "processor"| wc -l
8

/proc/cpuinfo analysis

$ cat /proc/cpuinfo

Output results

processor	: 0 
vendor_id	: GenuineIntel 
cpu family	: 6 
model		: 85
model name	: Intel(R) Xeon(R) Platinum 8124M CPU @ 3.00GHz
stepping	: 4
microcode	: 0x2006906
cpu MHz		: 3398.864
cache size	: 25344 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 1
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 sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves ida arat pku ospke
bugs		: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit
bogomips	: 6000.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:

explain ( Reference resources https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/4/html/reference_guide/s2-proc-cpuinfo)

  • processor - An identification number of the processor . For example, the machine is a core , Then for 0, It is multi-core , Then for 0,1,2...
  • cpu family - Identify the type of processor . Based on Intel The system of , Put the numbers in “86” To determine the value . This is for identifying old systems ( for example 586、486 or 386) Particularly useful . Because a number of RPM software package , So this value can also help the user determine which packages to install
  • model name - Displays the general name of the processor , Including its project name
  • cpu MHz - Displays the exact speed of the processor in megahertz , To the nearest thousandth
  • cache size - 2 Level memory cache capacity
  • siblings - Hyper threaded machines in the same physics CPU On the same level CPU The number of
  • flags - Define a variety of different qualities about the processor , For example, floating point units (FPU) The existence and treatment of MMX The ability to command

版权声明
本文为[At Yang]所创,转载请带上原文链接,感谢