查看cpu核心数
查看物理 cpu 数目
cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l |
查看每个物理 cpu 里的核数
cat /proc/cpuinfo| grep "cpu cores"| uniq |
查看 cpu 逻辑核心数(cpu 数量*每个 cpu 的核数)
cat /proc/cpuinfo| grep "processor"| wc -l |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment