Home > Article > Operation and Maintenance > How to check how many CPUs there are in centos7
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.
The operating environment of this article: centos 7 system, Dell G3 computer.
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!