Find CPU Speed and Memory Size on Solaris

As I’m writing my thesis I’m running tests on an old SMP Solaris machine. Obviously, I need to provide the specs of this machine in the paper so that the readers can see my results in context (ie why everything is taking forever. On linux I would just use lshw which is your ultimate hardware information goldmine. If you don’t have it on your system, go install it now. You will thank me later.

The ancient Solaris machine I was working with did not have it, so I was forced to find other ways of finding information such as CPU speed and memory size.

First you can try prtdiag – it will tell you detailed information about all your CPU’s and memory banks. Unfortunately it is in a weird directory that is not in your $path so you will need to run it with the absolute path:

/usr/platform/sun4u/sbin/prtdiag -v

If you just want information on the CPU’s you can also try:

psrinfo -v

Finally, to just get your total memory size do:

prtconf | grep Memory

There might be better ways to do this, but these worked for me. Craig will probably be able to add to this list or correct me. :)

[tags]solaris, memory size, cpu speed, prtdiag, prtconf, psrinfo, lshw, unix[/tags]

This entry was posted in sysadmin notes and tagged , . Bookmark the permalink.

6 Responses to Find CPU Speed and Memory Size on Solaris

  1. Craig Betts UNITED STATES Mozilla Firefox Solaris Terminalist says:

    Almost . . .

    The path to prtdiag depends on the architecture of the system. The one you listed works on any Sun with a sun4u microprocessor. Use the following instead:
    /usr/platform/`/usr/bin/uname -i`/sbin/prtdiag -v

    Running this on a CoolThreads machine will yeild some interesting data:

    czar / 3% /usr/platform/`/usr/bin/uname -i`/sbin/prtdiag -v | more
    System Configuration: Sun Microsystems sun4v Sun Fire(TM) T1000
    System clock frequency: 200 MHz
    Memory size: 2040 Megabytes
    ========================= CPUs ===============================================
    Location CPU Freq Implementation Mask
    ------------ ----- -------- ------------------- -----
    MB/CMP0/P0 0 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P1 1 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P2 2 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P3 3 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P4 4 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P5 5 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P6 6 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P7 7 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P8 8 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P9 9 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P10 10 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P11 11 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P12 12 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P13 13 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P14 14 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P15 15 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P16 16 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P17 17 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P18 18 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P19 19 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P20 20 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P21 21 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P22 22 1000 MHz SUNW,UltraSPARC-T1
    MB/CMP0/P23 23 1000 MHz SUNW,UltraSPARC-T1
    ========================= IO Configuration =========================
    Location Type Slot Path Name Model
    ----------- ----- ---- --------------------------------------------- ------------------------- ---------
    MB/NET0 PCIE MB /pci@7c0/pci@0/network@4 network-pci14e4,1668
    MB/NET1 PCIE MB /pci@7c0/pci@0/network@4,1 network-pci14e4,1668
    MB/NET2 PCIX MB /pci@7c0/pci@0/pci@8/network@1 network-pci108e,1648
    MB/NET3 PCIX MB /pci@7c0/pci@0/pci@8/network@1,1 network-pci108e,1648
    MB/PCIX PCIX MB /pci@7c0/pci@0/pci@8/scsi@2 scsi-pci1000,50 LSI,1064
    ========================= HW Revisions =======================================
    System PROM revisions:
    OBP 4.20.0 2005/12/15 16:49
    IO ASIC revisions:
    Location Path Device Revision
    -------------------- ---------------------------------------- ------------------------------ ---------
    MB/IO-BRIDGE /pci@780 SUNW,sun4v-pci 0
    MB/SAS-SATA-HBA /pci@7c0 SUNW,sun4v-pci 0
    MB/SAS-SATA-HBA /pci@7c0/pci@0 pciex1166,103.b3 179
    MB/SAS-SATA-HBA /pci@7c0/pci@0/pci@8 pci1166,104.b3 179
    MB/GBE0 /pci@7c0/pci@0/network@4 pci14e4,1668.108e.1668.a2 162
    MB/GBE0 /pci@7c0/pci@0/network@4,1 pci14e4,1668.108e.1668.a2 162
    MB/GBE1 /pci@7c0/pci@0/pci@8/network@1 pci14e4,1648.108e.1648.10 16
    MB/GBE1 /pci@7c0/pci@0/pci@8/network@1,1 pci14e4,1648.108e.1648.10 16
    MB/SAS-SATA-HBA /pci@7c0/pci@0/pci@8/scsi@2 pci13e9,50 2

    Reply  |  Quote
  2. Luke UNITED STATES Mozilla Firefox Ubuntu Linux says:

    Ah, there we go – thanks for the clarification. :)

    Reply  |  Quote
  3. Pingback: links for 2007-04-10 · Mansoor Nathani’s Blog UNITED STATES WordPress

  4. Paras AUSTRALIA Internet Explorer Windows says:

    thanks for this post


    /usr/platform/sun4u/sbin/prtdiag -v

    command was quite useful

    Reply  |  Quote
  5. Sree Pratheep INDIA Mozilla Firefox Linux says:

    Thanks for letting me know about lshw. A really wonderful utility.

    Thanks again.

    Reply  |  Quote
  6. Raymond Google Chrome Linux says:

    How do you check Memory Speed on a T5-8 server running Solaris 11?

    Reply  |  Quote

Leave a Reply

Your email address will not be published. Required fields are marked *