在Linux系统的/proc/cpuinfo文件中,physical id代表物理CPU的唯一标识符,用于区分主板上不同的物理CPU插槽。
/proc/cpuinfo
cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l