Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of cpu cores

Status
Not open for further replies.

ddrillich

Technical User
Jun 11, 2003
546
US
Good Day,

How can I find out the number of cpu cores on a Solaris server?

\(ddril00\)\>uname -a
SunOS phsupr62 5.9 Generic_118558-05 sun4u sparc SUNW,Sun-Fire-V240

Regards,
Dan
 
Either /usr/sbin/prtdiag or /usr/sbin/psrinfo will tell you how many cores as well as a variety of other information.


_______
Linnorm
 
Thank you Linnorm. Here is what I see. Does it mean I have 2 CPUs each with one core?

\(ddril00\)\>/usr/sbin/prtdiag
System Configuration: Sun Microsystems sun4u Sun Fire V240
System clock frequency: 167 MHZ
Memory size: 8GB

==================================== CPUs ====================================
E$ CPU CPU Temperature
CPU Freq Size Implementation Mask Die Amb. Status Location
--- -------- ---------- ------------------- ----- ---- ---- ------ --------
0 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.3 - - online MB/P0
1 1503 MHz 1MB SUNW,UltraSPARC-IIIi 3.3 - - online MB/P1

================================= IO Devices =================================
Bus Freq Slot + Name +
Type MHz Status Path Model
---- ---- ---------- ---------------------------- --------------------
pci 66 MB pci108e,1648 (network)
okay /pci@1f,700000/network@2

pci 66 MB pci108e,1648 (network)
okay /pci@1f,700000/network@2,1

pci 33 MB isa/su (serial)
okay /pci@1e,600000/isa@7/serial@0,3f8

pci 33 MB isa/su (serial)
okay /pci@1e,600000/isa@7/serial@0,2e8

pci 33 MB pci10b9,5229 (ide)
okay /pci@1e,600000/ide@d

pci 33 PCI1 lpfc-pci10df,f900 (scsi) LP9002
okay /pci@1e,600000/lpfc@3

pci 66 MB scsi-pci1000,21 (scsi-2)
okay /pci@1c,600000/scsi@2

pci 66 MB scsi-pci1000,21 (scsi-2)
okay /pci@1c,600000/scsi@2,1

pci 66 MB pci108e,1648 (network)
okay /pci@1d,700000/network@2

pci 66 MB pci108e,1648 (network)
okay /pci@1d,700000/network@2,1

pci 66 PCI0 lpfc-pci10df,f900 (scsi) LP9002
okay /pci@1d,700000/lpfc@1

pci 33 7 isa/rmc-comm-rmc_comm (seria+
okay /pci@1e,600000/isa@7/rmc-comm@0,3e8

pci 33 10 pciclass,0c0310 (usb)
okay /pci@1e,600000/usb@a


============================ Memory Configuration ============================
Segment Table:
-----------------------------------------------------------------------
Base Address Size Interleave Factor Contains
-----------------------------------------------------------------------
0x0 4GB 16 BankIDs 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
0x1000000000 2GB 1 BankIDs 16
0x1200020000 2GB 2 BankIDs 17,18

Bank Table:
-----------------------------------------------------------
Physical Location
ID ControllerID GroupID Size Interleave Way
-----------------------------------------------------------
0 0 0 256MB 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
1 0 0 256MB
2 0 1 256MB
3 0 1 256MB
4 0 0 256MB
5 0 0 256MB
6 0 1 256MB
7 0 1 256MB
8 0 1 256MB
9 0 1 256MB
10 0 0 256MB
11 0 0 256MB
12 0 1 256MB
13 0 1 256MB
14 0 0 256MB
15 0 0 256MB
16 1 0 2GB 0
17 1 1 1GB 0,1
18 1 1 1GB

Memory Module Groups:
--------------------------------------------------
ControllerID GroupID Labels Status
--------------------------------------------------
0 0 MB/P0/B0/D0
0 0 MB/P0/B0/D1
0 1 MB/P0/B1/D0
0 1 MB/P0/B1/D1
1 0 MB/P1/B0/D0
1 0 MB/P1/B0/D1
1 1 MB/P1/B1/D0
1 1 MB/P1/B1/D1
phsupr62/appl/esas/IDOLServer/IDOL/content
\(ddril00\)\>
phsupr62/appl/esas/IDOLServer/IDOL/content
\(ddril00\)\>/usr/sbin/psrinfo
0 on-line since 02/03/2012 22:59:06
1 on-line since 02/03/2012 22:59:05
phsupr62/appl/esas/IDOLServer/IDOL/content
 
Yep, the CPUs section is what you're looking for here. If you had a CPU model with multiple cores you'd see additional ones listed on each line separated by commas.

_______
Linnorm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top