How to check how many CPUs there are in centos7

WBOY
Release: 2022-02-22 16:22:35
Original
8623 people have browsed it

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
Copy after login

2. Check the number of CPU cores

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

3. Check the CPU Number of threads

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

4. Check the CPU model

dmidecode -s processor-version
Copy after login

5. Check the detailed information of the CPU:

cat /proc/cpuinfo
Copy after login

6. Check the cpu information

1scpu
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template