For When You Can't Have The Real Thing
[ start | index | login ]
start > Linux > Counting Processor Sockets

Counting Processor Sockets

Created by dave. Last edited by dave, 10 years and 339 days ago. Viewed 2,345 times. #3
[diff] [history] [edit] [rdf]


How many processor sockets am I dealing with?


Count sockets:

# cat /proc/cpuinfo | grep "physical id" | sort -n | uniq | wc -l

Count cores per socket:

# cat /proc/cpuinfo | grep "cpu cores" | uniq

Hyperthreading: see Detecting Hyper Threading

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt