View the number of CPUs, core books, and threads of the system in centos

Source: Internet
Author: User

1. view the number of physical CPUs

Grep 'physical id'/proc/cpuinfo | sort-u| Wc-l

2. view the number of cores
Grep 'core id'/proc/cpuinfo | sort-u | wc-l

3. view the number of threads

Grep 'processor '/proc/cpuinfo | sort-u | wc-l

4. view the cpu Model

Dmidecode-s processor-version

5. Instance
The command execution result shows that the server has 1 cpu, 6 cores, 2 cores, and 12 threads in total.
You can use dmidecode to view the cpu model. You can also find the specific cpu parameters based on the model.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.