Friday Apr 25, 2008
Friday Apr 25, 2008
Other chapters posted until now:
Chapter three of the Solaris Performance Primer deals with your system. Solaris Systems may have one CPUor hundreds. Solaris systems may have a single disk or entire farms. Anyone who deals with perfromance has to know what the quantitative aspects of the system are. The commands listed here will answer these questions.
It's pivotal that you get an understanding of the components of the system you want to tune. Knowing the hardware components and the installed software allows you to understand the quantitative limits of the system.
Solaris offers a wealth of commands to identify the characteristics of the running system. The following chapter discusses commands that help administrators and software developers understand and document accurately the hardware and software specifications.
The uname utility prints information about the current system on the standard output. The command outputs detailed information about the current system on operating system software revision level, processor architecture and platform attributes.
The table below lists selected options to uname:
Option | Comments |
-a | Prints basic information currently available from the system. |
-s | Prints the name of the operating system. |
-r | Prints the operating system release level. |
-i | Prints the name of the platform. |
-p | Prints the processor type or ISA [Instruction Set Architecture]. |
uname – selected options

uname – sample output
The file /etc/release contains detailed information about the operating system. The content provided allows engineering or support staff to unambiguously identify the Solaris release running on the current system.

/etc/release file – sample output
The showrev command shows machine, software revision and patch revision information. With no arguments, showrev shows the system revision information including hostname, hostid, release, kernel architecture, application architecture, hardware provider, domain and kernel version.

showrev – machine and software revision
To list patches installed on the current system, use the showrev command with the -p argument.

showrev -p – patch information
The isainfo command describes instruction set architectures. The isainfo utility is used to identify various attributes of the instruction set architectures supported on the currently running system. It can answer whether 64-bit applications are supported, or if the running kernel uses 32-bit or 64-bit device drivers.
The table below lists selected options to isainfo:
Option | Comments |
<none> | Prints the names of the native instruction sets for portable applications. |
-n | Prints the name of the native instruction set used by portable applications. |
-k | Prints the name of the instruction set(s) used by the operating system kernel components such as device drivers and STREAMS modules. |
-b | Prints the number of bits in the address space of the native instruction set. |
isainfo – selected options

isainfo – describe instruction set architectures
The isalist command displays the native instruction sets executable on this platform. The names are space-separated and are ordered in the sense of best performance. Earlier-named instruction sets may contain more instructions than later-named instruction sets. A program that is compiled for an earlier-named instruction sets will most likely run faster on this machine than the same program compiled for a later-named instruction set.

isalist – display native instruction sets
The psrinfo command displays information about processors. Each physical processor may support multiple virtual processors. Each virtual processor is an entity with its own interrupt ID, capable of executing independent threads.
The table below lists selected options to psrinfo:
Option | Comments |
<none> | Prints one line for each configured processor, displaying whether it is online, non-interruptible (designated by no-intr), spare, off-line, faulted or powered off, and when that status last changed. |
-p | Prints the number of physical processors in a system. |
-v | Verbose mode. Prints additional information about the specified processors, including: processor type, floating point unit type and clock speed. If any of this information cannot be determined, psrinfo displays unknown. |
psrinfo – selected options

psrinfo – display processor information
The prtdiag command displays system diagnostic information. On Solaris 10 for x86/x64 systems, the command is only available with Solaris 10 01/06 or higher.

prtdiag – print system diagnostic information
The prtconf command prints system configuration information. The output includes the total amount of memory, and the configuration of system peripherals formatted as a device tree.
prtconf –
print system configuration
The cpuinfo utility prints detailed information about the CPU type and characteristics (number, type, clock and strands) of the running system.
cpuinfo – sample output
The meminfo is a tool to display configuration of physical memory and swap devices or files.

meminfo – sample output
Other chapters posted until now:
The one's who are interested in a more complete (and professional) resource may want to consider Darryl Gove's book "Solaris Application Programming". A great chapter detailing the system tools is available for free online.