1.查看物理cpu个数
grep ‘physical id‘ /proc/cpuinfo | sort -u | wc -l
2.查看核心数量
grep ‘core id‘ /proc/cpuinfo | sort -u | wc -l
3.查看线程数
grep ‘processor‘ /proc/cpuinfo | sort -u | wc -l
4.查看cpu型号
dmidecode -s processor-version
时间: 2024-10-07 10:30:01
1.查看物理cpu个数
grep ‘physical id‘ /proc/cpuinfo | sort -u | wc -l
2.查看核心数量
grep ‘core id‘ /proc/cpuinfo | sort -u | wc -l
3.查看线程数
grep ‘processor‘ /proc/cpuinfo | sort -u | wc -l
4.查看cpu型号
dmidecode -s processor-version