9-14 Sun Ultra 45 and Ultra 25 Workstations Service and Diagnostics Manual • May 2006
9.5.6.1 Options
TABLE 9-7 describes options for the ps command and how those options can help
troubleshoot the Sun Ultra 45 or Ultra 25 workstation.
The following example shows output for one ps command.
Note – When using sort with the -r option, the column headings are printed so that the
value in the first column is equal to zero.
TABLE 9-7 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 Enables 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.
# ps -eo pcpu,pid,comm|sort -rn
1.4 100317 /usr/openwin/bin/Xsun
0.9 100460 dtwm
0.1 100677 ps
0.1 100600 ksh
0.1 100591 /usr/dt/bin/dtterm
0.1 100462 /usr/dt/bin/sdtperfmeter
0.1 100333 mibiisa
%CPU PID COMMAND
0.0 100652 /bin/csh
. . .