How to get the number of sockets in your server using Linux

This entry was posted by on Monday, 5 September, 2011

Not really the most useful tip, but a couple of days ago I was looking for a way of determine the number of sockets on this box and after googling around I found this forum from where I adapted the following code that should return the number of sockets in your server, by counting the unique number of entries for the “physical id” string.

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


ShareThis

One Response to “How to get the number of sockets in your server using Linux”

  1. We are a gaggle of volunteers and starting a brand
    new scheme in our community. Your site offered us with valuable info to work on.
    You have performed an impressive job and our whole community might be thankful
    to you.


Leave a Reply