Blog dedicated to Oracle Applications (E-Business Suite) Technology; covers Apps Architecture, Administration and third party bolt-ons to Apps

Thursday, October 29, 2009

How to find the no. of cores in a Solaris box

I have finally found how to find the no. of cores in a Solaris Box on newer T class servers. The clue was given on Steve Sistare's blog post CPU to Core Mapping. He mentioned that:

"psrinfo -pv" only prints the core information on systems running OpenSolaris or Solaris Express, because psrinfo was enhanced by this CR:

6316187 Need interface to determine core sharing by CPUs
which was never backported to a Solaris 10 update.

So I googled for psrinfo opensolaris and found this perl script.

Here's the ouptut of running this perl script on a T5220 server:

$ perl psrinfo.pl -pv
The physical processor has 4 cores and 13 virtual processors (-50)
The core has 4 virtual processors (0-3)
The core has 3 virtual processors (16-18)
The core has 3 virtual processors (32-34)
The core has 3 virtual processors (48-50)
UltraSPARC-T2 (clock 1415 MHz)


1 comments:

Laurent Schneider said...

you surely are running a 64b os, right?

check it :
$ isainfo -vn
64-bit sparcv9 applications