LinuxでCPUの搭載数を調べるコマンドまとめ

# cat /proc/cpuinfo | grep “processor"
processor : 0
processor : 1
processor : 2
processor : 3
# cat /proc/cpuinfo | grep “physical id"
physical id : 0
physical id : 0
physical id : 0
physical id : 0
# cat /proc/cpuinfo | grep “cpu cores"
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
# cat /proc/cpuinfo | grep “core id"
core id : 0
core id : 1
core id : 0
core id : 1
# cat /proc/cpuinfo | grep “siblings"
siblings : 4
siblings : 4
siblings : 4
siblings : 4

Linux

Posted by arkgame