Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to view CPU information in CentOS

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is to share with you about how to view CPU information in CentOS, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

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

(1) processor: includes the unique identifier of this logical processor.

(2) physical id: includes a unique identifier for each physical package.

(3) core id: holds a unique identifier for each kernel.

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

(5) cpu cores: contains the number of kernels 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 socket. Each physical id represents a unique physical package. Siblings represents the number of logical processors located on this physical encapsulation. Logical processors may or may not support hyperthreading (HT) technology. Each core id represents a unique processor core. All logical processors with the same core id are on the same processor core. If more than one logical processor has the same core id and physical id, the system supports hyperthreading (HT) technology. If two or more logical processors have the same physical id, but the core id is different, 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 referring to microprocessors that are compatible with intel i386, i586, and i686 instruction sets. In general, higher-level machines can accept lower-level rpm files.

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

I586-A class of 586 computers, including pentum's first generation of MMX CPU,AMD 's K5PowerK6 system CPU (socket7 pin) and other CPU are of this level.

The Intel system CPU after i686-pentum 2 and the CPU after K7 all belong to this class.

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

2. View CPU information

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

[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.53GHz

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 pse36 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.53GHz

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 pse36 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.53GHz

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 pse36 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.53GHz

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 pse36 clflush dts 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.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.53GHz

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 pse36 clflush dts 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: 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 the number of server bits

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

X86_64

X8634: 64-bit system

X86VR 32-bit system

3.2 check whether CPU supports 64bit

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

sixteen

The result is greater than 0, indicating that 64bit calculation is supported. Lm refers to long mode, while supporting lm means 64bit.

3.3 number of logical CPU:

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

sixteen

Note: this is the logical CPU. It is the processor that we see in cpuinfo.

3.4 number of physical CPU:

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

two

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

3.5 number of Core per physical CPU:

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

sixteen

3.6 whether it is hyperthreaded:

If there are two logical CPU with the same "core id", then hyperthreading is turned on. The number of logical CPU (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

CPU ID is a single code made by CPU manufacturers to identify different types of CPU, and CPU from different manufacturers has different CPU ID definitions, such as "0F24" (Inter processor) and "681H" (AMD processor). According to these digital codes, we can judge which type CPU belongs to, which is CPU ID in the general sense.

Because the computer uses hexadecimal, CPU ID is also represented in hexadecimal. The CPU ID of the Inter processor contains a total of four numbers, such as "0F24", representing Type (type), Family (series), Mode (model), and Stepping (step number) from left to right.

Starting from the processor whose CPUID is "068X", Inter adds Brand ID (breed identification) to help applications identify the type of CPU, so the Pentium and Celerom processors cannot be correctly distinguished according to the "068X" CPUID. Must be subdivided with Brand ID.

AMD processors are generally divided into three digits, such as "681", represented from left to right as Family (series), Mode (model), and Stepping (step number).

Type (type)

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

Family (Series)

The series logo can be used to determine which generation of products the processor belongs to. For example, 6 series INTEL processors include Pentium Pro, Pentium II, Pentium II Xeon, Pentium III and Pentium III Xeon processors. The 5 series (fifth generation) includes Pentium processors and Pentium processors using MMX technology. The 6 series of AMD actually refers to the K7 series CPU, DURON and ATHION. The latest generation of INTEL Pentium 4 series processors (including Celerom processors with the same core) has a family value of "F"

Mode (model number)

The model identification can be used to determine the manufacturing technology of the processor and the generation of designs (or cores) that belong to the series, and the model and series are usually used in conjunction with each other. used to determine which specific type of processor installed on the computer belongs to a series of processors. For example, you can determine whether the Celerom processor is a Coppermine or Tualutin core, and whether the Athlon XP processor is a Paiomino or Thorouhgbred core.

Stepping (step number)

The step number is used to identify the design or production version of the processor, helping to control and track processor changes, and allows end users to more specifically identify the version of the processor installed on their system. determine the internal design or fabrication characteristics of the microprocessor. The step number is like the small version number of the processor, for example, CPUID is "686" and "686A" is like the relationship between WINZIP8.0 and 8.1. Step number and core step are closely related. For example, the Pentium III processor whose CPUID is "686" is the cCO core, while "686A" represents the newer version of the cD0 core.

Brand ID (Variety Identification)

INTEL introduces Brand ID as an auxiliary means of CPU identification from the processor of the Coppermine core. For example, we can tell whether the processor is Celerom or Pentium 4 through Brand ID.

The above is how to view CPU information in CentOS. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

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.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report