How to view physical CPU information in CentOS
1. Concept
[1] Physical CPU: The number of CPUs on the slot in the actual server.
Number of physical CPUs: There are several physical ID numbers that can be duplicated.
[2] Logical CPU
Linux users are certainly not unfamiliar with the/proc/cpuinfo file. It is used to store CPU hardware information.
The information content lists the specifications of the processor 0–n, respectively. It's important to note that if you think n is the actual number of CPUs, it's a big mistake.
In general, we think that a CPU can have multicore, plus Intel's Hyper-Threading Technology (HT), can logically divide the number of CPU core out
Number of logical CPUs = number of physical CPUs x CPU cores This specification value x 2 (if HT is supported and turned on)
Note: Linux top view CPU is also the number of logical CPUs
[3] Number of CPU Cores
The number of chipsets that can process data on a CPU, such as the current i5 760, is a dual-core four-thread CPU, while i5 2250 is a quad-core four-thread CPU
In general, the number of physical CPUs x per core should be equal to the number of logical CPUs, if not equal, it means that the server's CPU support Hyper-Threading Technology
2. View CPU Information
When we cat/proc/cpuinfo, the CPU with the same core ID is a hyper-thread of the same core, and the CPU with the same physical ID is a thread or core encapsulated by the same CPU.
Reference from:
View CPU information, machine model and other hardware information under Linux
Linux commands for viewing hardware information
3. Examples and explanations
[0] View CPU model
 123 123 123 123 " 123"  123 123
 123 123 123 123 ""
This article is from the "Dream to Reality" blog, please be sure to keep this source http://lookingdream.blog.51cto.com/5177800/1767984
How to view physical CPU information in CentOS