Judgment basis: 1. the cpu with the same coreid is hyper-threading of the same core. 2. a cpu with the same physicalid is a thread or cores encapsulated by the same cpu. Taking HP dlw.g6 as an example: ① number of physical CPUs: [root @ localhost ~] # Cat/proc/cpuinfo | grep "physicalid" | so
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.
Taking HP dlw.g6 as an example:
① Number of physical CPUs:
[Root @ localhost ~] # Cat/proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
2
② Number of cores in each physical cpu (I .e. number of cores)
[Root @ localhost ~] # Cat/proc/cpuinfo | grep "cpu cores" | uniq
Cpu cores: 4
③ Number of logical CPUs (possibly core, threads, or both) in each physical cpu (Hyper-Threading is enabled)
[Root @ localhost ~] # Cat/proc/cpuinfo | grep "siblings" | uniq
Siblings: 8
Or cat/proc/cpuinfo | grep "processor" | wc-l
The cpu of this server is quite powerful. it is no wonder that there are 16 CPUs in many linux commands, such as iostat. please note the difference between physical cpu and logical cpu, do not confuse.