The number of cpu cores refers to the number of CPU cores, indicating how many cores a CPU consists of. The CPU core is an important component of the CPU. Under the same conditions such as core frequency and cache size, the greater the number of CPU cores, the stronger the overall performance of the CPU.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
CPU: CPU is the central processing unit, which is the most important and core thing in the computer. The main job of the CPU is to process and calculate data. Therefore, the CPU computing speed, main frequency, cache, and number of cores determine the quality of the CPU. The higher the main frequency of the CPU, the larger the cache, and the greater the number of cores. , such a CPU runs very fast, and the faster it processes graphics and image files, the more expensive it will be.
The number of CPU cores refers to the number of CPU cores.
Core (Die), also known as the kernel, is the most important component of the CPU. The bulging chip in the center of the CPU is the core, which is made of monocrystalline silicon using a certain production process. All calculations, acceptance/storage commands, and data processing of the CPU are performed by the core. Various CPU cores have fixed logical structures, and logical units such as first-level cache, second-level cache, execution unit, instruction-level unit, and bus interface will have a scientific layout.
CPU总核数 = 物理CPU个数 * 每颗物理CPU的核数
Common CPU core numbers include dual-core, quad-core, six-core, eight-core, twelve-core, etc. Under the same conditions such as core frequency and cache size, the greater the number of CPU cores, the stronger the overall performance of the CPU. For example, a 3.8GHz 6-core CPU has better performance than a 3.8GHz dual-core CPU.
When choosing a CPU, in addition to the number of cores of the CPU, you also need to pay attention to the generation, frequency, cache level, power consumption, etc. of the CPU. At the same time, you should also pay attention to whether the CPU is compatible with the selected motherboard chipset.
Multiple physical CPUs, CPUs communicate through the bus, and the efficiency is relatively low, as follows:
Multi-core CPUs, different cores communicate through the L2 cache, Storage and peripherals communicate with the CPU through the bus, as follows:
Multi-core hyperthreading, each core has two logical processing units, and the two cores share one core Resources, as follows:
Expand knowledge: View various parameters of the CPU in the Linux system
Take the linuxi server as an example for output Various parameters, among which the CPU is quad-core:
#查看CPU信息(型号) [root@AAA ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 4 Intel(R) Xeon(R) CPU E5-2403 v2 @ 1.80GHz # 查看物理CPU个数 [root@AAA ~]# cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l 1 # 查看每个物理CPU中core的个数(即核数) [root@AAA ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq cpu cores : 4 # 查看逻辑CPU的个数 [root@AAA ~]# cat /proc/cpuinfo| grep "processor"| wc -l 4 #查看CPU的各项指标 [root@AAA ~]# lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 62 Stepping: 4 CPU MHz: 1800.057 BogoMIPS: 3600.11 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 10240K NUMA node0 CPU(s): 0-3
For more related knowledge, please visit the FAQ column!
The above is the detailed content of What is the number of cpu cores. For more information, please follow other related articles on the PHP Chinese website!