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. )

Related Posts:

  • Get OpenSolaris CD’s Shipped to you for Free
  • The Free Solaris 10 DVD’s Came in the Mail Today
  • Take a Speed Test
  • Sun Laptops?
  • My New Stick
  • I think it’s about time to invest in memory
  • Java Based SVN Client
  • Dell Latitude D520: The Case of a Missing DIMM Socket
  • How to solve the svchost.exe 100% CPU usage problem
  • Ascii Art in nmaps configure file

  • 3 Responses to “Find CPU Speed and Memory Size on Solaris”

    1. Gravatar Craig Betts UNITED STATES Says: Reply to this comment

      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 ===============================================
      CPU CPU
      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 =========================
      IO
      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

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.2 on Solaris Solaris
    2. Gravatar Luke UNITED STATES Says: Reply to this comment

      Ah, there we go - thanks for the clarification. )

      Posted using Mozilla Firefox Mozilla Firefox 2.0.0.2 on Ubuntu Linux Ubuntu Linux
    3. Gravatar links for 2007-04-10 · Mansoor Nathani’s Blog UNITED STATES Says: Reply to this comment

      […] Terminally Incoherent » Blog Archive » Find CPU Speed and Memory Size on Solaris Find CPU Speed and Memory Size on Solaris (tags: solaris) […]

      Posted using WordPress WordPress 2.0.1

    Leave a Reply

    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <pre lang=""> <em> <i> <strike> <strong>

    [Quote selected]