Created
December 11, 2018 09:06
-
-
Save zlei1/60b19cb87f6cda11e0e6823d79d58995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
查看物理cpu个数 | |
cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l | |
查看核心数量 | |
grep 'core id' /proc/cpuinfo | sort -u | wc -l | |
cat /proc/cpuinfo | grep "cpu cores" | wc -l | |
查看线程数 | |
grep 'processor' /proc/cpuinfo | sort -u | wc -l | |
查看cpu型号 | |
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c | |
如果服务器有2个cpu,每个cpu4个核心,每个核心4线程,共16线程。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment