查看Linux CPU个数,核心,线程数

CPU 个数

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

CPU 核心数

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

CPU 线程数

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

你可能感兴趣的:(查看Linux CPU个数,核心,线程数)