[olug] Determining cores and sockets on Linux...

Obi-Wan obiwan at jedi.com
Thu Nov 20 22:45:02 UTC 2008


> netstat for sockets, grep the output to your heart's content.

I think he mean CPU sockets, not network sockets.

> as far as cpu stuffies... i'd still suggest looking at cpuinfo.  there's
> some other information in it for each processor such as:
> 
> physical id     : 0
> siblings        : 2
> core id         : 0
> cpu cores       : 1

Those two core lines should do the trick, I would think.  Here's my
dual-core Athlon64x2:x2:

# grep core /proc/cpuinfo
core id         : 0
cpu cores       : 2
core id         : 1
cpu cores       : 2


-- 
Ben "Obi-Wan" Hollingsworth                             obiwan at jedi.com
   The stuff of earth competes for the allegiance I owe only to the
     Giver of all good things, so if I stand, let me stand on the
       promise that You will pull me through.  -- Rich Mullins



More information about the OLUG mailing list