top.1 (2010 09)

t
top(1) top(1)
NAME
top - display and update information about the top processes on the system
SYNOPSIS
top [-s time ][-d count ][
-q][-u][-w][-h][-P][
-n number][-f filename ][-p pset_id ]
DESCRIPTION
top displays the top processes on the system and periodically updates the information. Raw CPU per-
centage is used to rank the processes.
Options
top recognizes the following command-line options:
-s time Set the delay between screen updates to time seconds. The default delay between
updates is 5 seconds.
-d count Show only count displays, then exit. A display is considered to be one update of the
screen. This option is used to select the number of displays to be shown before the pro-
gram exits.
-q This option runs the top program at the same priority as if it is executed via a
nice
-20 command so that it will execute faster (see nice(1)). This can be very useful in
discovering any system problem when the system is very sluggish. This option is acces-
sible only to users who have appropriate privileges.
-u User ID (uid) numbers are displayed instead of usernames. This improves execution
speed by eliminating the additional time required to map uid numbers to user names.
-h Hides the individual CPU state information for systems having multiple processors.
Only the average CPU status will be displayed.
-n number Show only number processes per screen. Note that, if number is greater than the max-
imum number of processes that can be displayed per screen, this option is ignored. But
when used with -f option, there is no limit on the maximum number of processes that
can be displayed.
-f filename
Output is appended to filename . When -f is used, top defaults to 1 for
-d and 16 for
-n.
-p pset_id Show load averages and process state break down for system and processor set pset_id .
Show only the processes running on the processor set pset_id . This option is supported
only if the kernel supports processor sets functionality.
-P Adds column PSET before column CPU for individual CPU information. Adds columns
PSET before column CPU for each process information. This option is supported only
if the kernel supports processor sets functionality.
-w Show individual CPU information. By default, top does not display any individual
CPU information. The user can toggle between individual process information and
individual CPU information by using the w screen-control key. When used with the -h
option, the -w option overrides the -h option.
Screen-Control Commands
When displaying multiple-screen data,
top recognizes the following keyboard screen-control commands:
j Display next screen if the current screen is not the last screen.
k Display previous screen if the current screen is not the first screen.
t Display the first (top) screen.
w Display individual CPU information in place of individual process information and vice
versa.
Program Termination
To exit the program and resume normal user activities, type
q at any time.
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)