Home  >  Article  >  Operation and Maintenance  >  How to check linux cpu information

How to check linux cpu information

(*-*)浩
(*-*)浩Original
2019-12-05 09:25:454917browse

How to check linux cpu information

#How to check cpu information when using Linux system? Let me tell you how to check cpu information under Linux.

View CPU details on the Linux server: (Recommended learning: linux tutorial)

cat /proc/cpuinfo

Output results:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 62
model name      : Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
stepping        : 4
microcode       : 0x428
cpu MHz         : 1200.062
cache size      : 20480 KB
physical id     : 0
siblings        : 16
core id         : 0
cpu cores       : 8
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 dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms xsaveopt
bogomips        : 5200.34
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

#cat /proc/cpuinfo | grep "physical id" | uniq | wc -l to view the total number of CPUs on the machine

[root@liuli ~]# cat /proc/cpuinfo | grep "physical id" |  uniq | wc -l
1  #这个是一个cpu
[root@liuli ~]#

The above is the detailed content of How to check linux cpu information. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn