[1] Physical CPU: The number of CPUs on the slot in the actual server.
Number of physical CPUs: There are several physical IDs that can be counted without duplicates.
[2] Logical CPU
Linux users are certainly not unfamiliar with the/proc/cpuinfo
How to view the number of physical CPUs, cores, threads, and Linux on linux
First, let's take a look at what is hyper-threading.
Hyper-Threading Technology uses special hardware commands to simulate two logical kernels into two physical chips, so
The concept of number of CPUs , number of cores,number ofprocessor
CPU number
The independent central processing Unit, which is represented on the motherboard, is the number of CPU Slot Position
cpu cores
First, look at what the Hyper-threading conceptHyper-Threading technology is the use of special hardware instructions, the two logical core simulation into two physical chips, so that a single processor can use thread-level parallel computing, and
0. Prepare knowledgeHyper-Threading Technology (hyper-threading): Using special hardware instructions, the two logical cores (CPU core) are simulated into two physical chips,Allows a single processor to use thread-level parallel computing, which is
In general, MySQL optimization can be divided into two levels: one is Optimization at the MySQL level, such as SQL rewriting, index addition, and configuration of various MySQL parameters; the other layer is the operating system and hardware.
In fact, as long as
#include Long num = sysconf (_SC_NPROCESSORS_ONLN);
You can get the current number of CPUs ...
Judge the basis:1. CPUs with the same core ID are the same core hyper-threading.2. CPUs with the same physical ID are the same
In the analysis of the system, one of the first and most basic tools is often a simple measurement of the CPU utilization of the system. Linux and most unix-based operating systems provide a command to display the system's average load (loadaverage).
Problem: I have a Linux process running on a multi-core processor system. How can I find out which CPU kernel is running the process?
The affinity of Cpu/memory is one of the most important factors for maximizing performance when you run HPC
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.