HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)
t
top(1) top(1)
Display Description
Three general classes of information are displayed by
top:
System Data
The first few lines at the top of the display show general information about the state of the sys-
tem, including:
• System name and current time.
• Load averages in the last one, five, and fifteen minutes of all the active processors in
the system.
• Number of existing processes and the number of processes in each state (sleeping,
waiting, running, starting, zombie, and stopped).
• Percentage of time spent in each of the processor states (user, nice, system, idle, inter-
rupt and swapper) per active processor on the system.
• Average value for each of the active processor states (only on multi-processor sys-
tems).
Memory Data
Includes virtual and real memory in use (with the amount of memory considered "active" in
parentheses) and the amount of free memory.
Process Data
Information about individual processes on the system. When process data cannot fit on a sin-
gle screen, top divides the data into two or more screens. To view multiple-screen data, use
the j, k, and t commands described previously. Note that the system- and memory-data
displays are present in each screen of multiple-screen process data.
Process data is displayed in a format similar to that used by ps(1):
CPU Processor number on which the process is executing (only on multi-processor
systems).
TTY Terminal interface used by the process.
PID Process ID number.
PSET ID of the processor set to which the processor belongs. This is shown only
when -P option is used.
USERNAME Name of the owner of the process. When the -u option is specified, the
user ID (uid) is displayed instead of USERNAME.
PRI Current priority of the process.
NI Nice value ranging from −20 to +20.
SIZE Total virtual size of the process in kilobytes. This includes virtual sizes of
text, data, stack, mmap regions, shared memory regions and IO mapped
regions. This may also include virtual memory regions shared with other
processes.
RES Resident size of the process in kilobytes. It includes the sizes of all private
regions in the process. The resident size information is, at best, an approxi-
mate value.
STATE Current state of the process. The various states are sleep, wait, run,
idl, zomb,orstop.
TIME Number of system and CPU seconds the process has consumed.
%WCPU Weighted CPU (central processing unit) percentage.
%CPU Raw CPU percentage. This field is used to sort the top processes.
COMMAND Name of the command the process is currently running.
EXAMPLES
top can be executed with or without command-line options.
To display five screens of data at two-second intervals then automatically exit, use:
Section 1−−888 Hewlett-Packard Company − 2 − HP-UX 11i Version 2: August 2003