Linux查看系統(tǒng)cpu個數(shù)拭宁、核心數(shù)、線程數(shù)
1.查看物理cpu個數(shù)
grep 'physical id' /proc/cpuinfo | sort -u?| wc -l
2.查看核心數(shù)量
grep 'core id' /proc/cpuinfo | sort -u | wc -l
3.查看線程數(shù)
grep 'processor' /proc/cpuinfo | sort -u | wc -l
4.查看cpu型號
dmidecode -s processor-version