CentOS system views the number of CPUs (physical, logical, and thread)
Source: Internet
Author: User
Check the number of logical CPUs: cat/proc/cpuinfo | grep "processor" | wc-l check the number of physical CPUs: cat/proc/cpuinfo | grep "physicalid" | sort | uniq | wc-l view the number of cores of each physical cpu. cores: cat/proc/cpuinfo | grep "cpucores" if all physical cp views the number of logical CPUs: cat/proc/cpuinfo | grep "processor" | wc-l
Check the number of physical CPUs: cat/proc/cpuinfo | grep "physical id" | sort | uniq | wc-l
View the number of cores of each physical cpu. cores: cat/proc/cpuinfo | grep "cpu cores"
If the number of cores of all physical CPUs is less than the number of logical CPUs, the cpu uses Hyper-Threading Technology. View the number of logical CPUs in each physical cpu: cat/proc/cpuinfo | grep "siblings"
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service