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

How to check cpu information in linux

青灯夜游
青灯夜游Original
2021-03-17 16:08:1440793browse

How to check cpu information in Linux: use the "cat /proc/cpuinfo" command. In the Linux system, the CPU information is loaded into the cpuinfo file under the virtual directory "/proc" during the startup process, so it can be viewed through the "cat /proc/cpuinfo" command.

How to check cpu information in linux

The operating environment of this tutorial: Red Hat Enterprise Linux 6.1 system, Dell G3 computer.

Linux View cpu information

In the Linux operating system, the CPU information is loaded into the cpuinfo file under the virtual directory /proc during the startup process. We You can check it through cat /proc/cpuinfo:

How to check cpu information in linux

How to check cpu information in linux

##The above picture is the CPU information of my computer, below Let’s analyze some of the more important indicators:

  • processor The ID of the logical processor.
  • physical id The id of the physically packaged processor.
  • core id The id of each core.
  • cpu cores The number of cores in a processor located in the same physical package.
  • siblings The number of logical processors located in the same physical package of processors.
Let’s go back and look at the picture above. My physical IDs are all 0, which means I only have one physical processor;

I have two processors Different numbers, and belong to the same physical ID, and the value of cpu cores is 2, which means that my CPU is dual-core, and each core has only one logical processor.

In order to deepen everyone’s understanding of these parameters, let’s look at another picture, which is a workstation server:

How to check cpu information in linux

In this On the server, 'cpu cores' is 4, there are two physical IDs, 8 core IDs, and the value of siblings is 8. There are 16 processors in total.

So the CPU of this server host is 2 physically packaged processors, each processor has 4 processing cores (cpu cores), and each cpu core can be divided into 2 logical processors ( Hyper-Threading Technology), therefore, there are 8 logical processors on each physical processor, for a total of 16 processors. You understand this time. The general structure is as follows:

How to check cpu information in linux

Related recommendations: "

Linux Video Tutorial"

The above is the detailed content of How to check cpu information in linux. 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