2000-07-20 13:27:58 +00:00
|
|
|
.\" $FreeBSD$
|
2018-10-02 08:13:54 +00:00
|
|
|
.Dd October 2, 2018
|
2018-06-09 21:40:33 +00:00
|
|
|
.Dt TOP 1
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm top
|
|
|
|
.Nd display and update information about the top cpu processes
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl CHIPSTabijnpqtuvxz
|
|
|
|
.Op Fl J Ar jail
|
|
|
|
.Op Fl U Ar uid
|
|
|
|
.Op Fl d Ar count
|
|
|
|
.Op Fl m Ar cpu|io
|
|
|
|
.Op Fl s Ar time
|
|
|
|
.Op Fl o Ar field
|
|
|
|
.Op Fl p Ar pid
|
|
|
|
.Op Ar count
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
displays the top
|
|
|
|
processes on the system and periodically updates this information.
|
|
|
|
If standard output is an intelligent terminal (see below) then
|
|
|
|
as many processes as will fit on the terminal screen are displayed
|
2018-06-09 21:40:33 +00:00
|
|
|
by default.
|
|
|
|
Otherwise, a good number of them are shown (around 20).
|
|
|
|
Raw cpu percentage is used to rank the processes.
|
|
|
|
If
|
|
|
|
.Ar number
|
1997-03-23 18:51:21 +00:00
|
|
|
is given, then the top
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar number
|
1997-03-23 18:51:21 +00:00
|
|
|
processes will be displayed instead of the default.
|
2018-06-09 21:40:33 +00:00
|
|
|
.Pp
|
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
makes a distinction between terminals that support advanced capabilities
|
2018-06-09 21:40:33 +00:00
|
|
|
and those that do not.
|
|
|
|
This distinction affects the choice of defaults for certain options.
|
|
|
|
In the remainder of this document, an \*(lqintelligent\*(rq terminal is one that
|
1997-03-23 18:51:21 +00:00
|
|
|
supports cursor addressing, clear screen, and clear to end of line.
|
|
|
|
Conversely, a \*(lqdumb\*(rq terminal is one that does not support such
|
2018-06-09 21:40:33 +00:00
|
|
|
features.
|
|
|
|
If the output of
|
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
is redirected to a file, it acts as if it were being run on a dumb
|
|
|
|
terminal.
|
2018-06-09 21:40:33 +00:00
|
|
|
.Bl -tag -width indent -compact
|
|
|
|
.It Fl C
|
2006-04-19 11:47:51 +00:00
|
|
|
Toggle CPU display mode.
|
|
|
|
By default top displays the weighted CPU percentage in the WCPU column
|
|
|
|
(this is the same value that
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr ps 1
|
2006-04-19 11:47:51 +00:00
|
|
|
displays as CPU).
|
|
|
|
Each time
|
2019-07-12 21:19:47 +00:00
|
|
|
.Fl C
|
2006-04-19 11:47:51 +00:00
|
|
|
flag is passed it toggles between \*(lqraw cpu\*(rq mode
|
|
|
|
and \*(lqweighted cpu\*(rq mode, showing the \*(lqCPU\*(rq or
|
|
|
|
the \*(lqWCPU\*(rq column respectively.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl S
|
|
|
|
Show system processes in the display.
|
|
|
|
Normally, system processes such as the pager and the swapper are not shown.
|
|
|
|
This option makes them visible.
|
|
|
|
.It Fl a
|
2007-04-14 10:16:52 +00:00
|
|
|
Display command names derived from the argv[] vector, rather than real
|
2018-06-09 21:40:33 +00:00
|
|
|
executable name.
|
|
|
|
It it useful when you want to watch applications, that
|
|
|
|
puts their status information there.
|
|
|
|
If the real name differs from argv[0],
|
2007-04-14 10:16:52 +00:00
|
|
|
it will be displayed in parenthesis.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl b
|
|
|
|
Use \*(lqbatch\*(rq mode.
|
|
|
|
In this mode, all input from the terminal is
|
|
|
|
ignored.
|
|
|
|
Interrupt characters (such as ^C and ^\e) still have an effect.
|
1997-03-23 18:51:21 +00:00
|
|
|
This is the default on a dumb terminal, or when the output is not a terminal.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl H
|
2011-05-31 15:41:10 +00:00
|
|
|
Display each thread for a multithreaded process individually.
|
|
|
|
By default a single summary line is displayed for each process.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl i
|
|
|
|
Use \*(lqinteractive\*(rq mode.
|
|
|
|
In this mode, any input is immediately
|
|
|
|
read for processing.
|
|
|
|
See the section on \*(lqInteractive Mode\*(rq
|
1997-03-23 18:51:21 +00:00
|
|
|
for an explanation of
|
2018-06-09 21:40:33 +00:00
|
|
|
which keys perform what functions.
|
|
|
|
After the command is processed, the
|
1997-03-23 18:51:21 +00:00
|
|
|
screen will immediately be updated, even if the command was not
|
2018-06-09 21:40:33 +00:00
|
|
|
understood.
|
|
|
|
This mode is the default when standard output is an
|
1997-03-23 18:51:21 +00:00
|
|
|
intelligent terminal.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl I
|
1997-03-23 18:51:21 +00:00
|
|
|
Do not display idle processes.
|
|
|
|
By default, top displays both active and idle processes.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl j
|
2007-04-17 03:12:39 +00:00
|
|
|
Display the
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr jail 8
|
2007-05-04 15:42:58 +00:00
|
|
|
ID.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl T
|
2018-06-09 02:14:33 +00:00
|
|
|
Toggle displaying thread ID (tid) instead of process id (pid).
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl t
|
1998-08-04 14:10:48 +00:00
|
|
|
Do not display the
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
|
|
|
process itself.
|
|
|
|
.It Fl display
|
|
|
|
Display either 'cpu' or 'io' statistics.
|
|
|
|
Default is 'cpu'.
|
|
|
|
.It Fl n
|
|
|
|
Use \*(lqnon-interactive\*(rq mode.
|
|
|
|
This is identical to \*(lqbatch\*(rq
|
1997-03-23 18:51:21 +00:00
|
|
|
mode.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl P
|
2008-06-21 15:48:16 +00:00
|
|
|
Display per-cpu CPU usage statistics.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl q
|
1997-03-23 18:51:21 +00:00
|
|
|
Renice
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
|
|
|
to -20 so that it will run faster.
|
|
|
|
This can be used when the system is
|
1997-03-23 18:51:21 +00:00
|
|
|
being very sluggish to improve the possibility of discovering the problem.
|
|
|
|
This option can only be used by root.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl u
|
|
|
|
Do not map uid numbers to usernames.
|
|
|
|
Normally,
|
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
will read as much of the file \*(lq/etc/passwd\*(rq as is necessary to map
|
2018-06-09 21:40:33 +00:00
|
|
|
all the user id numbers it encounters into login names.
|
|
|
|
This option disables all that, while possibly decreasing execution time.
|
|
|
|
The uid numbers are displayed instead of the names.
|
|
|
|
.It Fl v
|
2002-01-24 17:54:04 +00:00
|
|
|
Write version number information to stderr then exit immediately.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl w
|
2016-09-05 08:27:04 +00:00
|
|
|
Display approximate swap usage for each process.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl z
|
2011-05-31 15:11:23 +00:00
|
|
|
Do not display the system idle process.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl d Ar count
|
1997-03-23 18:51:21 +00:00
|
|
|
Show only
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar count
|
|
|
|
displays, then exit.
|
|
|
|
A display is considered to be one update of the
|
|
|
|
screen.
|
|
|
|
The default is 1 for dumb terminals.
|
|
|
|
Note that for
|
|
|
|
.Ar count
|
2018-05-20 17:59:59 +00:00
|
|
|
= 1
|
|
|
|
no information is available about the percentage of time spent by the CPU in every state.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl s Ar time
|
1997-03-23 18:51:21 +00:00
|
|
|
Set the delay between screen updates to
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar time
|
|
|
|
seconds.
|
|
|
|
The default delay between updates is 1 second.
|
|
|
|
.It Fl o Ar field
|
|
|
|
Sort the process display area on the specified field.
|
|
|
|
The field name
|
2016-09-05 08:27:04 +00:00
|
|
|
is the name of the column as seen in the output, but in lower case:
|
|
|
|
\*(lqcpu\*(lq, \*(rqsize\*(lq, \*(rqres\*(lq, \*(rqtime\*(lq,
|
|
|
|
\*(rqpri\*(lq, \*(rqthreads\*(lq, \*(lqtotal\*(lq, \*(rqread\*(lq,
|
|
|
|
\*(rqwrite\*(lq, \*(rqfault\*(lq, \*(rqvcsw\*(lq, \*(rqivcsw\*(lq,
|
|
|
|
\*(lqjid\*(lq, \*(rqswap\*(lq or \*(rqpid\*(lq.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It Fl p Ar pid
|
2018-06-02 15:52:18 +00:00
|
|
|
Show only the process
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar pid .
|
|
|
|
.It Fl J Ar jail
|
2014-05-02 23:30:39 +00:00
|
|
|
Show only those processes owned by
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar jail .
|
2014-05-02 23:30:39 +00:00
|
|
|
This may be either the
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar jid
|
2014-05-02 23:30:39 +00:00
|
|
|
or
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar name
|
2014-05-02 23:30:39 +00:00
|
|
|
of the jail.
|
|
|
|
Use
|
2018-06-09 21:40:33 +00:00
|
|
|
0
|
2014-05-02 23:30:39 +00:00
|
|
|
to limit to host processes.
|
2018-06-09 21:40:33 +00:00
|
|
|
Using this option implies
|
|
|
|
.Fl j .
|
|
|
|
.Pp
|
|
|
|
.It Fl U Ar username
|
1997-03-23 18:51:21 +00:00
|
|
|
Show only those processes owned by
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar username .
|
1997-03-23 18:51:21 +00:00
|
|
|
This option currently only accepts usernames and will not understand
|
|
|
|
uid numbers.
|
2018-06-09 21:40:33 +00:00
|
|
|
.El
|
|
|
|
.Pp
|
1997-03-23 18:51:21 +00:00
|
|
|
Both
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar count
|
1997-03-23 18:51:21 +00:00
|
|
|
and
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar number
|
1997-03-23 18:51:21 +00:00
|
|
|
fields can be specified as \*(lqinfinite\*(rq, indicating that they can
|
2018-06-09 21:40:33 +00:00
|
|
|
stretch as far as possible.
|
|
|
|
This is accomplished by using any proper
|
1997-03-23 18:51:21 +00:00
|
|
|
prefix of the keywords
|
|
|
|
\*(lqinfinity\*(rq,
|
|
|
|
\*(lqmaximum\*(rq,
|
|
|
|
or
|
|
|
|
\*(lqall\*(rq.
|
2018-06-09 21:40:33 +00:00
|
|
|
Boolean flags are toggles.
|
|
|
|
A second specification of any of these options will negate the first.
|
|
|
|
.Sh "INTERACTIVE MODE"
|
1997-03-23 18:51:21 +00:00
|
|
|
When
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
is running in \*(lqinteractive mode\*(rq, it reads commands from the
|
2018-06-09 21:40:33 +00:00
|
|
|
terminal and acts upon them accordingly.
|
|
|
|
In this mode, the terminal is
|
1997-03-23 18:51:21 +00:00
|
|
|
put in \*(lqCBREAK\*(rq, so that a character will be
|
2018-06-09 21:40:33 +00:00
|
|
|
processed as soon as it is typed.
|
|
|
|
Almost always, a key will be
|
1997-03-23 18:51:21 +00:00
|
|
|
pressed when
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
is between displays; that is, while it is waiting for
|
2018-06-09 21:40:33 +00:00
|
|
|
.Ar time
|
|
|
|
seconds to elapse.
|
|
|
|
If this is the case, the command will be
|
1997-03-23 18:51:21 +00:00
|
|
|
processed and the display will be updated immediately thereafter
|
2018-06-09 21:40:33 +00:00
|
|
|
(reflecting any changes that the command may have specified).
|
|
|
|
This
|
|
|
|
happens even if the command was incorrect.
|
|
|
|
If a key is pressed while
|
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
is in the middle of updating the display, it will finish the update and
|
2018-06-09 21:40:33 +00:00
|
|
|
then process the command.
|
|
|
|
Some commands require additional information,
|
|
|
|
and the user will be prompted accordingly.
|
|
|
|
While typing this information
|
1997-03-23 18:51:21 +00:00
|
|
|
in, the user's erase and kill keys (as set up by the command
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr stty 1 )
|
1997-03-23 18:51:21 +00:00
|
|
|
are recognized, and a newline terminates the input.
|
2018-06-09 21:40:33 +00:00
|
|
|
.Pp
|
1997-03-23 18:51:21 +00:00
|
|
|
These commands are currently recognized (^L refers to control-L):
|
2018-06-09 21:40:33 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It ^L
|
1997-03-23 18:51:21 +00:00
|
|
|
Redraw the screen.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It h
|
|
|
|
Display a summary of the commands (help screen).
|
|
|
|
Version information
|
2002-01-24 17:54:04 +00:00
|
|
|
is included in this display.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It q
|
1997-03-23 18:51:21 +00:00
|
|
|
Quit
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
|
|
|
.It d
|
1997-03-23 18:51:21 +00:00
|
|
|
Change the number of displays to show (prompt for new number).
|
|
|
|
Remember that the next display counts as one, so typing
|
2018-06-09 21:40:33 +00:00
|
|
|
.It d1
|
1997-03-23 18:51:21 +00:00
|
|
|
will make
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
1997-03-23 18:51:21 +00:00
|
|
|
show one final display and then immediately exit.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It m
|
2004-07-01 09:12:38 +00:00
|
|
|
Toggle the display between 'cpu' and 'io' modes.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It n or #
|
1997-03-23 18:51:21 +00:00
|
|
|
Change the number of processes to display (prompt for new number).
|
2018-06-09 21:40:33 +00:00
|
|
|
.It s
|
1997-03-23 18:51:21 +00:00
|
|
|
Change the number of seconds to delay between displays
|
|
|
|
(prompt for new number).
|
2018-06-09 21:40:33 +00:00
|
|
|
.It S
|
2004-07-12 03:00:50 +00:00
|
|
|
Toggle the display of system processes.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It a
|
2007-05-03 22:17:35 +00:00
|
|
|
Toggle the display of process titles.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It k
|
|
|
|
Send a signal (\*(lqkill\*(rq by default) to a list of processes.
|
1997-03-23 18:51:21 +00:00
|
|
|
This acts similarly to the command
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr kill 1 .
|
|
|
|
.It r
|
|
|
|
Change the priority (the \*(lqnice\*(rq) of a list of processes.
|
|
|
|
This acts similarly to
|
|
|
|
.Xr renice 8 .
|
|
|
|
.It u
|
2017-08-07 08:45:08 +00:00
|
|
|
Display only processes owned by a specific set of usernames (prompt for
|
2018-06-09 21:40:33 +00:00
|
|
|
username).
|
|
|
|
If the username specified is simply \*(lq+\*(rq or \*(lq-\*(rq,
|
|
|
|
then processes belonging to all users will be displayed.
|
|
|
|
Usernames can be added
|
2017-08-07 08:45:08 +00:00
|
|
|
to and removed from the set by prepending them with \*(lq+\*(rq and
|
|
|
|
\*(lq-\*(rq, respectively.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It o
|
|
|
|
Change the order in which the display is sorted.
|
|
|
|
The sort key names include
|
|
|
|
\*(lqcpu\*(rq, \*(lqres\*(rq, \*(lqsize\*(rq,
|
|
|
|
\*(lqtime\*(rq.
|
|
|
|
The default is cpu.
|
|
|
|
.It p
|
2018-06-02 15:52:18 +00:00
|
|
|
Display a specific process (prompt for pid).
|
|
|
|
If the pid specified is simply \*(lq+\*(rq, then show all processes.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It e
|
1997-03-23 18:51:21 +00:00
|
|
|
Display a list of system errors (if any) generated by the last
|
|
|
|
command.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It B H
|
2011-05-31 15:41:10 +00:00
|
|
|
Toggle the display of threads.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It i or I
|
1997-03-23 18:51:21 +00:00
|
|
|
Toggle the display of idle processes.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It j
|
2007-04-17 03:12:39 +00:00
|
|
|
Toggle the display of
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr jail 8
|
2007-05-04 15:42:58 +00:00
|
|
|
ID.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It J
|
2014-05-02 23:30:39 +00:00
|
|
|
Display only processes owned by a specific jail (prompt for jail).
|
|
|
|
If the jail specified is simply \*(lq+\*(rq, then processes belonging
|
|
|
|
to all jails and the host will be displayed.
|
|
|
|
This will also enable the display of JID.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It P
|
2011-07-11 16:48:52 +00:00
|
|
|
Toggle the display of per-CPU statistics.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It T
|
|
|
|
Toggle display of TID and PID
|
|
|
|
.It t
|
1998-08-04 14:10:48 +00:00
|
|
|
Toggle the display of the
|
2018-06-09 21:40:33 +00:00
|
|
|
.Nm
|
1998-08-04 14:10:48 +00:00
|
|
|
process.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It w
|
2016-09-05 08:27:04 +00:00
|
|
|
Toggle the display of swap usage.
|
2018-06-09 21:40:33 +00:00
|
|
|
.It z
|
2011-05-31 15:11:23 +00:00
|
|
|
Toggle the display of the system idle process.
|
2018-06-09 21:40:33 +00:00
|
|
|
.El
|
|
|
|
.Sh "THE DISPLAY"
|
1997-03-23 18:51:21 +00:00
|
|
|
The top few lines of the display show general information
|
|
|
|
about the state of the system, including
|
|
|
|
the last process id assigned to a process (on most systems),
|
|
|
|
the three load averages,
|
|
|
|
the current time,
|
|
|
|
the number of existing processes,
|
|
|
|
the number of processes in each state
|
|
|
|
(sleeping, running, starting, zombies, and stopped),
|
|
|
|
and a percentage of time spent in each of the processor states
|
|
|
|
(user, nice, system, and idle).
|
1997-09-13 16:01:53 +00:00
|
|
|
It also includes information about physical and virtual memory allocation.
|
2018-06-09 21:40:33 +00:00
|
|
|
.Pp
|
1997-03-23 18:51:21 +00:00
|
|
|
The remainder of the screen displays information about individual
|
2018-06-09 21:40:33 +00:00
|
|
|
processes.
|
|
|
|
This display is similar in spirit to
|
|
|
|
.Xr ps 1
|
|
|
|
but it is not exactly the same.
|
|
|
|
PID is the process id,
|
|
|
|
JID, when displayed, is the
|
|
|
|
.Xr jail 8
|
2007-04-17 03:12:39 +00:00
|
|
|
ID corresponding to the process,
|
|
|
|
USERNAME is the name of the process's owner (if
|
2018-06-09 21:40:33 +00:00
|
|
|
.Fl u
|
1997-03-23 18:51:21 +00:00
|
|
|
is specified, a UID column will be substituted for USERNAME),
|
|
|
|
PRI is the current priority of the process,
|
2018-06-09 21:40:33 +00:00
|
|
|
NICE is the
|
|
|
|
.Xr nice 1
|
|
|
|
amount,
|
1997-03-23 18:51:21 +00:00
|
|
|
SIZE is the total size of the process (text, data, and stack),
|
2016-09-05 08:27:04 +00:00
|
|
|
RES is the current amount of resident memory,
|
|
|
|
SWAP is the approximate amount of swap, if enabled
|
|
|
|
(SIZE, RES and SWAP are given in kilobytes),
|
2006-05-16 15:27:43 +00:00
|
|
|
STATE is the current state (one of \*(lqSTART\*(rq, \*(lqRUN\*(rq
|
|
|
|
(shown as \*(lqCPUn\*(rq on SMP systems), \*(lqSLEEP\*(rq, \*(lqSTOP\*(rq,
|
|
|
|
\*(lqZOMB\*(rq, \*(lqWAIT\*(rq, \*(lqLOCK\*(rq or the event on which the
|
|
|
|
process waits),
|
|
|
|
C is the processor number on which the process is executing
|
|
|
|
(visible only on SMP systems),
|
1997-03-23 18:51:21 +00:00
|
|
|
TIME is the number of system and user cpu seconds that the process has used,
|
|
|
|
WCPU, when displayed, is the weighted cpu percentage (this is the same
|
|
|
|
value that
|
2018-06-09 21:40:33 +00:00
|
|
|
.Xr ps 1
|
1997-03-23 18:51:21 +00:00
|
|
|
displays as CPU),
|
|
|
|
CPU is the raw percentage and is the field that is sorted to determine
|
|
|
|
the order of the processes, and
|
|
|
|
COMMAND is the name of the command that the process is currently running
|
|
|
|
(if the process is swapped out, this column is marked \*(lq<swapped>\*(rq).
|
2018-06-09 21:40:33 +00:00
|
|
|
.Pp
|
2011-05-31 15:41:10 +00:00
|
|
|
If a process is in the \*(lqSLEEP\*(rq or \*(lqLOCK\*(rq state,
|
|
|
|
the state column will report the name of the event or lock on which the
|
|
|
|
process is waiting.
|
|
|
|
Lock names are prefixed with an asterisk \*(lq*\*(rq while sleep events
|
|
|
|
are not.
|
2018-06-09 21:40:33 +00:00
|
|
|
.Sh DESCRIPTION OF MEMORY
|
2018-10-02 08:13:54 +00:00
|
|
|
.Bd -literal
|
2018-05-19 22:40:23 +00:00
|
|
|
Mem: 61M Active, 86M Inact, 368K Laundry, 22G Wired, 102G Free
|
|
|
|
ARC: 15G Total, 9303M MFU, 6155M MRU, 1464K Anon, 98M Header, 35M Other
|
|
|
|
15G Compressed, 27G Uncompressed, 1.75:1 Ratio, 174M Overhead
|
|
|
|
Swap: 4096M Total, 532M Free, 13% Inuse, 80K In, 104K Out
|
2018-10-02 08:13:54 +00:00
|
|
|
.Ed
|
|
|
|
.Ss Physical Memory Stats
|
|
|
|
.Bl -tag -width "Uncompressed" -compact
|
|
|
|
.It Em Active
|
2018-05-19 22:40:23 +00:00
|
|
|
number of bytes active
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Inact
|
2018-05-19 22:40:23 +00:00
|
|
|
number of clean bytes inactive
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Laundry
|
2018-05-19 22:40:23 +00:00
|
|
|
number of dirty bytes queued for laundering
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Wired
|
2018-06-09 21:40:33 +00:00
|
|
|
number of bytes wired down, including IO-level cached file data pages
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Buf
|
2018-06-09 21:40:33 +00:00
|
|
|
number of bytes used for IO-level disk caching
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Free
|
2018-05-19 22:40:23 +00:00
|
|
|
number of bytes free
|
2018-10-02 08:13:54 +00:00
|
|
|
.El
|
|
|
|
.Ss ZFS ARC Stats
|
2018-05-19 22:40:23 +00:00
|
|
|
These stats are only displayed when the ARC is in use.
|
2018-10-02 08:13:54 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "Uncompressed" -compact
|
|
|
|
.It Em Total
|
2018-05-19 22:40:23 +00:00
|
|
|
number of wired bytes used for the ZFS ARC
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em MRU
|
2018-05-19 22:40:23 +00:00
|
|
|
number of ARC bytes holding most recently used data
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em MFU
|
2018-05-19 22:40:23 +00:00
|
|
|
number of ARC bytes holding most frequently used data
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Anon
|
2018-05-19 22:40:23 +00:00
|
|
|
number of ARC bytes holding in flight data
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Header
|
2018-05-19 22:40:23 +00:00
|
|
|
number of ARC bytes holding headers
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Other
|
2018-05-19 22:40:23 +00:00
|
|
|
miscellaneous ARC bytes
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Compressed
|
2018-05-19 22:40:23 +00:00
|
|
|
bytes of memory used by ARC caches
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Uncompressed
|
2018-05-19 22:40:23 +00:00
|
|
|
bytes of data stored in ARC caches before compression
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Ratio
|
2018-05-19 22:40:23 +00:00
|
|
|
compression ratio of data cached in the ARC
|
2018-10-02 08:13:54 +00:00
|
|
|
.El
|
|
|
|
.Ss Swap Stats
|
|
|
|
.Bl -tag -width "Uncompressed" -compact
|
|
|
|
.It Em Total
|
2018-05-19 22:40:23 +00:00
|
|
|
total available swap usage
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Free
|
2018-05-19 22:40:23 +00:00
|
|
|
total free swap usage
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Inuse
|
2018-05-19 22:40:23 +00:00
|
|
|
swap usage
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em \&In
|
2018-05-19 22:40:23 +00:00
|
|
|
bytes paged in from swap devices (last interval)
|
2018-10-02 08:13:54 +00:00
|
|
|
.It Em Out
|
2018-05-19 22:40:23 +00:00
|
|
|
bytes paged out to swap devices (last interval)
|
2018-06-09 21:40:33 +00:00
|
|
|
.El
|
2018-10-02 08:13:54 +00:00
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.Bl -tag -width "Uncompressed"
|
|
|
|
.It Ev TOP
|
|
|
|
Default set of arguments to
|
|
|
|
.Nm .
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr kill 1 ,
|
|
|
|
.Xr ps 1 ,
|
|
|
|
.Xr stty 1 ,
|
|
|
|
.Xr getrusage 2 ,
|
|
|
|
.Xr humanize_number 3 ,
|
|
|
|
.Xr mem 4 ,
|
|
|
|
.Xr renice 8
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An William LeFebvre, EECS Department, Northwestern University
|
|
|
|
.Sh BUGS
|
|
|
|
The command name for swapped processes should be tracked down, but this
|
|
|
|
would make the program run slower.
|
|
|
|
.Pp
|
|
|
|
As with
|
|
|
|
.Xr ps 1 ,
|
|
|
|
things can change while
|
|
|
|
.Nm
|
|
|
|
is collecting information for an update.
|
|
|
|
The picture it gives is only a close approximation to reality.
|