Home  >  Article  >  Operation and Maintenance  >  How to check how many CPUs there are in centos7

How to check how many CPUs there are in centos7

WBOY
WBOYOriginal
2022-02-22 16:22:358541browse

Method: 1. Use "grep 'physical id'/proc/cpuinfo|sort-u|wc-l" command to check the physical number of CPU; 2. Use "grep 'core id'/proc/cpuinfo" |sort-u|wc -l" command to check the number of CPU cores.

How to check how many CPUs there are in centos7

The operating environment of this article: centos 7 system, Dell G3 computer.

How to check how many CPUs there are in centos7

1. Check the physical number of CPUs

grep 'physical id'/proc/cpuinfo| sort-u|wc-l

2. Check the number of CPU cores

grep 'core id'/proc/cpuinfo| sort-u|wc -l

3. Check the CPU Number of threads

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

4. Check the CPU model

dmidecode -s processor-version

5. Check the detailed information of the CPU:

cat /proc/cpuinfo

6. Check the cpu information

1scpu

Recommended tutorial : "centos tutorial"

The above is the detailed content of How to check how many CPUs there are in centos7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn