13be6ef06SEitan Adler.\" $FreeBSD$ 2b8135ed6SMateusz Piotrowski.Dd November 18, 2021 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 1011253904SMateusz Piotrowski.Op Fl abCHIijnPpqSTtuvxz 119d6cce02SEitan Adler.Op Fl d Ar count 1211253904SMateusz Piotrowski.Op Fl J Ar jail 13*c947fc5fSMateusz Piotrowski.Op Fl m Ar mode 149d6cce02SEitan Adler.Op Fl o Ar field 159d6cce02SEitan Adler.Op Fl p Ar pid 1611253904SMateusz Piotrowski.Op Fl s Ar time 1711253904SMateusz Piotrowski.Op Fl U Ar uid 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. 4611253904SMateusz Piotrowski.Pp 4711253904SMateusz PiotrowskiThe options are as follows: 4811253904SMateusz Piotrowski.Bl -tag -width indent 499d6cce02SEitan Adler.It Fl a 503be6ef06SEitan AdlerDisplay command names derived from the argv[] vector, rather than real 519d6cce02SEitan Adlerexecutable name. 529d6cce02SEitan AdlerIt it useful when you want to watch applications, that 539d6cce02SEitan Adlerputs their status information there. 549d6cce02SEitan AdlerIf the real name differs from argv[0], 553be6ef06SEitan Adlerit will be displayed in parenthesis. 56ecc2b89fSHiroki SatoNon-printable characters in the command line are 57ecc2b89fSHiroki Satoencoded in C-style backslash sequences or 58ecc2b89fSHiroki Satoa three digit octal sequences. 599d6cce02SEitan Adler.It Fl b 609d6cce02SEitan AdlerUse \*(lqbatch\*(rq mode. 619d6cce02SEitan AdlerIn this mode, all input from the terminal is 629d6cce02SEitan Adlerignored. 639d6cce02SEitan AdlerInterrupt characters (such as ^C and ^\e) still have an effect. 643be6ef06SEitan AdlerThis is the default on a dumb terminal, or when the output is not a terminal. 6511253904SMateusz Piotrowski.It Fl C 6611253904SMateusz PiotrowskiToggle CPU display mode. 6711253904SMateusz PiotrowskiBy default top displays the weighted CPU percentage in the WCPU column 6811253904SMateusz Piotrowski(this is the same value that 6911253904SMateusz Piotrowski.Xr ps 1 7011253904SMateusz Piotrowskidisplays as CPU). 7111253904SMateusz PiotrowskiEach time 7211253904SMateusz Piotrowski.Fl C 7311253904SMateusz Piotrowskiflag is passed it toggles between \*(lqraw cpu\*(rq mode 7411253904SMateusz Piotrowskiand \*(lqweighted cpu\*(rq mode, showing the \*(lqCPU\*(rq or 7511253904SMateusz Piotrowskithe \*(lqWCPU\*(rq column respectively. 7611253904SMateusz Piotrowski.It Fl d Ar count 7711253904SMateusz PiotrowskiShow only 7811253904SMateusz Piotrowski.Ar count 7911253904SMateusz Piotrowskidisplays, then exit. 8011253904SMateusz PiotrowskiA display is considered to be one update of the 8111253904SMateusz Piotrowskiscreen. 8211253904SMateusz PiotrowskiThe default is 1 for dumb terminals. 8311253904SMateusz PiotrowskiNote that for 8411253904SMateusz Piotrowski.Ar count 8511253904SMateusz Piotrowski= 1 8611253904SMateusz Piotrowskino information is available about the percentage of time spent by the CPU in every state. 879d6cce02SEitan Adler.It Fl H 883be6ef06SEitan AdlerDisplay each thread for a multithreaded process individually. 893be6ef06SEitan AdlerBy default a single summary line is displayed for each process. 9011253904SMateusz Piotrowski.It Fl I 9111253904SMateusz PiotrowskiDo not display idle processes. 9211253904SMateusz PiotrowskiBy default, top displays both active and idle processes. 939d6cce02SEitan Adler.It Fl i 949d6cce02SEitan AdlerUse \*(lqinteractive\*(rq mode. 959d6cce02SEitan AdlerIn this mode, any input is immediately 969d6cce02SEitan Adlerread for processing. 979d6cce02SEitan AdlerSee the section on \*(lqInteractive Mode\*(rq 983be6ef06SEitan Adlerfor an explanation of 999d6cce02SEitan Adlerwhich keys perform what functions. 1009d6cce02SEitan AdlerAfter the command is processed, the 1013be6ef06SEitan Adlerscreen will immediately be updated, even if the command was not 1029d6cce02SEitan Adlerunderstood. 1039d6cce02SEitan AdlerThis mode is the default when standard output is an 1043be6ef06SEitan Adlerintelligent terminal. 10511253904SMateusz Piotrowski.It Fl J Ar jail 10611253904SMateusz PiotrowskiShow only those processes owned by 10711253904SMateusz Piotrowski.Ar jail . 10811253904SMateusz PiotrowskiThis may be either the 10911253904SMateusz Piotrowski.Ar jid 11011253904SMateusz Piotrowskior 11111253904SMateusz Piotrowski.Ar name 11211253904SMateusz Piotrowskiof the jail. 11311253904SMateusz PiotrowskiUse 11411253904SMateusz Piotrowski0 11511253904SMateusz Piotrowskito limit to host processes. 11611253904SMateusz PiotrowskiUsing this option implies 11711253904SMateusz Piotrowski.Fl j . 1189d6cce02SEitan Adler.It Fl j 1193be6ef06SEitan AdlerDisplay the 1209d6cce02SEitan Adler.Xr jail 8 1213be6ef06SEitan AdlerID. 122*c947fc5fSMateusz Piotrowski.It Fl m Ar mode 123*c947fc5fSMateusz PiotrowskiDisplay statistics in the specified 124*c947fc5fSMateusz Piotrowski.Ar mode . 125*c947fc5fSMateusz PiotrowskiAvailable modes are 126*c947fc5fSMateusz Piotrowski.Cm cpu 127*c947fc5fSMateusz Piotrowskiand 128*c947fc5fSMateusz Piotrowski.Cm io . 129*c947fc5fSMateusz PiotrowskiDefault is 130*c947fc5fSMateusz Piotrowski.Cm cpu . 1319d6cce02SEitan Adler.It Fl n 1329d6cce02SEitan AdlerUse \*(lqnon-interactive\*(rq mode. 1339d6cce02SEitan AdlerThis is identical to \*(lqbatch\*(rq 1343be6ef06SEitan Adlermode. 13511253904SMateusz Piotrowski.It Fl o Ar field 13611253904SMateusz PiotrowskiSort the process display area on the specified field. 13711253904SMateusz PiotrowskiThe field name 13811253904SMateusz Piotrowskiis the name of the column as seen in the output, but in lower case: 13911253904SMateusz Piotrowski\*(lqcpu\*(lq, \*(rqsize\*(lq, \*(rqres\*(lq, \*(rqtime\*(lq, 14011253904SMateusz Piotrowski\*(rqpri\*(lq, \*(rqthreads\*(lq, \*(lqtotal\*(lq, \*(rqread\*(lq, 14111253904SMateusz Piotrowski\*(rqwrite\*(lq, \*(rqfault\*(lq, \*(rqvcsw\*(lq, \*(rqivcsw\*(lq, 14211253904SMateusz Piotrowski\*(lqjid\*(lq, \*(rqswap\*(lq or \*(rqpid\*(lq. 1439d6cce02SEitan Adler.It Fl P 1443be6ef06SEitan AdlerDisplay per-cpu CPU usage statistics. 14511253904SMateusz Piotrowski.It Fl p Ar pid 14611253904SMateusz PiotrowskiShow only the process 14711253904SMateusz Piotrowski.Ar pid . 1489d6cce02SEitan Adler.It Fl q 1493be6ef06SEitan AdlerRenice 1509d6cce02SEitan Adler.Nm 1519d6cce02SEitan Adlerto -20 so that it will run faster. 1529d6cce02SEitan AdlerThis can be used when the system is 1533be6ef06SEitan Adlerbeing very sluggish to improve the possibility of discovering the problem. 1543be6ef06SEitan AdlerThis option can only be used by root. 15511253904SMateusz Piotrowski.It Fl S 15611253904SMateusz PiotrowskiShow system processes in the display. 15711253904SMateusz PiotrowskiNormally, system processes such as the pager and the swapper are not shown. 15811253904SMateusz PiotrowskiThis option makes them visible. 15911253904SMateusz Piotrowski.It Fl s Ar time 16011253904SMateusz PiotrowskiSet the delay between screen updates to 16111253904SMateusz Piotrowski.Ar time 16211253904SMateusz Piotrowskiseconds, which may be fractional. 16311253904SMateusz PiotrowskiThe default delay between updates is 1 second. 16411253904SMateusz Piotrowski.It Fl T 16511253904SMateusz PiotrowskiToggle displaying thread ID (tid) instead of process id (pid). 16611253904SMateusz Piotrowski.It Fl t 16711253904SMateusz PiotrowskiDo not display the 16811253904SMateusz Piotrowski.Nm 16911253904SMateusz Piotrowskiprocess itself. 17011253904SMateusz Piotrowski.It Fl U Ar username 17111253904SMateusz PiotrowskiShow only those processes owned by 17211253904SMateusz Piotrowski.Ar username . 17311253904SMateusz PiotrowskiThis option currently only accepts usernames and will not understand 17411253904SMateusz Piotrowskiuid numbers. 1759d6cce02SEitan Adler.It Fl u 1769d6cce02SEitan AdlerDo not map uid numbers to usernames. 1779d6cce02SEitan AdlerNormally, 1789d6cce02SEitan Adler.Nm 1793be6ef06SEitan Adlerwill read as much of the file \*(lq/etc/passwd\*(rq as is necessary to map 1809d6cce02SEitan Adlerall the user id numbers it encounters into login names. 1819d6cce02SEitan AdlerThis option disables all that, while possibly decreasing execution time. 1829d6cce02SEitan AdlerThe uid numbers are displayed instead of the names. 1839d6cce02SEitan Adler.It Fl v 1843be6ef06SEitan AdlerWrite version number information to stderr then exit immediately. 1859d6cce02SEitan Adler.It Fl w 1863be6ef06SEitan AdlerDisplay approximate swap usage for each process. 1879d6cce02SEitan Adler.It Fl z 1883be6ef06SEitan AdlerDo not display the system idle process. 1899d6cce02SEitan Adler.El 1909d6cce02SEitan Adler.Pp 1913be6ef06SEitan AdlerBoth 1929d6cce02SEitan Adler.Ar count 1933be6ef06SEitan Adlerand 1949d6cce02SEitan Adler.Ar number 1953be6ef06SEitan Adlerfields can be specified as \*(lqinfinite\*(rq, indicating that they can 1969d6cce02SEitan Adlerstretch as far as possible. 1979d6cce02SEitan AdlerThis is accomplished by using any proper 1983be6ef06SEitan Adlerprefix of the keywords 1993be6ef06SEitan Adler\*(lqinfinity\*(rq, 2003be6ef06SEitan Adler\*(lqmaximum\*(rq, 2013be6ef06SEitan Adleror 2023be6ef06SEitan Adler\*(lqall\*(rq. 2039d6cce02SEitan AdlerBoolean flags are toggles. 2049d6cce02SEitan AdlerA second specification of any of these options will negate the first. 2059d6cce02SEitan Adler.Sh "INTERACTIVE MODE" 2063be6ef06SEitan AdlerWhen 2079d6cce02SEitan Adler.Nm 2083be6ef06SEitan Adleris running in \*(lqinteractive mode\*(rq, it reads commands from the 2099d6cce02SEitan Adlerterminal and acts upon them accordingly. 2109d6cce02SEitan AdlerIn this mode, the terminal is 2113be6ef06SEitan Adlerput in \*(lqCBREAK\*(rq, so that a character will be 2129d6cce02SEitan Adlerprocessed as soon as it is typed. 2139d6cce02SEitan AdlerAlmost always, a key will be 2143be6ef06SEitan Adlerpressed when 2159d6cce02SEitan Adler.Nm 2163be6ef06SEitan Adleris between displays; that is, while it is waiting for 2179d6cce02SEitan Adler.Ar time 2189d6cce02SEitan Adlerseconds to elapse. 2199d6cce02SEitan AdlerIf this is the case, the command will be 2203be6ef06SEitan Adlerprocessed and the display will be updated immediately thereafter 2219d6cce02SEitan Adler(reflecting any changes that the command may have specified). 2229d6cce02SEitan AdlerThis 2239d6cce02SEitan Adlerhappens even if the command was incorrect. 2249d6cce02SEitan AdlerIf a key is pressed while 2259d6cce02SEitan Adler.Nm 2263be6ef06SEitan Adleris in the middle of updating the display, it will finish the update and 2279d6cce02SEitan Adlerthen process the command. 2289d6cce02SEitan AdlerSome commands require additional information, 2299d6cce02SEitan Adlerand the user will be prompted accordingly. 2309d6cce02SEitan AdlerWhile typing this information 2313be6ef06SEitan Adlerin, the user's erase and kill keys (as set up by the command 2329d6cce02SEitan Adler.Xr stty 1 ) 2333be6ef06SEitan Adlerare recognized, and a newline terminates the input. 2349d6cce02SEitan Adler.Pp 2353be6ef06SEitan AdlerThese commands are currently recognized (^L refers to control-L): 2369d6cce02SEitan Adler.Bl -tag -width indent 2379d6cce02SEitan Adler.It ^L 2383be6ef06SEitan AdlerRedraw the screen. 2399d6cce02SEitan Adler.It h 2409d6cce02SEitan AdlerDisplay a summary of the commands (help screen). 2419d6cce02SEitan AdlerVersion information 2423be6ef06SEitan Adleris included in this display. 2439d6cce02SEitan Adler.It q 2443be6ef06SEitan AdlerQuit 2459d6cce02SEitan Adler.Nm 2469d6cce02SEitan Adler.It d 2473be6ef06SEitan AdlerChange the number of displays to show (prompt for new number). 24811253904SMateusz PiotrowskiRemember that the next display counts as one, so typing 'd1' will make 2499d6cce02SEitan Adler.Nm 2503be6ef06SEitan Adlershow one final display and then immediately exit. 251a00d703fSJohn Grafton.It / 252a00d703fSJohn GraftonDisplay only processes that contain the specified string in their 253a00d703fSJohn Graftoncommand name. 254a00d703fSJohn GraftonIf displaying arguments is enabled, the arguments are searched 255a00d703fSJohn Graftontoo. '+' shows all processes. 2569d6cce02SEitan Adler.It m 2573be6ef06SEitan AdlerToggle the display between 'cpu' and 'io' modes. 2589d6cce02SEitan Adler.It n or # 2593be6ef06SEitan AdlerChange the number of processes to display (prompt for new number). 2609d6cce02SEitan Adler.It s 2613be6ef06SEitan AdlerChange the number of seconds to delay between displays 2623be6ef06SEitan Adler(prompt for new number). 2639d6cce02SEitan Adler.It S 2643be6ef06SEitan AdlerToggle the display of system processes. 2659d6cce02SEitan Adler.It a 2663be6ef06SEitan AdlerToggle the display of process titles. 2679d6cce02SEitan Adler.It k 2689d6cce02SEitan AdlerSend a signal (\*(lqkill\*(rq by default) to a list of processes. 2693be6ef06SEitan AdlerThis acts similarly to the command 2709d6cce02SEitan Adler.Xr kill 1 . 2719d6cce02SEitan Adler.It r 2729d6cce02SEitan AdlerChange the priority (the \*(lqnice\*(rq) of a list of processes. 2739d6cce02SEitan AdlerThis acts similarly to 2749d6cce02SEitan Adler.Xr renice 8 . 2759d6cce02SEitan Adler.It u 2763be6ef06SEitan AdlerDisplay only processes owned by a specific set of usernames (prompt for 2779d6cce02SEitan Adlerusername). 2789d6cce02SEitan AdlerIf the username specified is simply \*(lq+\*(rq or \*(lq-\*(rq, 2799d6cce02SEitan Adlerthen processes belonging to all users will be displayed. 2809d6cce02SEitan AdlerUsernames can be added 2813be6ef06SEitan Adlerto and removed from the set by prepending them with \*(lq+\*(rq and 2823be6ef06SEitan Adler\*(lq-\*(rq, respectively. 2839d6cce02SEitan Adler.It o 2849d6cce02SEitan AdlerChange the order in which the display is sorted. 2859d6cce02SEitan AdlerThe sort key names include 2869d6cce02SEitan Adler\*(lqcpu\*(rq, \*(lqres\*(rq, \*(lqsize\*(rq, 2879d6cce02SEitan Adler\*(lqtime\*(rq. 2889d6cce02SEitan AdlerThe default is cpu. 2899d6cce02SEitan Adler.It p 29051b29cb7SRoman BogorodskiyDisplay a specific process (prompt for pid). 29151b29cb7SRoman BogorodskiyIf the pid specified is simply \*(lq+\*(rq, then show all processes. 2929d6cce02SEitan Adler.It e 2933be6ef06SEitan AdlerDisplay a list of system errors (if any) generated by the last 2943be6ef06SEitan Adlercommand. 295b8135ed6SMateusz Piotrowski.It H 2963be6ef06SEitan AdlerToggle the display of threads. 2979d6cce02SEitan Adler.It i or I 2983be6ef06SEitan AdlerToggle the display of idle processes. 2999d6cce02SEitan Adler.It j 3003be6ef06SEitan AdlerToggle the display of 3019d6cce02SEitan Adler.Xr jail 8 3023be6ef06SEitan AdlerID. 3039d6cce02SEitan Adler.It J 3043be6ef06SEitan AdlerDisplay only processes owned by a specific jail (prompt for jail). 3053be6ef06SEitan AdlerIf the jail specified is simply \*(lq+\*(rq, then processes belonging 3063be6ef06SEitan Adlerto all jails and the host will be displayed. 3073be6ef06SEitan AdlerThis will also enable the display of JID. 3089d6cce02SEitan Adler.It P 3093be6ef06SEitan AdlerToggle the display of per-CPU statistics. 3109d6cce02SEitan Adler.It T 3119d6cce02SEitan AdlerToggle display of TID and PID 3129d6cce02SEitan Adler.It t 3133be6ef06SEitan AdlerToggle the display of the 3149d6cce02SEitan Adler.Nm 3153be6ef06SEitan Adlerprocess. 3169d6cce02SEitan Adler.It w 3173be6ef06SEitan AdlerToggle the display of swap usage. 3189d6cce02SEitan Adler.It z 3193be6ef06SEitan AdlerToggle the display of the system idle process. 3209d6cce02SEitan Adler.El 3219d6cce02SEitan Adler.Sh "THE DISPLAY" 3223be6ef06SEitan AdlerThe top few lines of the display show general information 3233be6ef06SEitan Adlerabout the state of the system, including 3243be6ef06SEitan Adlerthe last process id assigned to a process (on most systems), 3253be6ef06SEitan Adlerthe three load averages, 3263be6ef06SEitan Adlerthe current time, 3273be6ef06SEitan Adlerthe number of existing processes, 3283be6ef06SEitan Adlerthe number of processes in each state 3293be6ef06SEitan Adler(sleeping, running, starting, zombies, and stopped), 3303be6ef06SEitan Adlerand a percentage of time spent in each of the processor states 3313be6ef06SEitan Adler(user, nice, system, and idle). 3323be6ef06SEitan AdlerIt also includes information about physical and virtual memory allocation. 3339d6cce02SEitan Adler.Pp 3343be6ef06SEitan AdlerThe remainder of the screen displays information about individual 3359d6cce02SEitan Adlerprocesses. 3369d6cce02SEitan AdlerThis display is similar in spirit to 3379d6cce02SEitan Adler.Xr ps 1 3389d6cce02SEitan Adlerbut it is not exactly the same. 3399d6cce02SEitan AdlerPID is the process id, 3403be6ef06SEitan AdlerJID, when displayed, is the 3419d6cce02SEitan Adler.Xr jail 8 3423be6ef06SEitan AdlerID corresponding to the process, 3433be6ef06SEitan AdlerUSERNAME is the name of the process's owner (if 3449d6cce02SEitan Adler.Fl u 3453be6ef06SEitan Adleris specified, a UID column will be substituted for USERNAME), 3463be6ef06SEitan AdlerPRI is the current priority of the process, 3479d6cce02SEitan AdlerNICE is the 3489d6cce02SEitan Adler.Xr nice 1 3499d6cce02SEitan Adleramount, 3503be6ef06SEitan AdlerSIZE is the total size of the process (text, data, and stack), 3513be6ef06SEitan AdlerRES is the current amount of resident memory, 3523be6ef06SEitan AdlerSWAP is the approximate amount of swap, if enabled 3533be6ef06SEitan Adler(SIZE, RES and SWAP are given in kilobytes), 3543be6ef06SEitan AdlerSTATE is the current state (one of \*(lqSTART\*(rq, \*(lqRUN\*(rq 3553be6ef06SEitan Adler(shown as \*(lqCPUn\*(rq on SMP systems), \*(lqSLEEP\*(rq, \*(lqSTOP\*(rq, 3563be6ef06SEitan Adler\*(lqZOMB\*(rq, \*(lqWAIT\*(rq, \*(lqLOCK\*(rq or the event on which the 3573be6ef06SEitan Adlerprocess waits), 3583be6ef06SEitan AdlerC is the processor number on which the process is executing 3593be6ef06SEitan Adler(visible only on SMP systems), 3603be6ef06SEitan AdlerTIME is the number of system and user cpu seconds that the process has used, 3613be6ef06SEitan AdlerWCPU, when displayed, is the weighted cpu percentage (this is the same 3623be6ef06SEitan Adlervalue that 3639d6cce02SEitan Adler.Xr ps 1 3643be6ef06SEitan Adlerdisplays as CPU), 3653be6ef06SEitan AdlerCPU is the raw percentage and is the field that is sorted to determine 3663be6ef06SEitan Adlerthe order of the processes, and 3673be6ef06SEitan AdlerCOMMAND is the name of the command that the process is currently running 3683be6ef06SEitan Adler(if the process is swapped out, this column is marked \*(lq<swapped>\*(rq). 3699d6cce02SEitan Adler.Pp 3703be6ef06SEitan AdlerIf a process is in the \*(lqSLEEP\*(rq or \*(lqLOCK\*(rq state, 3713be6ef06SEitan Adlerthe state column will report the name of the event or lock on which the 3723be6ef06SEitan Adlerprocess is waiting. 3733be6ef06SEitan AdlerLock names are prefixed with an asterisk \*(lq*\*(rq while sleep events 3743be6ef06SEitan Adlerare not. 375fab44dc3SMateusz Piotrowski.Sh DESCRIPTION OF MEMORY 376fab44dc3SMateusz Piotrowski.Bd -literal 377fab44dc3SMateusz PiotrowskiMem: 61M Active, 86M Inact, 368K Laundry, 22G Wired, 102G Free 378fab44dc3SMateusz PiotrowskiARC: 15G Total, 9303M MFU, 6155M MRU, 1464K Anon, 98M Header, 35M Other 379fab44dc3SMateusz Piotrowski 15G Compressed, 27G Uncompressed, 1.75:1 Ratio, 174M Overhead 380fab44dc3SMateusz PiotrowskiSwap: 4096M Total, 532M Free, 13% Inuse, 80K In, 104K Out 381fab44dc3SMateusz Piotrowski.Ed 382fab44dc3SMateusz Piotrowski.Ss Physical Memory Stats 383fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact 384fab44dc3SMateusz Piotrowski.It Em Active 385fab44dc3SMateusz Piotrowskinumber of bytes active 386fab44dc3SMateusz Piotrowski.It Em Inact 387fab44dc3SMateusz Piotrowskinumber of clean bytes inactive 388fab44dc3SMateusz Piotrowski.It Em Laundry 389fab44dc3SMateusz Piotrowskinumber of dirty bytes queued for laundering 390fab44dc3SMateusz Piotrowski.It Em Wired 391fab44dc3SMateusz Piotrowskinumber of bytes wired down, including IO-level cached file data pages 392fab44dc3SMateusz Piotrowski.It Em Buf 393fab44dc3SMateusz Piotrowskinumber of bytes used for IO-level disk caching 394fab44dc3SMateusz Piotrowski.It Em Free 395fab44dc3SMateusz Piotrowskinumber of bytes free 396fab44dc3SMateusz Piotrowski.El 397fab44dc3SMateusz Piotrowski.Ss ZFS ARC Stats 398fab44dc3SMateusz PiotrowskiThese stats are only displayed when the ARC is in use. 3999d6cce02SEitan Adler.Pp 400fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact 401fab44dc3SMateusz Piotrowski.It Em Total 402fab44dc3SMateusz Piotrowskinumber of wired bytes used for the ZFS ARC 403fab44dc3SMateusz Piotrowski.It Em MRU 404fab44dc3SMateusz Piotrowskinumber of ARC bytes holding most recently used data 405fab44dc3SMateusz Piotrowski.It Em MFU 406fab44dc3SMateusz Piotrowskinumber of ARC bytes holding most frequently used data 407fab44dc3SMateusz Piotrowski.It Em Anon 408fab44dc3SMateusz Piotrowskinumber of ARC bytes holding in flight data 409fab44dc3SMateusz Piotrowski.It Em Header 410fab44dc3SMateusz Piotrowskinumber of ARC bytes holding headers 411fab44dc3SMateusz Piotrowski.It Em Other 412fab44dc3SMateusz Piotrowskimiscellaneous ARC bytes 413fab44dc3SMateusz Piotrowski.It Em Compressed 414fab44dc3SMateusz Piotrowskibytes of memory used by ARC caches 415fab44dc3SMateusz Piotrowski.It Em Uncompressed 416fab44dc3SMateusz Piotrowskibytes of data stored in ARC caches before compression 417fab44dc3SMateusz Piotrowski.It Em Ratio 418fab44dc3SMateusz Piotrowskicompression ratio of data cached in the ARC 419fab44dc3SMateusz Piotrowski.El 420fab44dc3SMateusz Piotrowski.Ss Swap Stats 421fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" -compact 422fab44dc3SMateusz Piotrowski.It Em Total 423fab44dc3SMateusz Piotrowskitotal available swap usage 424fab44dc3SMateusz Piotrowski.It Em Free 425fab44dc3SMateusz Piotrowskitotal free swap usage 426fab44dc3SMateusz Piotrowski.It Em Inuse 427fab44dc3SMateusz Piotrowskiswap usage 428fab44dc3SMateusz Piotrowski.It Em \&In 429fab44dc3SMateusz Piotrowskibytes paged in from swap devices (last interval) 430fab44dc3SMateusz Piotrowski.It Em Out 431fab44dc3SMateusz Piotrowskibytes paged out to swap devices (last interval) 432fab44dc3SMateusz Piotrowski.El 4339d6cce02SEitan Adler.Sh ENVIRONMENT 434fab44dc3SMateusz Piotrowski.Bl -tag -width "Uncompressed" 435fab44dc3SMateusz Piotrowski.It Ev TOP 4369d6cce02SEitan AdlerDefault set of arguments to 4379d6cce02SEitan Adler.Nm . 438ecc2b89fSHiroki Sato.It Ev LC_CTYPE 439ecc2b89fSHiroki SatoThe locale to use when displaying the 440ecc2b89fSHiroki Sato.Va argv 441ecc2b89fSHiroki Satovector when 442ecc2b89fSHiroki Sato.Fl a 443ecc2b89fSHiroki Satoflag is specified. 4449d6cce02SEitan Adler.El 4459d6cce02SEitan Adler.Sh SEE ALSO 4469d6cce02SEitan Adler.Xr kill 1 , 4479d6cce02SEitan Adler.Xr ps 1 , 4489d6cce02SEitan Adler.Xr stty 1 , 4499d6cce02SEitan Adler.Xr getrusage 2 , 4509d6cce02SEitan Adler.Xr humanize_number 3 , 4519d6cce02SEitan Adler.Xr mem 4 , 4529d6cce02SEitan Adler.Xr renice 8 453fab44dc3SMateusz Piotrowski.Sh AUTHORS 454fab44dc3SMateusz Piotrowski.An William LeFebvre, EECS Department, Northwestern University 455fab44dc3SMateusz Piotrowski.Sh BUGS 456fab44dc3SMateusz PiotrowskiThe command name for swapped processes should be tracked down, but this 457fab44dc3SMateusz Piotrowskiwould make the program run slower. 458fab44dc3SMateusz Piotrowski.Pp 459fab44dc3SMateusz PiotrowskiAs with 460fab44dc3SMateusz Piotrowski.Xr ps 1 , 461fab44dc3SMateusz Piotrowskithings can change while 462fab44dc3SMateusz Piotrowski.Nm 463fab44dc3SMateusz Piotrowskiis collecting information for an update. 464fab44dc3SMateusz PiotrowskiThe picture it gives is only a close approximation to reality. 465