How to identify the number of physical CPUs, whether hyper-threading or multi-core Jun.04, 2009 in servers
Judgment basis:
1. The cpu with the same core id is hyper-threading of the same core.
2. A cpu with the same physical id is a thread or cores encapsulated by the same cpu.
English version:
1. Physical id and core id are not necessarily consecutive but they are unique. Any cpu with the same core id are hyperthreads in the same core.
2. Any cpu with the same physical id are threads or cores in the same physical socket.
Instance:
CPU information of LunarPages:
Processor: 0
Vendor_id: GenuineIntel
Cpu family: 15
Model: 4
Model name: Intel (R) Xeon (TM) CPU 3.00 GHz
Stepping: 3
Cpu MHz: 3000.881
Cache size: 2048 KB
Physical id: 0
Siblings: 2
Core id: 0
Cpu cores: 1
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 5
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl cid xtpr
Bogomips: 6006.73
Processor: 1
Vendor_id: GenuineIntel
Cpu family: 15
Model: 4
Model name: Intel (R) Xeon (TM) CPU 3.00 GHz
Stepping: 3
Cpu MHz: 3000.881
Cache size: 2048 KB
Physical id: 0
Siblings: 2
Core id: 0
Cpu cores: 1
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 5
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl cid xtpr
Bogomips: 5999.40
Processor: 2
Vendor_id: GenuineIntel
Cpu family: 15
Model: 4
Model name: Intel (R) Xeon (TM) CPU 3.00 GHz
Stepping: 3
Cpu MHz: 3000.881
Cache size: 2048 KB
Physical id: 3
Siblings: 2
Core id: 3
Cpu cores: 1
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 5
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl cid xtpr
Bogomips: 5999.08
Processor: 3
Vendor_id: GenuineIntel
Cpu family: 15
Model: 4
Model name: Intel (R) Xeon (TM) CPU 3.00 GHz
Stepping: 3
Cpu MHz: 3000.881
Cache size: 2048 KB
Physical id: 3
Siblings: 2
Core id: 3
Cpu cores: 1
Fdiv_bug: no
Hlt_bug: no
F00f_bug: no
Coma_bug: no
Fpu: yes
Fpu_exception: yes
Cpuid level: 5
Wp: yes
Flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pni monitor ds_cpl cid xtpr
Bogomips: 5999.55
Four logical CPUs are displayed. With physical id, the first two logical CPUs are the same, and the last two are the same, so there are two physical CPUs. The first two core IDs are the same, and the other two core IDs are the same, indicating that both CPUs are single-core. That is to say, the hyper-Threading Technology is enabled for two single-core CPUs.
Through intel cpu parameters, we can preliminarily judge that two Xeon Pentium 4 CPUs are used, which is a little poor ....
How to obtain CPU details:
Linux Command: cat/proc/cpuinfo
Use commands to determine the number of physical CPUs and cores:
Logical CPU count:
# Cat/proc/cpuinfo | grep "processor" | wc-l
Number of physical CPUs:
# Cat/proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
Number of cores in each physical CPU:
# Cat/proc/cpuinfo | grep "cpu cores" | wc-l
Is it hyper-threading?
If two logical CPUs have the same core id, hyper-threading is enabled.
The number of logical CPUs (possibly core, threads, or both) in each physical CPU:
# Cat/proc/cpuinfo | grep "siblings"
Other features:
At present, intel's new multi-core cpu will display the specific model numbers at the end, for example:
Model name: Intel (R) Xeon (R) CPU X3230 @ 2.66 GHz
It indicates that the cpu is Xeon 3230, and the specific number of the model is not displayed. Most of them are Pentium CPU.
Many host vendors are deceiving themselves by using a Pentium cpu, but say it is a multi-core CPU.
Data seen by the probe:
Type: Intel (R) Xeon (TM) CPU 2.80 GHz cache: 1024 KB
Type: Intel (R) Xeon (TM) CPU 2.80 GHz cache: 1024 KB
Type: Intel (R) Xeon (TM) CPU 2.80 GHz cache: 1024 KB
Type: Intel (R) Xeon (TM) CPU 2.80 GHz cache: 1024 KB
There is no specific model, and the cache is 1 MB. It is generally a Pentium series cpu or an intel fake dual-core cpu. The specific model should be determined based on the above description. The specific model can be seen for the new multi-core cpu.
In addition, multi-core xeon CPUs are generally not high-frequency, and only a few high-end CPU models reach 2.8 and 3.0. Generally, host vendors will not use such a good
Desert lone wolf sorting, the first webmaster encyclopedia Forum (http://bbs.zzbaike.com) reprint please note.
Desert Lone Wolf (www.83blog.com) original, reproduced please indicate the original address http://www.83blog.com/xeon-cpu-core.html