Fearthepenguin.net

Diary of a Lazy SysAdmin

Skip to: Content | Sidebar | Footer

Category: howto

Finding how many CPUs/Cores/Threads in a Solaris server

14 October, 2009 (16:32) | Operating Systems, Solaris, Unix, howto | By: ender

Now this will only work in Solaris 10, but this should give a nice output of how many Physical CPUs, Physical Cores, and Threads [Virtual CPUs] are recognized by Solaris. This will work on Solaris 10 for SPARC or x86.
The output looks like this:
**********
user@host:~$ ~/bin/cpucount.sh
In host.example.com there are:
1        Physical CPUs/Sockets
8        Physical Cores across all CPUs
8        [...]