1. 物理CPU的个数:cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l2. 每个物理CPU的核心数量:cat /proc/cpuinfo | grep "cpu cores" | uniq 3. 逻辑CPU个数:cat /proc/cpuinfo | grep "processor" | wc -l