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 341 days ago. Viewed 2,349 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
(2013-05-16)

Problem

How many processor sockets am I dealing with?

Solution

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt