View Kernel version
Lsb_release-a
View the number of physical CPUs, cores, and logical CPUs
(1) CPUs with the same core ID are Hyper-threading of the same core.
(2) A CPU with the same physical ID is a thread or core encapsulated by the same CPU.
(3) Total physical number of cores = number of physical CPUs X number of cores per physical CPU
(4) Total Logical CPU = number of physical CPUs x number of cores per physical CPU X number of hyper-threads
(5) Therefore, comparing the total physical number of cores and the total number of logical CPUs, if not equal, indicates that the server CPU turns on Hyper-threading.
#查看CPU信息 (model)awk-F':' '/model Name/{print}'/proc/cpuinfo |Uniq# View the number of physical CPUsawk-F':' '/physical Id/{print}'/proc/cpuinfo |Sort|Uniq|WC-l# View the number of cores in each physical CPU (that is, the number of nuclei)awk-F':' '/cpu Cores/{print}'/proc/cpuinfo |Uniq# View the number of logical CPUsawk-F':' '/processor/{print}'/proc/cpuinfo |WC-L
References
1, 1190000007469655
View the number of Linux physical CPUs