View Linux CPU Information

Source: Internet
Author: User
Tags amd processors intel pentium

 

 

We can use/proc/cpuinfo to view CPU information. This file contains the data section of each processor on the system. There are six entries in the/proc/cpuinfo description for multi-core and super-thread (HT) technical checks: processor, vendor id, physical id, siblings, core id and cpu cores.

 

(1) processor: including the unique identifier of the logical processor.

 

(2) physical id: including the unique identifier of each physical encapsulation.

 

(3) core id: the unique identifier of each core.

 

(4) siblings: lists the number of logical processors in the same physical encapsulation.

 

(5) cpu cores: contains the number of cores in the same physical encapsulation.

 

(6) If the processor is an Intel processor, the string in the vendor id entry is GenuineIntel.

 

 

 

All logical processors with the same physical id share the same physical outlet. Each physical id represents a unique physical encapsulation. Siblings indicates the number of logical processors on this physical encapsulation. Logical Processors may or may not support hyper-threading (HT) technology. Each core id represents a unique processor kernel. All logical processors with the same core id are located on the same processor kernel. If more than one logical processor has the same core id and physical id, The system supports hyper-threading (HT) technology. If two or more logical processors have the same physical id but the core id is different, it indicates that this is a multi-core processor. The cpu cores entry can also indicate whether multiple kernels are supported.

 

 

 

 

I. Differences between i386 i586 i686

 

They are applicable to intel i386, i586, and i686 compatible instruction sets. Generally, machines with higher grades can accept rpm files of lower grades.

 

I386-almost all X86 platforms, whether it is the old pentum or the new pentum-IV and the K7 system CPU, can work normally, I refers to Intel compatible CPU, as for 386, It is the CPU level.

 

I586-is a 586-level computer, including the first generation of pentum mmx cpu, AMD K5, and K6 system CPU (socket7 pin.

 

I686-pentum 2 after the Intel system CPU and K7 after the CPU level belongs to this 686 level.

You can query your CPU level through the/proc/cpuinfo file.

 

 

 

 

Ii. View CPU Information

 

 

 

We can view CPU information through the/proc/cpuinfo file.

 

 

 

[Root @ qs-wgdb-1 proc] # more/proc/cpuinfo

 

Processor: 0

 

Vendor_id: GenuineIntel

 

Cpu family: 6

 

Model: 44

 

Model name: Intel (R) Xeon (R) CPU E5630 @ 2.53 GHz

 

Stepping: 2

 

Cpu MHz: 2527.071

 

Cache size: 12288 KB

 

Physical id: 1

 

Siblings: 8

 

Core id: 0

 

Cpu cores: 4

 

Apicid: 32

 

Fpu: yes

 

Fpu_exception: yes

 

Cpuid level: 11

 

Wp: yes

 

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dt

 

S acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni

 

Monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm

 

Bogomips: 5054.14

 

Clflush size: 64

 

Cache_alignment: 64

 

Address sizes: 40 bits physical, 48 bits virtual

 

Power management: [8]

 

 

 

Processor: 1

 

Vendor_id: GenuineIntel

 

Cpu family: 6

 

Model: 44

 

Model name: Intel (R) Xeon (R) CPU E5630 @ 2.53 GHz

 

Stepping: 2

 

Cpu MHz: 2527.071

 

Cache size: 12288 KB

 

Physical id: 0

 

Siblings: 8

 

Core id: 0

 

Cpu cores: 4

 

Apicid: 0

 

Fpu: yes

 

Fpu_exception: yes

 

Cpuid level: 11

 

Wp: yes

 

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dt

 

S acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni

 

Monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm

 

Bogomips: 5054.02

 

Clflush size: 64

 

Cache_alignment: 64

 

Address sizes: 40 bits physical, 48 bits virtual

 

Power management: [8]

 

 

 

Processor: 2

 

Vendor_id: GenuineIntel

 

Cpu family: 6

 

Model: 44

 

Model name: Intel (R) Xeon (R) CPU E5630 @ 2.53 GHz

 

Stepping: 2

 

Cpu MHz: 2527.071

 

Cache size: 12288 KB

 

Physical id: 1

 

Siblings: 8

 

Core id: 1

 

Cpu cores: 4

 

Apicid: 34

 

Fpu: yes

 

Fpu_exception: yes

 

Cpuid level: 11

 

Wp: yes

 

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dt

 

S acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni

 

Monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm

 

Bogomips: 5054.04

 

Clflush size: 64

 

Cache_alignment: 64

 

Address sizes: 40 bits physical, 48 bits virtual

 

Power management: [8]

 

 

 

....

 

 

 

Processor: 14

 

Vendor_id: GenuineIntel

 

Cpu family: 6

 

Model: 44

 

Model name: Intel (R) Xeon (R) CPU E5630 @ 2.53 GHz

 

Stepping: 2

 

Cpu MHz: 2527.071

 

Cache size: 12288 KB

 

Physical id: 1

 

Siblings: 8

 

Core id: 10

 

Cpu cores: 4

 

Apicid: 53

 

Fpu: yes

 

Fpu_exception: yes

 

Cpuid level: 11

 

Wp: yes

 

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx limit rdtscp lm limit ida limit arat pni monitor vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm

 

Bogomips: 5054.03

 

Clflush size: 64

 

Cache_alignment: 64

 

Address sizes: 40 bits physical, 48 bits virtual

 

Power management: [8]

 

 

 

Processor: 15

 

Vendor_id: GenuineIntel

 

Cpu family: 6

 

Model: 44

 

Model name: Intel (R) Xeon (R) CPU E5630 @ 2.53 GHz

 

Stepping: 2

 

Cpu MHz: 2527.071

 

Cache size: 12288 KB

 

Physical id: 0

 

Siblings: 8

 

Core id: 10

 

Cpu cores: 4

 

Apicid: 21

 

Fpu: yes

 

Fpu_exception: yes

 

Cpuid level: 11

 

Wp: yes

 

Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx limit rdtscp lm limit ida limit arat pni monitor vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm

 

Bogomips: 5053.98

 

Clflush size: 64

 

Cache_alignment: 64

 

Address sizes: 40 bits physical, 48 bits virtual

 

Power management: [8]

 

 

 

 

Iii. Correlation Analysis

 

 

3.1 view server bits

 

[Root @ qs-wgdb-1 proc] # arch

 

X86_64

 

 

X86_64: 64-bit System

 

X86: 32-bit System

 

 

3.2 check whether the CPU supports 64bit

 

[Root @ qs-wgdb-1 proc] # cat/proc/cpuinfo | grep flags | grep 'lm '| wc-l

 

16

 

 

If the result is greater than 0, 64bit computing is supported. lm indicates long mode, and lm indicates 64bit.

 

 

3.3 logical CPU count:

[Root @ qs-wgdb-1 proc] # cat/proc/cpuinfo | grep 'processor '| wc-l

 

16

 

 

Note: Here is the logical CPU. The processor we see in cpuinfo.

 

 

3.4 physical CPU count:

 

[Root @ qs-wgdb-1 proc] # cat/proc/cpuinfo | grep 'physical id' | sort | uniq | wc-l

 

2

 

 

This refers to the physical CPU, which is the two CPU slots we see on the server.

 

 

3.5 Number of cores in each physical CPU:

[Root @ qs-wgdb-1 proc] # cat/proc/cpuinfo | grep 'cpu cores' | wc-l

 

16

 

 

3.6 is hyper-threading:

 

If two logical CPUs have the same core id, hyper-threading is enabled. The number of logical CPUs (possibly core, threads, or both) in each physical CPU.

 

 

[Root @ qs-wgdb-1 proc] # cat/proc/cpuinfo | grep 'siblings'

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

Siblings: 8

 

 

 

 

Iv. CPU ID

 

 

The cpu id is a single code developed by the CPU manufacturer to identify different types of cpus. The CPU IDs of different manufacturers are also different; for example, "0F24" (Inter processor) and "681H" (AMD processor) can be used to determine the type of CPU Based on these digital codes. This is the cpu id in the general sense.

 

Because the computer uses hexadecimal notation, the cpu id is also expressed in hexadecimal notation. The cpu id of the Inter processor consists of four numbers, for example, "0F24". From left to right, they indicate Type, Family, and Mode) and Stepping (step number ).

 

Since CPUID is a "068X" processor, Inter adds a Brand ID to help the application identify the CPU type, therefore, the Pentium and Celerom processors cannot be correctly identified based on the "068X" CPUID. Must be subdivided with the Brand ID.

 

AMD processors are generally divided into three types: Family, Mode, and Stepping, for example, 681 ).

 

 

 

 

Type)

 

The type identifier is used to distinguish whether an INTEL microprocessor is installed by an end user, or by a professional personal computer system integrator, service company, or manufacturer; the number "1" indicates that the tested microprocessor is used by the user for installation; the digital "0" logo is tested for Microprocessor installation by a professional personal computer system integrator, service company, or manufacturer. The INTEL processor type identifier we usually use is "0", and "0F24" CPUID belongs to this type.

 

 

Family)

 

The series identifier can be used to determine which product the processor belongs. For example, 6 series INTEL processors include Pentium Pro, Pentium II, Pentium II Xeon, Pentium III and Pentium III Xeon processors. The 5th generation includes the Pentium processor and the Pentium processor using MMX technology. AMD's 6 series actually refer to K7 series CPUs, DURON and ATHION. The generation of the latest INTEL Pentium 4 series processor (including Celerom processors with the same core) is "F"

 

 

Mode (model)

 

Model identifiers can be used to determine the processor production technology and the generation (or core) Design of the series. Models and series are usually used in concert with each other, it is used to determine which specific type of processor the computer is installed on. For example, determine whether the Celerom processor is the core of Coppermine or Tualutin; whether the Athlon XP processor is the core of Paiomino or Thorouhgbred.

 

 

Stepping (step number)

 

Step numbers are used to identify the design or production version of the processor, which helps to control and track more changes to the processor. Step numbers also allow end users to more specifically identify the version of the processor installed in the system, determine the internal design or production features of the microprocessor. The step number is like a small version number of the processor. For example, if the CPUID is "686" and "686A", it is like the relationship between WINZIP8.0 and 8.1. The step number is closely related to the core step. For example, if CPUID is "686", the Pentium III processor is the core of cCO, while "686A" indicates the newer version of cD0 core.

 

 

Brand ID)

 

INTEL introduced Brand ID as an auxiliary Recognition Method for CPU from the core processor of Coppermine. For example, we can use Brand ID to identify whether the processor is Celerom or Pentium 4.

 

 

 

 

Summary:

 

From the/proc/cpuinfo file, we can see the cpu information. There are two concepts. One is the number of physical CPUs and the number of logical CPUs. Physical CPU is the number of CPUs we can see in the card slot on the motherboard. This can be determined by physical id. There are several different physical IDs and there are several physical CPUs. The number of logical CPUs can be determined by processor. This is relatively simple. If there are two physical encapsulated CPUs, there are 16 logical CPUs. Each physical package contains eight logical CPUs.

From: ERDP Technical Architecture

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.