xref: /freebsd/usr.bin/top/top.1 (revision a00d703f2f438b199d3933d19d535540586b7792)
13be6ef06SEitan Adler.\" $FreeBSD$
2ecc2b89fSHiroki Sato.Dd September 21, 2019
39d6cce02SEitan Adler.Dt TOP 1
49d6cce02SEitan Adler.Os
59d6cce02SEitan Adler.Sh NAME
69d6cce02SEitan Adler.Nm top
79d6cce02SEitan Adler.Nd display and update information about the top cpu processes
89d6cce02SEitan Adler.Sh SYNOPSIS
99d6cce02SEitan Adler.Nm
109d6cce02SEitan Adler.Op Fl CHIPSTabijnpqtuvxz
119d6cce02SEitan Adler.Op Fl J Ar jail
129d6cce02SEitan Adler.Op Fl U Ar uid
139d6cce02SEitan Adler.Op Fl d Ar count
149d6cce02SEitan Adler.Op Fl m Ar cpu|io
159d6cce02SEitan Adler.Op Fl s Ar time
169d6cce02SEitan Adler.Op Fl o Ar field
179d6cce02SEitan Adler.Op Fl p Ar pid
181a444441SDimitry Andric.Op Ar number
199d6cce02SEitan Adler.Sh DESCRIPTION
209d6cce02SEitan Adler.Nm
213be6ef06SEitan Adlerdisplays the top
223be6ef06SEitan Adlerprocesses on the system and periodically updates this information.
233be6ef06SEitan AdlerIf standard output is an intelligent terminal (see below) then
243be6ef06SEitan Adleras many processes as will fit on the terminal screen are displayed
259d6cce02SEitan Adlerby default.
269d6cce02SEitan AdlerOtherwise, a good number of them are shown (around 20).
279d6cce02SEitan AdlerRaw cpu percentage is used to rank the processes.
289d6cce02SEitan AdlerIf
299d6cce02SEitan Adler.Ar number
303be6ef06SEitan Adleris given, then the top
319d6cce02SEitan Adler.Ar number
323be6ef06SEitan Adlerprocesses will be displayed instead of the default.
339d6cce02SEitan Adler.Pp
349d6cce02SEitan Adler.Nm
353be6ef06SEitan Adlermakes a distinction between terminals that support advanced capabilities
369d6cce02SEitan Adlerand those that do not.
379d6cce02SEitan AdlerThis distinction affects the choice of defaults for certain options.
389d6cce02SEitan AdlerIn the remainder of this document, an \*(lqintelligent\*(rq terminal is one that
393be6ef06SEitan Adlersupports cursor addressing, clear screen, and clear to end of line.
403be6ef06SEitan AdlerConversely, a \*(lqdumb\*(rq terminal is one that does not support such
419d6cce02SEitan Adlerfeatures.
429d6cce02SEitan AdlerIf the output of
439d6cce02SEitan Adler.Nm
443be6ef06SEitan Adleris redirected to a file, it acts as if it were being run on a dumb
453be6ef06SEitan Adlerterminal.
469d6cce02SEitan Adler.Bl -tag -width indent -compact
479d6cce02SEitan Adler.It Fl C
483be6ef06SEitan AdlerToggle CPU display mode.
493be6ef06SEitan AdlerBy default top displays the weighted CPU percentage in the WCPU column
503be6ef06SEitan Adler(this is the same value that
519d6cce02SEitan Adler.Xr ps 1
523be6ef06SEitan Adlerdisplays as CPU).
533be6ef06SEitan AdlerEach time
548fb2c7acSTijl Coosemans.Fl C
553be6ef06SEitan Adlerflag is passed it toggles between \*(lqraw cpu\*(rq mode
563be6ef06SEitan Adlerand \*(lqweighted cpu\*(rq mode, showing the \*(lqCPU\*(rq or
573be6ef06SEitan Adlerthe \*(lqWCPU\*(rq column respectively.
589d6cce02SEitan Adler.It Fl S
599d6cce02SEitan AdlerShow system processes in the display.
609d6cce02SEitan AdlerNormally, system processes such as the pager and the swapper are not shown.
619d6cce02SEitan AdlerThis option makes them visible.
629d6cce02SEitan Adler.It Fl a
633be6ef06SEitan AdlerDisplay command names derived from the argv[] vector, rather than real
649d6cce02SEitan Adlerexecutable name.
659d6cce02SEitan AdlerIt it useful when you want to watch applications, that
669d6cce02SEitan Adlerputs their status information there.
679d6cce02SEitan AdlerIf the real name differs from argv[0],
683be6ef06SEitan Adlerit will be displayed in parenthesis.
69ecc2b89fSHiroki SatoNon-printable characters in the command line are
70ecc2b89fSHiroki Satoencoded in C-style backslash sequences or
71ecc2b89fSHiroki Satoa three digit octal sequences.
729d6cce02SEitan Adler.It Fl b
739d6cce02SEitan AdlerUse \*(lqbatch\*(rq mode.
749d6cce02SEitan AdlerIn this mode, all input from the terminal is
759d6cce02SEitan Adlerignored.
769d6cce02SEitan AdlerInterrupt characters (such as ^C and ^\e) still have an effect.
773be6ef06SEitan AdlerThis is the default on a dumb terminal, or when the output is not a terminal.
789d6cce02SEitan Adler.It Fl H
793be6ef06SEitan AdlerDisplay each thread for a multithreaded process individually.
803be6ef06SEitan AdlerBy default a single summary line is displayed for each process.
819d6cce02SEitan Adler.It Fl i
829d6cce02SEitan AdlerUse \*(lqinteractive\*(rq mode.
839d6cce02SEitan AdlerIn this mode, any input is immediately
849d6cce02SEitan Adlerread for processing.
859d6cce02SEitan AdlerSee the section on \*(lqInteractive Mode\*(rq
863be6ef06SEitan Adlerfor an explanation of
879d6cce02SEitan Adlerwhich keys perform what functions.
889d6cce02SEitan AdlerAfter the command is processed, the
893be6ef06SEitan Adlerscreen will immediately be updated, even if the command was not
909d6cce02SEitan Adlerunderstood.
919d6cce02SEitan AdlerThis mode is the default when standard output is an
923be6ef06SEitan Adlerintelligent terminal.
939d6cce02SEitan Adler.It Fl I
943be6ef06SEitan AdlerDo not display idle processes.
953be6ef06SEitan AdlerBy default, top displays both active and idle processes.
969d6cce02SEitan Adler.It Fl j
973be6ef06SEitan AdlerDisplay the
989d6cce02SEitan Adler.Xr jail 8
993be6ef06SEitan AdlerID.
1009d6cce02SEitan Adler.It Fl T
101fc36f5a7SEitan AdlerToggle displaying thread ID (tid) instead of process id (pid).
1029d6cce02SEitan Adler.It Fl t
1033be6ef06SEitan AdlerDo not display the
1049d6cce02SEitan Adler.Nm
1059d6cce02SEitan Adlerprocess itself.
106fb979f0dSMark Johnston.It Fl m Ar display
1079d6cce02SEitan AdlerDisplay either 'cpu' or 'io' statistics.
1089d6cce02SEitan AdlerDefault is 'cpu'.
1099d6cce02SEitan Adler.It Fl n
1109d6cce02SEitan AdlerUse \*(lqnon-interactive\*(rq mode.
1119d6cce02SEitan AdlerThis is identical to \*(lqbatch\*(rq
1123be6ef06SEitan Adlermode.
1139d6cce02SEitan Adler.It Fl P
1143be6ef06SEitan AdlerDisplay per-cpu CPU usage statistics.
1159d6cce02SEitan Adler.It Fl q
1163be6ef06SEitan AdlerRenice
1179d6cce02SEitan Adler.Nm
1189d6cce02SEitan Adlerto -20 so that it will run faster.
1199d6cce02SEitan AdlerThis can be used when the system is
1203be6ef06SEitan Adlerbeing very sluggish to improve the possibility of discovering the problem.
1213be6ef06SEitan AdlerThis option can only be used by root.
1229d6cce02SEitan Adler.It Fl u
1239d6cce02SEitan AdlerDo not map uid numbers to usernames.
1249d6cce02SEitan AdlerNormally,
1259d6cce02SEitan Adler.Nm
1263be6ef06SEitan Adlerwill read as much of the file \*(lq/etc/passwd\*(rq as is necessary to map
1279d6cce02SEitan Adlerall the user id numbers it encounters into login names.
1289d6cce02SEitan AdlerThis option disables all that, while possibly decreasing execution time.
1299d6cce02SEitan AdlerThe uid numbers are displayed instead of the names.
1309d6cce02SEitan Adler.It Fl v
1313be6ef06SEitan AdlerWrite version number information to stderr then exit immediately.
1329d6cce02SEitan Adler.It Fl w
1333be6ef06SEitan AdlerDisplay approximate swap usage for each process.
1349d6cce02SEitan Adler.It Fl z
1353be6ef06SEitan AdlerDo not display the system idle process.
1369d6cce02SEitan Adler.It Fl d Ar count
1373be6ef06SEitan AdlerShow only
1389d6cce02SEitan Adler.Ar count
1399d6cce02SEitan Adlerdisplays, then exit.
1409d6cce02SEitan AdlerA display is considered to be one update of the
1419d6cce02SEitan Adlerscreen.
1429d6cce02SEitan AdlerThe default is 1 for dumb terminals.
1439d6cce02SEitan AdlerNote that for
1449d6cce02SEitan Adler.Ar count
145d4085250SEitan Adler= 1
146d4085250SEitan Adlerno information is available about the percentage of time spent by the CPU in every state.
1479d6cce02SEitan Adler.It Fl s Ar time
1483be6ef06SEitan AdlerSet the delay between screen updates to
1499d6cce02SEitan Adler.Ar time
150a6f721ecSDimitry Andricseconds, which may be fractional.
1519d6cce02SEitan AdlerThe default delay between updates is 1 second.
1529d6cce02SEitan Adler.It Fl o Ar field
1539d6cce02SEitan AdlerSort the process display area on the specified field.
1549d6cce02SEitan AdlerThe field name
1553be6ef06SEitan Adleris the name of the column as seen in the output, but in lower case:
1563be6ef06SEitan Adler\*(lqcpu\*(lq, \*(rqsize\*(lq, \*(rqres\*(lq, \*(rqtime\*(lq,
1573be6ef06SEitan Adler\*(rqpri\*(lq, \*(rqthreads\*(lq, \*(lqtotal\*(lq, \*(rqread\*(lq,
1583be6ef06SEitan Adler\*(rqwrite\*(lq, \*(rqfault\*(lq, \*(rqvcsw\*(lq, \*(rqivcsw\*(lq,
1593be6ef06SEitan Adler\*(lqjid\*(lq, \*(rqswap\*(lq or \*(rqpid\*(lq.
1609d6cce02SEitan Adler.It Fl p Ar pid
16151b29cb7SRoman BogorodskiyShow only the process
1629d6cce02SEitan Adler.Ar pid .
1639d6cce02SEitan Adler.It Fl J Ar jail
1643be6ef06SEitan AdlerShow only those processes owned by
1659d6cce02SEitan Adler.Ar jail .
1663be6ef06SEitan AdlerThis may be either the
1679d6cce02SEitan Adler.Ar jid
1683be6ef06SEitan Adleror
1699d6cce02SEitan Adler.Ar name
1703be6ef06SEitan Adlerof the jail.
1713be6ef06SEitan AdlerUse
1729d6cce02SEitan Adler0
1733be6ef06SEitan Adlerto limit to host processes.
1749d6cce02SEitan AdlerUsing this option implies
1759d6cce02SEitan Adler.Fl j .
1769d6cce02SEitan Adler.Pp
1779d6cce02SEitan Adler.It Fl U Ar username
1783be6ef06SEitan AdlerShow only those processes owned by
1799d6cce02SEitan Adler.Ar username .
1803be6ef06SEitan AdlerThis option currently only accepts usernames and will not understand
1813be6ef06SEitan Adleruid numbers.
1829d6cce02SEitan Adler.El
1839d6cce02SEitan Adler.Pp
1843be6ef06SEitan AdlerBoth
1859d6cce02SEitan Adler.Ar count
1863be6ef06SEitan Adlerand
1879d6cce02SEitan Adler.Ar number
1883be6ef06SEitan Adlerfields can be specified as \*(lqinfinite\*(rq, indicating that they can
1899d6cce02SEitan Adlerstretch as far as possible.
1909d6cce02SEitan AdlerThis is accomplished by using any proper
1913be6ef06SEitan Adlerprefix of the keywords
1923be6ef06SEitan Adler\*(lqinfinity\*(rq,
1933be6ef06SEitan Adler\*(lqmaximum\*(rq,
1943be6ef06SEitan Adleror
1953be6ef06SEitan Adler\*(lqall\*(rq.
1969d6cce02SEitan AdlerBoolean flags are toggles.
1979d6cce02SEitan AdlerA second specification of any of these options will negate the first.
1989d6cce02SEitan Adler.Sh "INTERACTIVE MODE"
1993be6ef06SEitan AdlerWhen
2009d6cce02SEitan Adler.Nm
2013be6ef06SEitan Adleris running in \*(lqinteractive mode\*(rq, it reads commands from the
2029d6cce02SEitan Adlerterminal and acts upon them accordingly.
2039d6cce02SEitan AdlerIn this mode, the terminal is
2043be6ef06SEitan Adlerput in \*(lqCBREAK\*(rq, so that a character will be
2059d6cce02SEitan Adlerprocessed as soon as it is typed.
2069d6cce02SEitan AdlerAlmost always, a key will be
2073be6ef06SEitan Adlerpressed when
2089d6cce02SEitan Adler.Nm
2093be6ef06SEitan Adleris between displays; that is, while it is waiting for
2109d6cce02SEitan Adler.Ar time
2119d6cce02SEitan Adlerseconds to elapse.
2129d6cce02SEitan AdlerIf this is the case, the command will be
2133be6ef06SEitan Adlerprocessed and the display will be updated immediately thereafter
2149d6cce02SEitan Adler(reflecting any changes that the command may have specified).
2159d6cce02SEitan AdlerThis
2169d6cce02SEitan Adlerhappens even if the command was incorrect.
2179d6cce02SEitan AdlerIf a key is pressed while
2189d6cce02SEitan Adler.Nm
2193be6ef06SEitan Adleris in the middle of updating the display, it will finish the update and
2209d6cce02SEitan Adlerthen process the command.
2219d6cce02SEitan AdlerSome commands require additional information,
2229d6cce02SEitan Adlerand the user will be prompted accordingly.
2239d6cce02SEitan AdlerWhile typing this information
2243be6ef06SEitan Adlerin, the user's erase and kill keys (as set up by the command
2259d6cce02SEitan Adler.Xr stty 1 )
2263be6ef06SEitan Adlerare recognized, and a newline terminates the input.
2279d6cce02SEitan Adler.Pp
2283be6ef06SEitan AdlerThese commands are currently recognized (^L refers to control-L):
2299d6cce02SEitan Adler.Bl -tag -width indent
2309d6cce02SEitan Adler.It ^L
2313be6ef06SEitan AdlerRedraw the screen.
2329d6cce02SEitan Adler.It h
2339d6cce02SEitan AdlerDisplay a summary of the commands (help screen).
2349d6cce02SEitan AdlerVersion information
2353be6ef06SEitan Adleris included in this display.
2369d6cce02SEitan Adler.It q
2373be6ef06SEitan AdlerQuit
2389d6cce02SEitan Adler.Nm
2399d6cce02SEitan Adler.It d
2403be6ef06SEitan AdlerChange the number of displays to show (prompt for new number).
2413be6ef06SEitan AdlerRemember that the next display counts as one, so typing
2429d6cce02SEitan Adler.It d1
2433be6ef06SEitan Adlerwill make
2449d6cce02SEitan Adler.Nm
2453be6ef06SEitan Adlershow one final display and then immediately exit.
246*a00d703fSJohn Grafton.It /
247*a00d703fSJohn GraftonDisplay only processes that contain the specified string in their
248*a00d703fSJohn Graftoncommand name.
249*a00d703fSJohn GraftonIf displaying arguments is enabled, the arguments are searched
250*a00d703fSJohn Graftontoo. '+' shows all processes.
2519d6cce02SEitan Adler.It m
2523be6ef06SEitan AdlerToggle the display between 'cpu' and 'io' modes.
2539d6cce02SEitan Adler.It n or #
2543be6ef06SEitan AdlerChange the number of processes to display (prompt for new number).
2559d6cce02SEitan Adler.It s
2563be6ef06SEitan AdlerChange the number of seconds to delay between displays
2573be6ef06SEitan Adler(prompt for new number).
2589d6cce02SEitan Adler.It S
2593be6ef06SEitan AdlerToggle the display of system processes.
2609d6cce02SEitan Adler.It a
2613be6ef06SEitan AdlerToggle the display of process titles.
2629d6cce02SEitan Adler.It k
2639d6cce02SEitan AdlerSend a signal (\*(lqkill\*(rq by default) to a list of processes.
2643be6ef06SEitan AdlerThis acts similarly to the command
2659d6cce02SEitan Adler.Xr kill 1 .
2669d6cce02SEitan Adler.It r
2679d6cce02SEitan AdlerChange the priority (the \*(lqnice\*(rq) of a list of processes.
2689d6cce02SEitan AdlerThis acts similarly to
2699d6cce02SEitan Adler.Xr renice 8 .
2709d6cce02SEitan Adler.It u
2713be6ef06SEitan AdlerDisplay only processes owned by a specific set of usernames (prompt for
2729d6cce02SEitan Adlerusername).
2739d6cce02SEitan AdlerIf the username specified is simply \*(lq+\*(rq or \*(lq-\*(rq,
2749d6cce02SEitan Adlerthen processes belonging to all users will be displayed.
2759d6cce02SEitan AdlerUsernames can be added
2763be6ef06SEitan Adlerto and removed from the set by prepending them with \*(lq+\*(rq and
2773be6ef06SEitan Adler\*(lq-\*(rq, respectively.
2789d6cce02SEitan Adler.It o
2799d6cce02SEitan AdlerChange the order in which the display is sorted.
2809d6cce02SEitan AdlerThe sort key names include
2819d6cce02SEitan Adler\*(lqcpu\*(rq, \*(lqres\*(rq, \*(lqsize\*(rq,
2829d6cce02SEitan Adler\*(lqtime\*(rq.
2839d6cce02SEitan AdlerThe default is cpu.
2849d6cce02SEitan Adler.It p
28551b29cb7SRoman BogorodskiyDisplay a specific process (prompt for pid).
28651b29cb7SRoman BogorodskiyIf the pid specified is simply \*(lq+\*(rq, then show all processes.
2879d6cce02SEitan Adler.It e
2883be6ef06SEitan AdlerDisplay a list of system errors (if any) generated by the last
2893be6ef06SEitan Adlercommand.
2909d6cce02SEitan Adler.It B H
2913be6ef06SEitan AdlerToggle the display of threads.
2929d6cce02SEitan Adler.It i or I
2933be6ef06SEitan AdlerToggle the display of idle processes.
2949d6cce02SEitan Adler.It j
2953be6ef06SEitan AdlerToggle the display of
2969d6cce02SEitan Adler.Xr jail 8
2973be6ef06SEitan AdlerID.
2989d6cce02SEitan Adler.It J
2993be6ef06SEitan AdlerDisplay only processes owned by a specific jail (prompt for jail).
3003be6ef06SEitan AdlerIf the jail specified is simply \*(lq+\*(rq, then processes belonging
3013be6ef06SEitan Adlerto all jails and the host will be displayed.
3023be6ef06SEitan AdlerThis will also enable the display of JID.
3039d6cce02SEitan Adler.It P
3043be6ef06SEitan AdlerToggle the display of per-CPU statistics.
3059d6cce02SEitan Adler.It T
3069d6cce02SEitan AdlerToggle display of TID and PID
3079d6cce02SEitan Adler.It t
3083be6ef06SEitan AdlerToggle the display of the
3099d6cce02SEitan Adler.Nm
3103be6ef06SEitan Adlerprocess.
3119d6cce02SEitan Adler.It w
3123be6ef06SEitan AdlerToggle the display of swap usage.
3139d6cce02SEitan Adler.It z
3143be6ef06SEitan AdlerToggle the display of the system idle process.
3159d6cce02SEitan Adler.El
3169d6cce02SEitan Adler.Sh "THE DISPLAY"
3173be6ef06SEitan AdlerThe top few lines of the display show general information
3183be6ef06SEitan Adlerabout the state of the system, including
3193be6ef06SEitan Adlerthe last process id assigned to a process (on most systems),
3203be6ef06SEitan Adlerthe three load averages,
3213be6ef06SEitan Adlerthe current time,
3223be6ef06SEitan Adlerthe number of existing processes,
3233be6ef06SEitan Adlerthe number of processes in each state
3243be6ef06SEitan Adler(sleeping, running, starting, zombies, and stopped),
3253be6ef06SEitan Adlerand a percentage of time spent in each of the processor states
3263be6ef06SEitan Adler(user, nice, system, and idle).
3273be6ef06SEitan AdlerIt also includes information about physical and virtual memory allocation.
3289d6cce02SEitan Adler.Pp
3293be6ef06SEitan AdlerThe remainder of the screen displays information about individual
3309d6cce02SEitan Adlerprocesses.
3319d6cce02SEitan AdlerThis display is similar in spirit to
3329d6cce02SEitan Adler.Xr ps 1
3339d6cce02SEitan Adlerbut it is not exactly the same.
3349d6cce02SEitan AdlerPID is the process id,
3353be6ef06SEitan AdlerJID, when displayed, is the
3369d6cce02SEitan Adler.Xr jail 8
3373be6ef06SEitan AdlerID corresponding to the process,
3383be6ef06SEitan AdlerUSERNAME is the name of the process's owner (if
3399d6cce02SEitan Adler.Fl u
3403be6ef06SEitan Adleris specified, a UID column will be substituted for USERNAME),
3413be6ef06SEitan AdlerPRI is the current priority of the process,
3429d6cce02SEitan AdlerNICE is the
3439d6cce02SEitan Adler.Xr nice 1
3449d6cce02SEitan Adleramount,
3453be6ef06SEitan AdlerSIZE is the total size of the process (text, data, and stack),
3463be6ef06SEitan AdlerRES is the current amount of resident memory,
3473be6ef06SEitan AdlerSWAP is the approximate amount of swap, if enabled
3483be6ef06SEitan Adler(SIZE, RES and SWAP are given in kilobytes),
3493be6ef06SEitan AdlerSTATE is the current state (one of \*(lqSTART\*(rq, \*(lqRUN\*(rq
3503be6ef06SEitan Adler(shown as \*(lqCPUn\*(rq on SMP systems), \*(lqSLEEP\*(rq, \*(lqSTOP\*(rq,
3513be6ef06SEitan Adler\*(lqZOMB\*(rq, \*(lqWAIT\*(rq, \*(lqLOCK\*(rq or the event on which the
3523be6ef06SEitan Adlerprocess waits),
3533be6ef06SEitan AdlerC is the processor number on which the process is executing
3543be6ef06SEitan Adler(visible only on SMP systems),
3553be6ef06SEitan AdlerTIME is the number of system and user cpu seconds that the process has used,
3563be6ef06SEitan AdlerWCPU, when displayed, is the weighted cpu percentage (this is the same
3573be6ef06SEitan Adlervalue that
3589d6cce02SEitan Adler.Xr ps 1
3593be6ef06SEitan Adlerdisplays as CPU),
3603be6ef06SEitan AdlerCPU is the raw percentage and is the field that is sorted to determine
3613be6ef06SEitan Adlerthe order of the processes, and
3623be6ef06SEitan AdlerCOMMAND is the name of the command that the process is currently running
3633be6ef06SEitan Adler(if the process is swapped out, this column is marked \*(lq<swapped>\*(rq).
3649d6cce02SEitan Adler.Pp
3653be6ef06SEitan AdlerIf a process is in the \*(lqSLEEP\*(rq or \*(lqLOCK\*(rq state,
3663be6ef06SEitan Adlerthe state column will report the name of the event or lock on which the
3673be6ef06SEitan Adlerprocess is waiting.
3683be6ef06SEitan AdlerLock names are prefixed with an asterisk \*(lq*\*(rq while sleep events
3693be6ef06SEitan Adlerare not.
370fab44dc3SMateusz Piotrowski.Sh DESCRIPTION OF MEMORY
371fab44dc3SMateusz Piotrowski.Bd -literal
372fab44dc3SMateusz PiotrowskiMem: 61M Active, 86M Inact, 368K Laundry, 22G Wired, 102G Free
373fab44dc3SMateusz PiotrowskiARC: 15G Total, 9303M MFU, 6155M MRU, 1464K Anon, 98M Header, 35M Other
374fab44dc3SMateusz Piotrowski     15G Compressed, 27G Uncompressed, 1.75:1 Ratio, 174M Overhead
375fab44dc3SMateusz PiotrowskiSwap: 4096M Total, 532M Free, 13% Inuse, 80K In, 104K Out
376fab44dc3SMateusz Piotrowski.Ed
377fab44dc3SMateusz Piotrowski.Ss Physical Memory Stats
378fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact
379fab44dc3SMateusz Piotrowski.It Em Active
380fab44dc3SMateusz Piotrowskinumber of bytes active
381fab44dc3SMateusz Piotrowski.It Em Inact
382fab44dc3SMateusz Piotrowskinumber of clean bytes inactive
383fab44dc3SMateusz Piotrowski.It Em Laundry
384fab44dc3SMateusz Piotrowskinumber of dirty bytes queued for laundering
385fab44dc3SMateusz Piotrowski.It Em Wired
386fab44dc3SMateusz Piotrowskinumber of bytes wired down, including IO-level cached file data pages
387fab44dc3SMateusz Piotrowski.It Em Buf
388fab44dc3SMateusz Piotrowskinumber of bytes used for IO-level disk caching
389fab44dc3SMateusz Piotrowski.It Em Free
390fab44dc3SMateusz Piotrowskinumber of bytes free
391fab44dc3SMateusz Piotrowski.El
392fab44dc3SMateusz Piotrowski.Ss ZFS ARC Stats
393fab44dc3SMateusz PiotrowskiThese stats are only displayed when the ARC is in use.
3949d6cce02SEitan Adler.Pp
395fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact
396fab44dc3SMateusz Piotrowski.It Em Total
397fab44dc3SMateusz Piotrowskinumber of wired bytes used for the ZFS ARC
398fab44dc3SMateusz Piotrowski.It Em MRU
399fab44dc3SMateusz Piotrowskinumber of ARC bytes holding most recently used data
400fab44dc3SMateusz Piotrowski.It Em MFU
401fab44dc3SMateusz Piotrowskinumber of ARC bytes holding most frequently used data
402fab44dc3SMateusz Piotrowski.It Em Anon
403fab44dc3SMateusz Piotrowskinumber of ARC bytes holding in flight data
404fab44dc3SMateusz Piotrowski.It Em Header
405fab44dc3SMateusz Piotrowskinumber of ARC bytes holding headers
406fab44dc3SMateusz Piotrowski.It Em Other
407fab44dc3SMateusz Piotrowskimiscellaneous ARC bytes
408fab44dc3SMateusz Piotrowski.It Em Compressed
409fab44dc3SMateusz Piotrowskibytes of memory used by ARC caches
410fab44dc3SMateusz Piotrowski.It Em Uncompressed
411fab44dc3SMateusz Piotrowskibytes of data stored in ARC caches before compression
412fab44dc3SMateusz Piotrowski.It Em Ratio
413fab44dc3SMateusz Piotrowskicompression ratio of data cached in the ARC
414fab44dc3SMateusz Piotrowski.El
415fab44dc3SMateusz Piotrowski.Ss Swap Stats
416fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact
417fab44dc3SMateusz Piotrowski.It Em Total
418fab44dc3SMateusz Piotrowskitotal available swap usage
419fab44dc3SMateusz Piotrowski.It Em Free
420fab44dc3SMateusz Piotrowskitotal free swap usage
421fab44dc3SMateusz Piotrowski.It Em Inuse
422fab44dc3SMateusz Piotrowskiswap usage
423fab44dc3SMateusz Piotrowski.It Em \&In
424fab44dc3SMateusz Piotrowskibytes paged in from swap devices (last interval)
425fab44dc3SMateusz Piotrowski.It Em Out
426fab44dc3SMateusz Piotrowskibytes paged out to swap devices (last interval)
427fab44dc3SMateusz Piotrowski.El
4289d6cce02SEitan Adler.Sh ENVIRONMENT
429fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed"
430fab44dc3SMateusz Piotrowski.It Ev TOP
4319d6cce02SEitan AdlerDefault set of arguments to
4329d6cce02SEitan Adler.Nm .
433ecc2b89fSHiroki Sato.It Ev LC_CTYPE
434ecc2b89fSHiroki SatoThe locale to use when displaying the
435ecc2b89fSHiroki Sato.Va argv
436ecc2b89fSHiroki Satovector when
437ecc2b89fSHiroki Sato.Fl a
438ecc2b89fSHiroki Satoflag is specified.
4399d6cce02SEitan Adler.El
4409d6cce02SEitan Adler.Sh SEE ALSO
4419d6cce02SEitan Adler.Xr kill 1 ,
4429d6cce02SEitan Adler.Xr ps 1 ,
4439d6cce02SEitan Adler.Xr stty 1 ,
4449d6cce02SEitan Adler.Xr getrusage 2 ,
4459d6cce02SEitan Adler.Xr humanize_number 3 ,
4469d6cce02SEitan Adler.Xr mem 4 ,
4479d6cce02SEitan Adler.Xr renice 8
448fab44dc3SMateusz Piotrowski.Sh AUTHORS
449fab44dc3SMateusz Piotrowski.An William LeFebvre, EECS Department, Northwestern University
450fab44dc3SMateusz Piotrowski.Sh BUGS
451fab44dc3SMateusz PiotrowskiThe command name for swapped processes should be tracked down, but this
452fab44dc3SMateusz Piotrowskiwould make the program run slower.
453fab44dc3SMateusz Piotrowski.Pp
454fab44dc3SMateusz PiotrowskiAs with
455fab44dc3SMateusz Piotrowski.Xr ps 1 ,
456fab44dc3SMateusz Piotrowskithings can change while
457fab44dc3SMateusz Piotrowski.Nm
458fab44dc3SMateusz Piotrowskiis collecting information for an update.
459fab44dc3SMateusz PiotrowskiThe picture it gives is only a close approximation to reality.
460