Home > Common Problem > What is the number of cpu cores

What is the number of cpu cores

青灯夜游
Release: 2023-02-16 14:20:11
Original
72141 people have browsed it

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.

What is the number of cpu cores

#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的核数
Copy after login

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:

What is the number of cpu cores

Multi-core CPUs, different cores communicate through the L2 cache, Storage and peripherals communicate with the CPU through the bus, as follows:

What is the number of cpu cores

Multi-core hyperthreading, each core has two logical processing units, and the two cores share one core Resources, as follows:

What is the number of cpu cores

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template