1. check the number of physical CPUs catproccupinfo | grep & 039; physicalid & 039; 1. check the number of physical CPUs cat/proc/cupinfo | grep 'physical ID' | sort | uniq | wc-l2, view the number of physical cores of a cpu cat/proc/cupinfo | grep' core ID' | sort | uniq-c | wc-l or cat/proc/cupinfo | grep 'CPU cores' | uniq | awk-F ": "'{print $2}' 3. check the number of logical cores of a cpu. cat/proc/cupinfo | grep 'Siblings '| uniq | awk-F ": "'{print $2}' 4. check the total number of logical cores. the number of physical cores is the product of the result obtained from 1 and 2; cat/proc/cupinfo | grep 'processor '| sort | uniq-c | wc-l5, view cpu model cat/proc/cupinfo | grep name | cut-f2-d: | uniq-c6, # cat/proc/cpuinfo | grep physical | uniq-c4 physical id: 04 physical id: 1 indicates there are two CPUs, each cpu has four logical cores (two physical cores)
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