View of CPU information under Linux system

Source: Internet
Author: User

In the Linux system, the software and hardware information of proc file system display system is provided.

If you want to know the provider of the CPU and related configuration information in the system, you can get it through the /proc/cpuinfo file.

Unlike the/proc/cpuinfo files generated by CPUs based on different instruction sets (ISA), the/proc/cpuinfo file based on the X86 instruction set (most of which is the instruction set) contains the following content:

Processor//the number of the logical processing cores in the system. For multicore processors It can be physical cores, or virtual logical cores using Hyper-Threading Technologyvendor_id//CPU ManufacturersCPU Family//CPU Product Family CodeModel//which generation of CPUs belong to the familyModel name//CPU belongs to the name and its number, the nominal frequencyStepping//CPU belongs to the production update versionCPU MHz//CPU actual frequency of useCache size//CPU Level Two cache sizePhysicalID               //the label of a single CPUSiblings//logical physical cores of a single CPUCoreID                   //The number of the current physical core in its CPU, which is not necessarily contiguousCPU Cores//the physical cores of the CPU at which the logical core is locatedApicid//to distinguish the number of different logical cores, this number of each logical core in the system must be different, this number is not necessarily continuousFpu//whether to have a floating point unit (floating)Fpu_exception//whether floating point calculation exceptions are supportedCPUID level//The value in the EAX register before the CPUID instruction is executed, depending on the value of the CPUID instruction will return different contentWp//Indicates whether the current CPU supports write protection of the user space in the kernel state (write Protection)Flags//features currently supported by the CPUBogomips//CPU Speed (Million instructions Per Second) that is roughly measured when the system kernel is bootedClflush size//size units For each refresh of the cacheCache_alignment//Cache address Alignment unitsAddress sizes//number of accessible address space bitsPower Management//for energy management support, there are several optional support features:

Where the CPU information in the flags of the meaning:

Fpu:onboard (x87) floating point unitvme:virtual Mode extensionde:debugging extensionspse:page Size EXTENSIONSTSC: Time Stamp Counter:support forRDTSC and WRTSC Instructionsmsr:model-specific registerspae:physical Address extensions:ability to access 64GB of memory; 4GB can is accessed at a 
     Timethoughmce:machine Check Architecturecx8:cmpxchg8 instructionapic:onboard advanced Programmable Interrupt controll Ersep:sysenter/sy***it instructions; Sysenter is used forJumps to kernel memory during system calls, and Sy***it are used forJumps:back to the user codemtrr:memory Type Range registerspge:page Global enablemca:machine Check architecturecm Ov:cmov instructionpat:page Attribute Tablepse36: $-bit Page Size extensions:allows to map4MB pages into the first 64GB RAM, used with PSE.pn:Processor Serial-number; Only available on Pentium3Clflush:clflush instructiondtes:debug Trace storeacpi:acpi via Msrmmx:multimedia Extensionfxsr:fxsave and FXSTOR Instructionssse:streaming SIMD Extensions. Single instruction multiple data. Lets DoA bunch of the same operation on different pieces of input:incha single clock tick.sse2:Streaming SIMD Extensions-2. More than the Same.selfsnoop:CPU self snoopacc:automatic Clock controlia64:ia- -processor Itanium.ht:HyperThreading. Introduces an imaginary second processor that doesn't do much but lets you run threads in the same process a bit quicker.nx:no Execute bit. Prevents arbitrary code running via buffer Overflows.pni:Prescott New instructions aka. Sse3vmx:intel Vanderpool hardware Virtualization TECHNOLOGYSVM:AMD"Pacifica"hardware virtualization TECHNOLOGYLM:"Long Mode," whichmeans the chip supports the AMD64 instruction Settm:"Thermal Monitor"Thermal throttling with IDLE instructions. Usually hardware controlledinchresponse to CPU TEMPERATURE.TM2:"Thermal Monitor 2″decrease speed by reducing Multipler and VCore.Est:"Enhanced SpeedStep"

Based on the above, we can easily know the current system about the physical number of CPUs, the number of CPU cores, the CPU is enabled Hyper-threading and other information.

The information we often need to know is as follows:

[[Email protected]5201351~]#Cat/proc/cpuinfo |grep "Physical ID"|Sort|Uniq|WC-L//number of physical CPUs[[Email protected]5201351~]#Cat/proc/cpuinfo |grep "CPU Cores"|Uniq                //physical cores of the CPU[[Email protected]5201351~]#Cat/proc/cpuinfo |grep "Processor"|WC-L//logical number of CPUs, number of logical cores starting from number 0 (using top press 1 can also be viewed)

If the number of CPUs cores and the number of siblings are the same, hyper-threading is not enabled, otherwise Hyper-threading is enabled.

As a result, because the number of CPUs cores and siblings is inconsistent, you can see that this CPU uses Hyper-Threading technology.

Hyper-Threading technology is also proposed by Intel, which refers to the CPU on the basis of a dual core for each of its two threads of computing and processing capacity,

in particular, it allows you to reduce the waiting time when multitasking is running. For A simple analogy, if your CPU's computing power is equivalent to just two lanes

Traffic flow in the time will cause the phenomenon of congestion, hyper-Threading technology at this point for you to increase the virtual two channels, equivalent to four lanes, so that at least

slow down the traffic jam, and in general, it is guaranteed to be unimpeded, but it does not increase power by overclocking.

View of CPU information under Linux system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.