Recently, when researching the load of Linux system, I have been exposed to some knowledge about CPU information, and share it with you. A lot of things have been learned by analyzing the parameters in the/proc/cpuinfo file.
In the Linux operating system, the CPU information is loaded into the Cpuinfo file under the virtual directory/proc in the boot process, and we can view it through Cat/proc/cpuinfo:
Is my computer CPU information, below we analyze some of the more important indicators:
- processor The ID of the logical processor.
- ID of the processor that physical ID physically encapsulates.
- The ID of the core ID for each key.
- CPU Cores The number of cores in the same physically encapsulated processor.
- siblings The number of logical processors in the same physically encapsulated processor.
We go back to see, my physical ID is 0, indicating that I have only one physical processor;
My processor has two different numbers and belongs to a physical ID, and the CPU cores has a value of 2, which means that my CPU is dual-core and that each core has only one logical processor.
To deepen our understanding of these parameters, let's look at another picture, which is a server for a workstation:
On this server, ' CPU cores ' for 4,physical ID has two, core ID has 8, siblings value is 8, a total of 16 processor.
So this server host CPU is 2 physically packaged processors, each processor has 4 processing cores (CPU cores), each CPU core can be divided into 2 logical processors (Hyper-Threading technology), so there are 8 logical processors on each physical processor, A total of 16 processor. This time you understand. The general structure is as follows:
View CPU information under Linux [/proc/cpuinfo]