In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the method of checking cpu models by linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
You can view the cpu model in linux by viewing the model name information of the / proc/cpuinfo file, or directly using the command cat / proc/cpuinfo | grep 'model name' | uniq.
In the Linux system, the software and hardware information of the proc file system display system is provided. If you want to know the CPU provider and related configuration information on the system, you can get it through the / proc/cpuinfo file.
Use the following command to read the / proc/cpuinfo file and view the information for cpu
Cat / proc/cpuinfo
Output:
Processor: 0vendor_id: GenuineIntelcpu family: 6model: 26model name: Intel (R) Xeon (R) CPU E5520 @ 2.27GHzstepping: 5cpu MHz: 1600.000cache size: 8192 KBphysical id: 0siblings: 8core id: 0cpu cores: 4apicid: 0fpu: yesfpu_exception: yescpuid level: 11wp: yesflags : 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 syscall nx rdtscp lm constant_tsc ida nonstop_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr popcnt lahf_lmbogomips: 4522.12clflush size: 64cache_alignment: 64address sizes: 40 bits physical 48 bits virtualpower management:
If you look at the output of the "model name" line, you can view the name, model, frequency and other information of the cpu.
Related instructions:
● processor: the number of the logical processing core in the system. For a single-core processor, it can be considered its CPU number, and for a multi-core processor it can be a physical core or a virtual logical core using hyperthreading technology; its count starts at 0.
● vendor_id:CPU manufacturer
● cpu family:CPU product series code
The code name of which generation of ● model:CPU belongs to its series
The name, serial number and nominal frequency of ● model name:CPU
● stepping:CPU belongs to the production of updated version
The main frequency of actual use of ● cpu MHz:CPU
● cache size:CPU secondary cache size
● physical id: the label of a single CPU
● siblings: the number of logical physical cores in a single CPU
● core id: the number of the current physical core in its CPU, which is not necessarily consecutive
● cpu cores: the number of physical cores of the CPU in which the logical core is located
● apicid: the number used to distinguish different logical cores. The number of each logical core in the system must be different, and the number may not be continuous.
● fpu: whether there is a floating point unit (Floating Point Unit)
● fpu_exception: whether floating-point calculation exceptions are supported
● cpuid level: before executing the cpuid instruction, the values in the eax register will return different contents depending on the value of the cpuid instruction.
● flags: features currently supported by CPU
● bogomips: a rough estimate of the CPU speed (Million Instructions Per Second) at kernel startup
● clflush size: the size unit of each cache refresh
● cache_alignment: cache address alignment unit
● address sizes: the number of bits in the accessible address space
If you don't want to get all the information about cpu, but just want to view the cpu model, you can use the following command:
Cat / proc/cpuinfo | grep 'model name' | uniq
Output:
Model name: Intel (R) Xeon (R) CPU E5520 @ 2.27GHz this is the way for linux to check cpu models. I hope the above content can be of some help and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.