Chapter 3 Basic Troubleshooting 3-27
3.3.6 ps Command
The ps command lists the status of system processes. Using options and rearranging
the command output can assist in determining the Sun Blade 1500 workstation
resource allocation.
3.3.6.1 Options
TABLE 3-11 describes options for the ps command and how those options can help
troubleshoot the Sun Blade 1500 workstation.
# ping -svR teddybear
PING teddybear: 56 data bytes
64 bytes from teddybear (192.146.77.140): icmp_seq=0. time=2. ms
IP options: <record route> smuscampk27s02-r01 (192.146.5.123),
smuscampk14s19-r02-v516 (192.146.5.90), rmpk16a-077 (192.146.77.2),
teddybear (192.146.77.140), smuscampk16s02-r01 (192.146.5.83),
smuscampk11s10-r02-v827 (192.146.5.137), fermpk28ap-46 (192.146.46.2),
matlock (192.146.46.111), (End of record)
^C
----teddybear PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms) min/avg/max = 2/2/2
TABLE 3-11 Options for ps
Option Description How It Can Help
-e
Displays information for every
process.
Identifies the process ID and the executable.
-f
Generates a full listing. Provides the following process information: user ID, parent
process ID, system time when executed, and the path to
the executable.
-o option Allows configurable output.
The
pid, pcpu, pmem, and
comm options display process
ID, percent CPU consumption,
percent memory consumption,
and the responsible executable,
respectively.
Provides only most important information. Knowing the
percentage of resource consumption helps identify
processes that are affecting system performance and might
be hung.