Wednesday 19 September 2018

Re-using someone else's brilliance - Figuring out CPUs and Sockets - Updated!

I found this: -


whilst helping a colleague dig into the underlying capacity of a multi-socket / core Linux box.

The article includes tips such as: -

lscpu | grep "socket"

Core(s) per socket:    1

cat /proc/cpuinfo | grep "physical id" | sort -u | wc -l

4

egrep -e "core id" -e ^physical /proc/cpuinfo|xargs -l2 echo|sort -u

physical id : 0 core id : 0
physical id : 2 core id : 0
physical id : 4 core id : 0
physical id : 6 core id : 0


dmidecode | grep -i product


Product Name: VMware Virtual Platform
Product Name: 440BX Desktop Reference Platform


grep -i "physical id" /proc/cpuinfo | sort -u | wc -l 

4

dmidecode |grep -i cpu

Socket Designation: CPU #000
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #001
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #002
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #003
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #004
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #005
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #006
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #007
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #008
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #009
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Socket Designation: CPU #010
Version: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz

...

cat /proc/cpuinfo |egrep 'sibling|cores'

siblings : 1
cpu cores : 1
siblings : 1
cpu cores : 1
siblings : 1
cpu cores : 1
siblings : 1
cpu cores : 1


grep -i "processor" /proc/cpuinfo | sort -u | wc -l 

4

lscpu | grep -i thread

Thread(s) per core:    1

dmidecode -t4 | egrep 'Designation|Status'

Socket Designation: CPU #000
Status: Populated, Enabled
Socket Designation: CPU #001
Status: Populated, Enabled
Socket Designation: CPU #002
Status: Populated, Enabled
Socket Designation: CPU #003
Status: Populated, Enabled
Socket Designation: CPU #004
Status: Populated, Disabled By BIOS
Socket Designation: CPU #005
Status: Populated, Disabled By BIOS


etc.

Nice find !!

No comments:

Visual Studio Code - Wow 🙀

Why did I not know that I can merely hit [cmd] [p]  to bring up a search box allowing me to search my project e.g. a repo cloned from GitHub...