19ddb49cbSWarner Losh.\"- 24b88c807SRodney W. Grimes.\" Copyright (c) 1980, 1990, 1991, 1993, 1994 34b88c807SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 44b88c807SRodney W. Grimes.\" 54b88c807SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 64b88c807SRodney W. Grimes.\" modification, are permitted provided that the following conditions 74b88c807SRodney W. Grimes.\" are met: 84b88c807SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 94b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 104b88c807SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 114b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 124b88c807SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 13fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 144b88c807SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 154b88c807SRodney W. Grimes.\" without specific prior written permission. 164b88c807SRodney W. Grimes.\" 174b88c807SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 184b88c807SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 194b88c807SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 204b88c807SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 214b88c807SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 224b88c807SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 234b88c807SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 244b88c807SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 254b88c807SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 264b88c807SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 274b88c807SRodney W. Grimes.\" SUCH DAMAGE. 284b88c807SRodney W. Grimes.\" 294b88c807SRodney W. Grimes.\" @(#)ps.1 8.3 (Berkeley) 4/18/94 302a456239SPeter Wemm.\" $FreeBSD$ 314b88c807SRodney W. Grimes.\" 32a8373a7cSEdward Tomasz Napierala.Dd October 9, 2017 334b88c807SRodney W. Grimes.Dt PS 1 34caa2db3bSRuslan Ermilov.Os 354b88c807SRodney W. Grimes.Sh NAME 36c9a8d1f4SPhilippe Charnier.Nm ps 374b88c807SRodney W. Grimes.Nd process status 384b88c807SRodney W. Grimes.Sh SYNOPSIS 39be8b1497SRuslan Ermilov.Nm 408beb1a2fSMarcel Moolenaar.Op Fl -libxo 41044fce53SBrian Somers.Op Fl aCcdefHhjlmrSTuvwXxZ 42a89237aeSRuslan Ermilov.Op Fl O Ar fmt | Fl o Ar fmt 43287d1861SRuslan Ermilov.Op Fl G Ar gid Ns Op , Ns Ar gid Ns Ar ... 4413767130SBryan Drewery.Op Fl J Ar jid Ns Op , Ns Ar jid Ns Ar ... 454b88c807SRodney W. Grimes.Op Fl M Ar core 464b88c807SRodney W. Grimes.Op Fl N Ar system 47287d1861SRuslan Ermilov.Op Fl p Ar pid Ns Op , Ns Ar pid Ns Ar ... 48287d1861SRuslan Ermilov.Op Fl t Ar tty Ns Op , Ns Ar tty Ns Ar ... 49a89237aeSRuslan Ermilov.Op Fl U Ar user Ns Op , Ns Ar user Ns Ar ... 50be8b1497SRuslan Ermilov.Nm 518beb1a2fSMarcel Moolenaar.Op Fl -libxo 524b88c807SRodney W. Grimes.Op Fl L 534b88c807SRodney W. Grimes.Sh DESCRIPTION 54e004acc8SPhilippe CharnierThe 55e004acc8SPhilippe Charnier.Nm 56e004acc8SPhilippe Charnierutility 578ed0d42fSGarance A Drosehndisplays a header line, followed by lines containing information about 588ed0d42fSGarance A Drosehnall of your 594b88c807SRodney W. Grimesprocesses that have controlling terminals. 602d455a01SGlen BarberIf the 612d455a01SGlen Barber.Fl x 622d455a01SGlen Barberoptions is specified, 632d455a01SGlen Barber.Nm 642d455a01SGlen Barberwill also display processes that do not have controlling terminals. 654b88c807SRodney W. Grimes.Pp 66a4c8a745SGarance A DrosehnA different set of processes can be selected for display by using any 67a4c8a745SGarance A Drosehncombination of the 6813767130SBryan Drewery.Fl a , G , J , p , T , t , 69a4c8a745SGarance A Drosehnand 70a4c8a745SGarance A Drosehn.Fl U 71a4c8a745SGarance A Drosehnoptions. 72a4c8a745SGarance A DrosehnIf more than one of these options are given, then 73a4c8a745SGarance A Drosehn.Nm 74a4c8a745SGarance A Drosehnwill select all processes which are matched by at least one of the 75a4c8a745SGarance A Drosehngiven options. 76a4c8a745SGarance A Drosehn.Pp 778ed0d42fSGarance A DrosehnFor the processes which have been selected for display, 788ed0d42fSGarance A Drosehn.Nm 798ed0d42fSGarance A Drosehnwill usually display one line per process. 808ed0d42fSGarance A DrosehnThe 818ed0d42fSGarance A Drosehn.Fl H 828ed0d42fSGarance A Drosehnoption may result in multiple output lines (one line per thread) for 838ed0d42fSGarance A Drosehnsome processes. 848ed0d42fSGarance A DrosehnBy default all of these output lines are sorted first by controlling 85287d1861SRuslan Ermilovterminal, then by process ID. 868ed0d42fSGarance A DrosehnThe 878ed0d42fSGarance A Drosehn.Fl m , r , u , 888ed0d42fSGarance A Drosehnand 898ed0d42fSGarance A Drosehn.Fl v 908ed0d42fSGarance A Drosehnoptions will change the sort order. 918ed0d42fSGarance A DrosehnIf more than one sorting option was given, then the selected processes 928ed0d42fSGarance A Drosehnwill be sorted by the last sorting option which was specified. 938ed0d42fSGarance A Drosehn.Pp 94a4c8a745SGarance A DrosehnFor the processes which have been selected for display, the information 95a4c8a745SGarance A Drosehnto display is selected based on a set of keywords (see the 96287d1861SRuslan Ermilov.Fl L , O , 974b88c807SRodney W. Grimesand 984b88c807SRodney W. Grimes.Fl o 994b88c807SRodney W. Grimesoptions). 100287d1861SRuslan ErmilovThe default output format includes, for each process, the process' ID, 10164015438SGlen Barbercontrolling terminal, state, CPU time (including both user and system time) 10264015438SGlen Barberand associated command. 1034b88c807SRodney W. Grimes.Pp 1044b88c807SRodney W. GrimesThe options are as follows: 1054b88c807SRodney W. Grimes.Bl -tag -width indent 10606691045SCraig Rodrigues.It Fl -libxo 10706691045SCraig RodriguesGenerate output via 10806691045SCraig Rodrigues.Xr libxo 3 10906691045SCraig Rodriguesin a selection of different human and machine readable formats. 11006691045SCraig RodriguesSee 11106691045SCraig Rodrigues.Xr xo_parse_args 3 11206691045SCraig Rodriguesfor details on command line arguments. 1134b88c807SRodney W. Grimes.It Fl a 1144b88c807SRodney W. GrimesDisplay information about other users' processes as well as your own. 1152d455a01SGlen BarberIf the 116d883e289SJosef Karthauser.Va security.bsd.see_other_uids 1172d455a01SGlen Barbersysctl is set to zero, this option is honored only if the UID of the user is 0. 118db91faacSPeter Wemm.It Fl c 119287d1861SRuslan ErmilovChange the 120287d1861SRuslan Ermilov.Dq command 121287d1861SRuslan Ermilovcolumn output to just contain the executable name, 122db91faacSPeter Wemmrather than the full command line. 1234b88c807SRodney W. Grimes.It Fl C 124287d1861SRuslan ErmilovChange the way the CPU percentage is calculated by using a 125287d1861SRuslan Ermilov.Dq raw 126287d1861SRuslan ErmilovCPU calculation that ignores 127287d1861SRuslan Ermilov.Dq resident 128287d1861SRuslan Ermilovtime (this normally has 1294b88c807SRodney W. Grimesno effect). 130044fce53SBrian Somers.It Fl d 131044fce53SBrian SomersArrange processes into descendancy order and prefix each command with 1324162d139SEdward Tomasz Napieralaindentation text showing sibling and parent/child relationships as a tree. 133044fce53SBrian SomersIf either of the 134044fce53SBrian Somers.Fl m 135044fce53SBrian Somersand 136044fce53SBrian Somers.Fl r 137044fce53SBrian Somersoptions are also used, they control how sibling processes are sorted 138044fce53SBrian Somersrelative to each other. 139b9ff20abSEdward Tomasz NapieralaNote that this option has no effect if the 140b9ff20abSEdward Tomasz Napierala.Dq command 141b9ff20abSEdward Tomasz Napieralacolumn is not the last column displayed. 1424b88c807SRodney W. Grimes.It Fl e 1434b88c807SRodney W. GrimesDisplay the environment as well. 144b548141bSJohn Dyson.It Fl f 1455ef01115SCraig RodriguesShow command-line and environment information about swapped out processes. 146287d1861SRuslan ErmilovThis option is honored only if the UID of the user is 0. 147a4c8a745SGarance A Drosehn.It Fl G 148a4c8a745SGarance A DrosehnDisplay information about processes which are running with the specified 149287d1861SRuslan Ermilovreal group IDs. 15048b8c0deSScott Long.It Fl H 15148b8c0deSScott LongShow all of the 15248b8c0deSScott Long.Em kernel visible 153287d1861SRuslan Ermilovthreads associated with each process. 154287d1861SRuslan ErmilovDepending on the threading package that 15548b8c0deSScott Longis in use, this may show only the process, only the kernel scheduled entities, 15648b8c0deSScott Longor all of the process threads. 1574b88c807SRodney W. Grimes.It Fl h 1584b88c807SRodney W. GrimesRepeat the information header as often as necessary to guarantee one 1594b88c807SRodney W. Grimesheader per page of information. 1604b88c807SRodney W. Grimes.It Fl j 1614b88c807SRodney W. GrimesPrint information associated with the following keywords: 162259fcfacSGarance A Drosehn.Cm user , pid , ppid , pgid , sid , jobc , state , tt , time , 163287d1861SRuslan Ermilovand 164287d1861SRuslan Ermilov.Cm command . 16513767130SBryan Drewery.It Fl J 16613767130SBryan DreweryDisplay information about processes which match the specified jail IDs. 16713767130SBryan DreweryThis may be either the 16813767130SBryan Drewery.Cm jid 16913767130SBryan Dreweryor 17013767130SBryan Drewery.Cm name 17113767130SBryan Dreweryof the jail. 17213767130SBryan DreweryUse 17313767130SBryan Drewery.Fl J 17413767130SBryan Drewery.Sy 0 17513767130SBryan Dreweryto display only host processes. 17613767130SBryan DreweryThis flag implies 17713767130SBryan Drewery.Fl x 17813767130SBryan Dreweryby default. 1794b88c807SRodney W. Grimes.It Fl L 1808ed0d42fSGarance A DrosehnList the set of keywords available for the 1818ed0d42fSGarance A Drosehn.Fl O 1828ed0d42fSGarance A Drosehnand 1838ed0d42fSGarance A Drosehn.Fl o 1848ed0d42fSGarance A Drosehnoptions. 1854b88c807SRodney W. Grimes.It Fl l 1864b88c807SRodney W. GrimesDisplay information associated with the following keywords: 187287d1861SRuslan Ermilov.Cm uid , pid , ppid , cpu , pri , nice , vsz , rss , mwchan , state , 188287d1861SRuslan Ermilov.Cm tt , time , 189287d1861SRuslan Ermilovand 190287d1861SRuslan Ermilov.Cm command . 1914b88c807SRodney W. Grimes.It Fl M 1924b88c807SRodney W. GrimesExtract values associated with the name list from the specified core 193cd31922fSRuslan Ermilovinstead of the currently running system. 1944b88c807SRodney W. Grimes.It Fl m 1958ed0d42fSGarance A DrosehnSort by memory usage, instead of the combination of controlling 196287d1861SRuslan Ermilovterminal and process ID. 1974b88c807SRodney W. Grimes.It Fl N 198f9a480abSRuslan ErmilovExtract the name list from the specified system instead of the default, 199f9a480abSRuslan Ermilovwhich is the kernel image the system has booted from. 2004b88c807SRodney W. Grimes.It Fl O 2014b88c807SRodney W. GrimesAdd the information associated with the space or comma separated list 202287d1861SRuslan Ermilovof keywords specified, after the process ID, 2034b88c807SRodney W. Grimesin the default information 2044b88c807SRodney W. Grimesdisplay. 205287d1861SRuslan ErmilovKeywords may be appended with an equals 206287d1861SRuslan Ermilov.Pq Ql = 207287d1861SRuslan Ermilovsign and a string. 2084b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 2094b88c807SRodney W. Grimesthe standard header. 2104b88c807SRodney W. Grimes.It Fl o 2112dda9fe9SJuli MallettDisplay information associated with the space or comma separated 2122dda9fe9SJuli Mallettlist of keywords specified. 21361b92b9aSYaroslav TykhiyThe last keyword in the list may be appended with an equals 21461b92b9aSYaroslav Tykhiy.Pq Ql = 2159badf57fSRuslan Ermilovsign and a string that spans the rest of the argument, and can contain 2167c5169efSYaroslav Tykhiyspace and comma characters. 21761b92b9aSYaroslav TykhiyThis causes the printed header to use the specified string instead of 21861b92b9aSYaroslav Tykhiythe standard header. 21950355bb4SJuli MallettMultiple keywords may also be given in the form of more than one 22050355bb4SJuli Mallett.Fl o 22150355bb4SJuli Mallettoption. 22261b92b9aSYaroslav TykhiySo the header texts for multiple keywords can be changed. 2236aac4c27SXin LIIf all keywords have empty header texts, no header line is written. 2244b88c807SRodney W. Grimes.It Fl p 225287d1861SRuslan ErmilovDisplay information about processes which match the specified process IDs. 2264b88c807SRodney W. Grimes.It Fl r 227287d1861SRuslan ErmilovSort by current CPU usage, instead of the combination of controlling 228287d1861SRuslan Ermilovterminal and process ID. 2294b88c807SRodney W. Grimes.It Fl S 230a870bf2cSKonstantin BelousovChange the way the process times, namely cputime, systime, and usertime, 231a870bf2cSKonstantin Belousovare calculated by summing all exited children to their parent process. 2324b88c807SRodney W. Grimes.It Fl T 2334b88c807SRodney W. GrimesDisplay information about processes attached to the device associated 2344b88c807SRodney W. Grimeswith the standard input. 2354b88c807SRodney W. Grimes.It Fl t 2364b88c807SRodney W. GrimesDisplay information about processes attached to the specified terminal 237287d1861SRuslan Ermilovdevices. 2382d455a01SGlen BarberFull pathnames, as well as abbreviations (see explanation of the 2392d455a01SGlen Barber.Cm tt 2402d455a01SGlen Barberkeyword) can be specified. 24173eb8310SPeter Wemm.It Fl U 242287d1861SRuslan ErmilovDisplay the processes belonging to the specified usernames. 2434b88c807SRodney W. Grimes.It Fl u 2444b88c807SRodney W. GrimesDisplay information associated with the following keywords: 245287d1861SRuslan Ermilov.Cm user , pid , %cpu , %mem , vsz , rss , tt , state , start , time , 246287d1861SRuslan Ermilovand 247287d1861SRuslan Ermilov.Cm command . 2484b88c807SRodney W. GrimesThe 2494b88c807SRodney W. Grimes.Fl u 2504b88c807SRodney W. Grimesoption implies the 2514b88c807SRodney W. Grimes.Fl r 2524b88c807SRodney W. Grimesoption. 2534b88c807SRodney W. Grimes.It Fl v 2544b88c807SRodney W. GrimesDisplay information associated with the following keywords: 255287d1861SRuslan Ermilov.Cm pid , state , time , sl , re , pagein , vsz , rss , lim , tsiz , 256287d1861SRuslan Ermilov.Cm %cpu , %mem , 257287d1861SRuslan Ermilovand 258287d1861SRuslan Ermilov.Cm command . 2594b88c807SRodney W. GrimesThe 2604b88c807SRodney W. Grimes.Fl v 2614b88c807SRodney W. Grimesoption implies the 2624b88c807SRodney W. Grimes.Fl m 2634b88c807SRodney W. Grimesoption. 2644b88c807SRodney W. Grimes.It Fl w 2654b88c807SRodney W. GrimesUse 132 columns to display information, instead of the default which 2664b88c807SRodney W. Grimesis your window size. 2674b88c807SRodney W. GrimesIf the 2684b88c807SRodney W. Grimes.Fl w 2694b88c807SRodney W. Grimesoption is specified more than once, 270c9a8d1f4SPhilippe Charnier.Nm 2714b88c807SRodney W. Grimeswill use as many columns as necessary without regard for your window size. 272b9ff20abSEdward Tomasz NapieralaNote that this option has no effect if the 273b9ff20abSEdward Tomasz Napierala.Dq command 274b9ff20abSEdward Tomasz Napieralacolumn is not the last column displayed. 275a4c8a745SGarance A Drosehn.It Fl X 276a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, skip any processes 277a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 278b9ff20abSEdward Tomasz NapieralaThis is the default behaviour. 2794b88c807SRodney W. Grimes.It Fl x 280a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, include processes 281a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 282a4c8a745SGarance A DrosehnThis is the opposite of the 283a4c8a745SGarance A Drosehn.Fl X 284a4c8a745SGarance A Drosehnoption. 285a4c8a745SGarance A DrosehnIf both 286a4c8a745SGarance A Drosehn.Fl X 287a4c8a745SGarance A Drosehnand 288a4c8a745SGarance A Drosehn.Fl x 289a4c8a745SGarance A Drosehnare specified in the same command, then 290a4c8a745SGarance A Drosehn.Nm 291a4c8a745SGarance A Drosehnwill use the one which was specified last. 2927304f61fSBrian Feldman.It Fl Z 293ac06cb0aSRobert WatsonAdd 294ac06cb0aSRobert Watson.Xr mac 4 295ac06cb0aSRobert Watsonlabel to the list of keywords for which 2967304f61fSBrian Feldman.Nm 2977304f61fSBrian Feldmanwill display information. 2984b88c807SRodney W. Grimes.El 2994b88c807SRodney W. Grimes.Pp 3004b88c807SRodney W. GrimesA complete list of the available keywords are listed below. 3014b88c807SRodney W. GrimesSome of these keywords are further specified as follows: 3020d632649SJohn Baldwin.Bl -tag -width lockname 303287d1861SRuslan Ermilov.It Cm %cpu 304287d1861SRuslan ErmilovThe CPU utilization of the process; this is a decaying average over up to 3054b88c807SRodney W. Grimesa minute of previous (real) time. 3064b88c807SRodney W. GrimesSince the time base over which this is computed varies (since processes may 3074b88c807SRodney W. Grimesbe very young) it is possible for the sum of all 308287d1861SRuslan Ermilov.Cm %cpu 3094b88c807SRodney W. Grimesfields to exceed 100%. 310287d1861SRuslan Ermilov.It Cm %mem 3114b88c807SRodney W. GrimesThe percentage of real memory used by this process. 3127123f4cdSEdward Tomasz Napierala.It Cm class 3137123f4cdSEdward Tomasz NapieralaLogin class associated with the process. 314287d1861SRuslan Ermilov.It Cm flags 315c01bf97cSSujal PatelThe flags associated with the process as in 3164b88c807SRodney W. Grimesthe include file 317fe08efe6SRuslan Ermilov.In sys/proc.h : 3187117b3d5SKonstantin Belousov.Bl -column P_SINGLE_BOUNDARY 0x40000000 319288eac5aSJoel Dahl.It Dv "P_ADVLOCK" Ta No "0x00001" Ta "Process may hold a POSIX advisory lock" 320288eac5aSJoel Dahl.It Dv "P_CONTROLT" Ta No "0x00002" Ta "Has a controlling terminal" 321db57c70aSKonstantin Belousov.It Dv "P_KPROC" Ta No "0x00004" Ta "Kernel process" 322288eac5aSJoel Dahl.It Dv "P_PPWAIT" Ta No "0x00010" Ta "Parent is waiting for child to exec/exit" 323288eac5aSJoel Dahl.It Dv "P_PROFIL" Ta No "0x00020" Ta "Has started profiling" 324288eac5aSJoel Dahl.It Dv "P_STOPPROF" Ta No "0x00040" Ta "Has thread in requesting to stop prof" 325288eac5aSJoel Dahl.It Dv "P_HADTHREADS" Ta No "0x00080" Ta "Has had threads (no cleanup shortcuts)" 326288eac5aSJoel Dahl.It Dv "P_SUGID" Ta No "0x00100" Ta "Had set id privileges since last exec" 327288eac5aSJoel Dahl.It Dv "P_SYSTEM" Ta No "0x00200" Ta "System proc: no sigs, stats or swapping" 328288eac5aSJoel Dahl.It Dv "P_SINGLE_EXIT" Ta No "0x00400" Ta "Threads suspending should exit, not wait" 329288eac5aSJoel Dahl.It Dv "P_TRACED" Ta No "0x00800" Ta "Debugged process being traced" 330288eac5aSJoel Dahl.It Dv "P_WAITED" Ta No "0x01000" Ta "Someone is waiting for us" 331288eac5aSJoel Dahl.It Dv "P_WEXIT" Ta No "0x02000" Ta "Working on exiting" 332288eac5aSJoel Dahl.It Dv "P_EXEC" Ta No "0x04000" Ta "Process called exec" 333288eac5aSJoel Dahl.It Dv "P_WKILLED" Ta No "0x08000" Ta "Killed, shall go to kernel/user boundary ASAP" 334288eac5aSJoel Dahl.It Dv "P_CONTINUED" Ta No "0x10000" Ta "Proc has continued from a stopped state" 335288eac5aSJoel Dahl.It Dv "P_STOPPED_SIG" Ta No "0x20000" Ta "Stopped due to SIGSTOP/SIGTSTP" 336288eac5aSJoel Dahl.It Dv "P_STOPPED_TRACE" Ta No "0x40000" Ta "Stopped because of tracing" 337288eac5aSJoel Dahl.It Dv "P_STOPPED_SINGLE" Ta No "0x80000" Ta "Only one thread can continue" 338288eac5aSJoel Dahl.It Dv "P_PROTECTED" Ta No "0x100000" Ta "Do not kill on memory overcommit" 339288eac5aSJoel Dahl.It Dv "P_SIGEVENT" Ta No "0x200000" Ta "Process pending signals changed" 340288eac5aSJoel Dahl.It Dv "P_SINGLE_BOUNDARY" Ta No "0x400000" Ta "Threads should suspend at user boundary" 341288eac5aSJoel Dahl.It Dv "P_HWPMC" Ta No "0x800000" Ta "Process is using HWPMCs" 342288eac5aSJoel Dahl.It Dv "P_JAILED" Ta No "0x1000000" Ta "Process is in jail" 3436ddcc233SKonstantin Belousov.It Dv "P_TOTAL_STOP" Ta No "0x2000000" Ta "Stopped for system suspend" 344288eac5aSJoel Dahl.It Dv "P_INEXEC" Ta No "0x4000000" Ta "Process is in execve()" 345288eac5aSJoel Dahl.It Dv "P_STATCHILD" Ta No "0x8000000" Ta "Child process stopped or exited" 346288eac5aSJoel Dahl.It Dv "P_INMEM" Ta No "0x10000000" Ta "Loaded into memory" 347288eac5aSJoel Dahl.It Dv "P_SWAPPINGOUT" Ta No "0x20000000" Ta "Process is being swapped out" 348288eac5aSJoel Dahl.It Dv "P_SWAPPINGIN" Ta No "0x40000000" Ta "Process is being swapped in" 34945732078SKonstantin Belousov.It Dv "P_PPTRACE" Ta No "0x80000000" Ta "Vforked child issued ptrace(PT_TRACEME)" 3504b88c807SRodney W. Grimes.El 35138d22923SSergey Kandaurov.It Cm flags2 35238d22923SSergey KandaurovThe flags kept in 35338d22923SSergey Kandaurov.Va p_flag2 35438d22923SSergey Kandaurovassociated with the process as in 35538d22923SSergey Kandaurovthe include file 35638d22923SSergey Kandaurov.In sys/proc.h : 35738d22923SSergey Kandaurov.Bl -column P2_INHERIT_PROTECTED 0x00000001 35838d22923SSergey Kandaurov.It Dv "P2_INHERIT_PROTECTED" Ta No "0x00000001" Ta "New children get P_PROTECTED" 359e8d89b84SSergey Kandaurov.It Dv "P2_NOTRACE" Ta No "0x00000002" Ta "No ptrace(2) attach or coredumps" 360e8d89b84SSergey Kandaurov.It Dv "P2_NOTRACE_EXEC" Ta No "0x00000004" Ta "Keep P2_NOPTRACE on exec(2)" 361e8d89b84SSergey Kandaurov.It Dv "P2_AST_SU" Ta No "0x00000008" Ta "Handles SU ast for kthreads" 362b7a25e63SKonstantin Belousov.It Dv "P2_PTRACE_FSTP" Ta No "0x00000010" Ta "SIGSTOP from PT_ATTACH not yet handled" 36338d22923SSergey Kandaurov.El 364287d1861SRuslan Ermilov.It Cm label 3652af538ebSRobert WatsonThe MAC label of the process. 366287d1861SRuslan Ermilov.It Cm lim 3674b88c807SRodney W. GrimesThe soft limit on memory used, specified via a call to 3684b88c807SRodney W. Grimes.Xr setrlimit 2 . 369287d1861SRuslan Ermilov.It Cm lstart 370287d1861SRuslan ErmilovThe exact time the command started, using the 371287d1861SRuslan Ermilov.Ql %c 372287d1861SRuslan Ermilovformat described in 3734b88c807SRodney W. Grimes.Xr strftime 3 . 374287d1861SRuslan Ermilov.It Cm lockname 3750d632649SJohn BaldwinThe name of the lock that the process is currently blocked on. 3769b67ac59SJohn BaldwinIf the name is invalid or unknown, then 37712e720d7SRuslan Ermilov.Dq ???\& 3789b67ac59SJohn Baldwinis displayed. 3796aac4c27SXin LI.It Cm logname 3806aac4c27SXin LIThe login name associated with the session the process is in (see 3816aac4c27SXin LI.Xr getlogin 2 ) . 382287d1861SRuslan Ermilov.It Cm mwchan 3830d632649SJohn BaldwinThe event name if the process is blocked normally, or the lock name if 3840d632649SJohn Baldwinthe process is blocked on a lock. 3850d632649SJohn BaldwinSee the wchan and lockname keywords 386d9a5f890SMatthew Dillonfor details. 387287d1861SRuslan Ermilov.It Cm nice 3884b88c807SRodney W. GrimesThe process scheduling increment (see 3894b88c807SRodney W. Grimes.Xr setpriority 2 ) . 390287d1861SRuslan Ermilov.It Cm rss 3914b88c807SRodney W. Grimesthe real memory (resident set) size of the process (in 1024 byte units). 392287d1861SRuslan Ermilov.It Cm start 3934b88c807SRodney W. GrimesThe time the command started. 3944b88c807SRodney W. GrimesIf the command started less than 24 hours ago, the start time is 395287d1861SRuslan Ermilovdisplayed using the 396c2290ff6SMark Felder.Dq Li %H:%M 397287d1861SRuslan Ermilovformat described in 3984b88c807SRodney W. Grimes.Xr strftime 3 . 3994b88c807SRodney W. GrimesIf the command started less than 7 days ago, the start time is 400287d1861SRuslan Ermilovdisplayed using the 401c2290ff6SMark Felder.Dq Li %a%H 402287d1861SRuslan Ermilovformat. 403287d1861SRuslan ErmilovOtherwise, the start time is displayed using the 404287d1861SRuslan Ermilov.Dq Li %e%b%y 405287d1861SRuslan Ermilovformat. 406287d1861SRuslan Ermilov.It Cm state 407a54b88d8SChristian BruefferThe state is given by a sequence of characters, for example, 408287d1861SRuslan Ermilov.Dq Li RWNA . 409a54b88d8SChristian BruefferThe first character indicates the run state of the process: 4104b88c807SRodney W. Grimes.Pp 4114b88c807SRodney W. Grimes.Bl -tag -width indent -compact 412287d1861SRuslan Ermilov.It Li D 4134b88c807SRodney W. GrimesMarks a process in disk (or other short term, uninterruptible) wait. 414287d1861SRuslan Ermilov.It Li I 4154b88c807SRodney W. GrimesMarks a process that is idle (sleeping for longer than about 20 seconds). 416287d1861SRuslan Ermilov.It Li L 4170d632649SJohn BaldwinMarks a process that is waiting to acquire a lock. 418287d1861SRuslan Ermilov.It Li R 4194b88c807SRodney W. GrimesMarks a runnable process. 420287d1861SRuslan Ermilov.It Li S 4214b88c807SRodney W. GrimesMarks a process that is sleeping for less than about 20 seconds. 422287d1861SRuslan Ermilov.It Li T 4234b88c807SRodney W. GrimesMarks a stopped process. 424287d1861SRuslan Ermilov.It Li W 425bcf85d67SColin PercivalMarks an idle interrupt thread. 426287d1861SRuslan Ermilov.It Li Z 427287d1861SRuslan ErmilovMarks a dead process (a 428287d1861SRuslan Ermilov.Dq zombie ) . 4294b88c807SRodney W. Grimes.El 4304b88c807SRodney W. Grimes.Pp 4314b88c807SRodney W. GrimesAdditional characters after these, if any, indicate additional state 4324b88c807SRodney W. Grimesinformation: 4334b88c807SRodney W. Grimes.Pp 4344b88c807SRodney W. Grimes.Bl -tag -width indent -compact 435287d1861SRuslan Ermilov.It Li + 4364b88c807SRodney W. GrimesThe process is in the foreground process group of its control terminal. 437287d1861SRuslan Ermilov.It Li < 438287d1861SRuslan ErmilovThe process has raised CPU scheduling priority. 4396f47d67bSEdward Tomasz Napierala.It Li C 4406f47d67bSEdward Tomasz NapieralaThe process is in 4416f47d67bSEdward Tomasz Napierala.Xr capsicum 4 4426f47d67bSEdward Tomasz Napieralacapability mode. 443287d1861SRuslan Ermilov.It Li E 4444b88c807SRodney W. GrimesThe process is trying to exit. 445287d1861SRuslan Ermilov.It Li J 446bcf85d67SColin PercivalMarks a process which is in 447bcf85d67SColin Percival.Xr jail 2 . 448bcf85d67SColin PercivalThe hostname of the prison can be found in 449287d1861SRuslan Ermilov.Pa /proc/ Ns Ao Ar pid Ac Ns Pa /status . 450287d1861SRuslan Ermilov.It Li L 4514b88c807SRodney W. GrimesThe process has pages locked in core (for example, for raw 4524b88c807SRodney W. Grimes.Tn I/O ) . 453287d1861SRuslan Ermilov.It Li N 454287d1861SRuslan ErmilovThe process has reduced CPU scheduling priority (see 4554b88c807SRodney W. Grimes.Xr setpriority 2 ) . 456287d1861SRuslan Ermilov.It Li s 4574b88c807SRodney W. GrimesThe process is a session leader. 458287d1861SRuslan Ermilov.It Li V 45993f7e978SMark JohnstonThe process' parent is suspended during a 46093f7e978SMark Johnston.Xr vfork 2 , 46193f7e978SMark Johnstonwaiting for the process to exec or exit. 462287d1861SRuslan Ermilov.It Li W 4634b88c807SRodney W. GrimesThe process is swapped out. 464287d1861SRuslan Ermilov.It Li X 4654b88c807SRodney W. GrimesThe process is being traced or debugged. 4664b88c807SRodney W. Grimes.El 467287d1861SRuslan Ermilov.It Cm tt 4684b88c807SRodney W. GrimesAn abbreviation for the pathname of the controlling terminal, if any. 46977027e30SJoseph KoshyThe abbreviation consists of the three letters following 470c9a8d1f4SPhilippe Charnier.Pa /dev/tty , 4716ec3cd07SGlen Barberor, for pseudo-terminals, the corresponding entry in 4722d455a01SGlen Barber.Pa /dev/pts . 473287d1861SRuslan ErmilovThis is followed by a 474287d1861SRuslan Ermilov.Ql - 475287d1861SRuslan Ermilovif the process can no longer reach that 4764b88c807SRodney W. Grimescontrolling terminal (i.e., it has been revoked). 477aa7a15b6SEdward Tomasz NapieralaA 478aa7a15b6SEdward Tomasz Napierala.Ql - 479aa7a15b6SEdward Tomasz Napieralawithout a preceding two letter abbreviation or pseudo-terminal device number 480aa7a15b6SEdward Tomasz Napieralaindicates a process which never had a controlling terminal. 4812d455a01SGlen BarberThe full pathname of the controlling terminal is available via the 4822d455a01SGlen Barber.Cm tty 4832d455a01SGlen Barberkeyword. 484287d1861SRuslan Ermilov.It Cm wchan 4854b88c807SRodney W. GrimesThe event (an address in the system) on which a process waits. 4864b88c807SRodney W. GrimesWhen printed numerically, the initial part of the address is 4874b88c807SRodney W. Grimestrimmed off and the result is printed in hex, for example, 0x80324000 prints 4884b88c807SRodney W. Grimesas 324000. 4894b88c807SRodney W. Grimes.El 4904b88c807SRodney W. Grimes.Pp 4914b88c807SRodney W. GrimesWhen printing using the command keyword, a process that has exited and 4924b88c807SRodney W. Grimeshas a parent that has not yet waited for the process (in other words, a zombie) 493287d1861SRuslan Ermilovis listed as 494287d1861SRuslan Ermilov.Dq Li <defunct> , 495287d1861SRuslan Ermilovand a process which is blocked while trying 496287d1861SRuslan Ermilovto exit is listed as 497287d1861SRuslan Ermilov.Dq Li <exiting> . 4986aac4c27SXin LIIf the arguments cannot be located (usually because it has not been set, as is 4996aac4c27SXin LIthe case of system processes and/or kernel threads) the command name is printed 5006aac4c27SXin LIwithin square brackets. 501e004acc8SPhilippe CharnierThe 502e004acc8SPhilippe Charnier.Nm 5036aac4c27SXin LIutility first tries to obtain the arguments cached by the kernel (if they were 5046aac4c27SXin LIshorter than the value of the 5056aac4c27SXin LI.Va kern.ps_arg_cache_limit 5066aac4c27SXin LIsysctl). 5076aac4c27SXin LIThe process can change the arguments shown with 5086aac4c27SXin LI.Xr setproctitle 3 . 5096aac4c27SXin LIOtherwise, 5106aac4c27SXin LI.Nm 5114b88c807SRodney W. Grimesmakes an educated guess as to the file name and arguments given when the 5124b88c807SRodney W. Grimesprocess was created by examining memory or the swap area. 5134b88c807SRodney W. GrimesThe method is inherently somewhat unreliable and in any event a process 5146aac4c27SXin LIis entitled to destroy this information. 5154b88c807SRodney W. GrimesThe ucomm (accounting) keyword can, however, be depended on. 5166aac4c27SXin LIIf the arguments are unavailable or do not agree with the ucomm keyword, 5176aac4c27SXin LIthe value for the ucomm keyword is appended to the arguments in parentheses. 5184b88c807SRodney W. Grimes.Sh KEYWORDS 5194b88c807SRodney W. GrimesThe following is a complete list of the available keywords and their 5204b88c807SRodney W. Grimesmeanings. 5214b88c807SRodney W. GrimesSeveral of them have aliases (keywords which are synonyms). 5224b88c807SRodney W. Grimes.Pp 523287d1861SRuslan Ermilov.Bl -tag -width ".Cm sigignore" -compact 524287d1861SRuslan Ermilov.It Cm %cpu 525287d1861SRuslan Ermilovpercentage CPU usage (alias 526287d1861SRuslan Ermilov.Cm pcpu ) 527287d1861SRuslan Ermilov.It Cm %mem 528287d1861SRuslan Ermilovpercentage memory usage (alias 529287d1861SRuslan Ermilov.Cm pmem ) 530287d1861SRuslan Ermilov.It Cm acflag 531287d1861SRuslan Ermilovaccounting flag (alias 532287d1861SRuslan Ermilov.Cm acflg ) 533287d1861SRuslan Ermilov.It Cm args 53403334017SJuli Mallettcommand and arguments 5357123f4cdSEdward Tomasz Napierala.It Cm class 5367123f4cdSEdward Tomasz Napieralalogin class 537287d1861SRuslan Ermilov.It Cm comm 53803334017SJuli Mallettcommand 539287d1861SRuslan Ermilov.It Cm command 54003334017SJuli Mallettcommand and arguments 5414f1e1f86SKonstantin Belousov.It Cm cow 5424f1e1f86SKonstantin Belousovnumber of copy-on-write faults 543287d1861SRuslan Ermilov.It Cm cpu 544287d1861SRuslan Ermilovshort-term CPU usage factor (for scheduling) 54538f2be1cSAndrey Zonov.It Cm dsiz 54638f2be1cSAndrey Zonovdata size (in Kbytes) 547b3178949SSergey Kandaurov.It Cm emul 548cde94a42SEdward Tomasz Napieralasystem-call emulation environment (ABI) 549287d1861SRuslan Ermilov.It Cm etime 55041ded75dSJuli Mallettelapsed running time, format 55141ded75dSJuli Mallett.Op days- Ns 55241ded75dSJuli Mallett.Op hours: Ns 55341ded75dSJuli Mallettminutes:seconds. 55441ded75dSJuli Mallett.It Cm etimes 55541ded75dSJuli Mallettelapsed running time, in decimal integer seconds 5565e9ccc87SWill Andrews.It Cm fib 5575e9ccc87SWill Andrewsdefault FIB number, see 5585e9ccc87SWill Andrews.Xr setfib 1 559287d1861SRuslan Ermilov.It Cm flags 560287d1861SRuslan Ermilovthe process flags, in hexadecimal (alias 561287d1861SRuslan Ermilov.Cm f ) 56238d22923SSergey Kandaurov.It Cm flags2 56338d22923SSergey Kandaurovthe additional set of process flags, in hexadecimal (alias 56438d22923SSergey Kandaurov.Cm f2 ) 5659acd9127SEdward Tomasz Napierala.It Cm gid 5669acd9127SEdward Tomasz Napieralaeffective group ID (alias 5679acd9127SEdward Tomasz Napierala.Cm egid ) 5689acd9127SEdward Tomasz Napierala.It Cm group 5699acd9127SEdward Tomasz Napieralagroup name (from egid) (alias 5709acd9127SEdward Tomasz Napierala.Cm egroup ) 571287d1861SRuslan Ermilov.It Cm inblk 572287d1861SRuslan Ermilovtotal blocks read (alias 573287d1861SRuslan Ermilov.Cm inblock ) 574a990344fSPawel Jakub Dawidek.It Cm jid 575a990344fSPawel Jakub Dawidekjail ID 576287d1861SRuslan Ermilov.It Cm jobc 5774b88c807SRodney W. Grimesjob control count 578287d1861SRuslan Ermilov.It Cm ktrace 5794b88c807SRodney W. Grimestracing flags 580287d1861SRuslan Ermilov.It Cm label 5812af538ebSRobert WatsonMAC label 582287d1861SRuslan Ermilov.It Cm lim 5834b88c807SRodney W. Grimesmemoryuse limit 5846aac4c27SXin LI.It Cm lockname 5856aac4c27SXin LIlock currently blocked on (as a symbolic name) 586287d1861SRuslan Ermilov.It Cm logname 5876aac4c27SXin LIlogin name of user who started the session 588287d1861SRuslan Ermilov.It Cm lstart 5894b88c807SRodney W. Grimestime started 590b3178949SSergey Kandaurov.It Cm lwp 591b3178949SSergey Kandaurovprocess thread-id 592287d1861SRuslan Ermilov.It Cm majflt 5934b88c807SRodney W. Grimestotal page faults 594287d1861SRuslan Ermilov.It Cm minflt 5954b88c807SRodney W. Grimestotal page reclaims 596287d1861SRuslan Ermilov.It Cm msgrcv 5974b88c807SRodney W. Grimestotal messages received (reads from pipes/sockets) 598287d1861SRuslan Ermilov.It Cm msgsnd 5994b88c807SRodney W. Grimestotal messages sent (writes on pipes/sockets) 600287d1861SRuslan Ermilov.It Cm mwchan 6010d632649SJohn Baldwinwait channel or lock currently blocked on 602287d1861SRuslan Ermilov.It Cm nice 603287d1861SRuslan Ermilovnice value (alias 604287d1861SRuslan Ermilov.Cm ni ) 605287d1861SRuslan Ermilov.It Cm nivcsw 6064b88c807SRodney W. Grimestotal involuntary context switches 607b3178949SSergey Kandaurov.It Cm nlwp 608b3178949SSergey Kandaurovnumber of threads tied to a process 609287d1861SRuslan Ermilov.It Cm nsigs 610287d1861SRuslan Ermilovtotal signals taken (alias 611287d1861SRuslan Ermilov.Cm nsignals ) 612287d1861SRuslan Ermilov.It Cm nswap 6134b88c807SRodney W. Grimestotal swaps in/out 614287d1861SRuslan Ermilov.It Cm nvcsw 6154b88c807SRodney W. Grimestotal voluntary context switches 616287d1861SRuslan Ermilov.It Cm nwchan 6174b88c807SRodney W. Grimeswait channel (as an address) 618287d1861SRuslan Ermilov.It Cm oublk 619287d1861SRuslan Ermilovtotal blocks written (alias 620287d1861SRuslan Ermilov.Cm oublock ) 621287d1861SRuslan Ermilov.It Cm paddr 6220d694829SSergey Kandaurovprocess pointer 623287d1861SRuslan Ermilov.It Cm pagein 6244b88c807SRodney W. Grimespageins (same as majflt) 625287d1861SRuslan Ermilov.It Cm pgid 6264b88c807SRodney W. Grimesprocess group number 627287d1861SRuslan Ermilov.It Cm pid 628287d1861SRuslan Ermilovprocess ID 629287d1861SRuslan Ermilov.It Cm ppid 630287d1861SRuslan Ermilovparent process ID 631287d1861SRuslan Ermilov.It Cm pri 6324b88c807SRodney W. Grimesscheduling priority 633287d1861SRuslan Ermilov.It Cm re 6344b88c807SRodney W. Grimescore residency time (in seconds; 127 = infinity) 635287d1861SRuslan Ermilov.It Cm rgid 636287d1861SRuslan Ermilovreal group ID 637287d1861SRuslan Ermilov.It Cm rgroup 638e8eef4bbSJuli Mallettgroup name (from rgid) 639287d1861SRuslan Ermilov.It Cm rss 6404b88c807SRodney W. Grimesresident set size 641287d1861SRuslan Ermilov.It Cm rtprio 642a837235aSDavid Greenmanrealtime priority (101 = not a realtime process) 643287d1861SRuslan Ermilov.It Cm ruid 644287d1861SRuslan Ermilovreal user ID 645287d1861SRuslan Ermilov.It Cm ruser 6464b88c807SRodney W. Grimesuser name (from ruid) 647287d1861SRuslan Ermilov.It Cm sid 648287d1861SRuslan Ermilovsession ID 649287d1861SRuslan Ermilov.It Cm sig 650287d1861SRuslan Ermilovpending signals (alias 651287d1861SRuslan Ermilov.Cm pending ) 652287d1861SRuslan Ermilov.It Cm sigcatch 653287d1861SRuslan Ermilovcaught signals (alias 654287d1861SRuslan Ermilov.Cm caught ) 655287d1861SRuslan Ermilov.It Cm sigignore 656287d1861SRuslan Ermilovignored signals (alias 657287d1861SRuslan Ermilov.Cm ignored ) 658287d1861SRuslan Ermilov.It Cm sigmask 659287d1861SRuslan Ermilovblocked signals (alias 660287d1861SRuslan Ermilov.Cm blocked ) 661287d1861SRuslan Ermilov.It Cm sl 6624b88c807SRodney W. Grimessleep time (in seconds; 127 = infinity) 66338f2be1cSAndrey Zonov.It Cm ssiz 66438f2be1cSAndrey Zonovstack size (in Kbytes) 665287d1861SRuslan Ermilov.It Cm start 6664b88c807SRodney W. Grimestime started 667287d1861SRuslan Ermilov.It Cm state 668287d1861SRuslan Ermilovsymbolic process state (alias 669287d1861SRuslan Ermilov.Cm stat ) 670287d1861SRuslan Ermilov.It Cm svgid 6714b88c807SRodney W. Grimessaved gid from a setgid executable 672287d1861SRuslan Ermilov.It Cm svuid 673287d1861SRuslan Ermilovsaved UID from a setuid executable 674a870bf2cSKonstantin Belousov.It Cm systime 675a870bf2cSKonstantin Belousovaccumulated system CPU time 6766239ef1dSEd Maste.It Cm tdaddr 6776239ef1dSEd Mastethread address 678*4363782bSEdward Tomasz Napierala.It Cm tdname 679*4363782bSEdward Tomasz Napieralathread name 680287d1861SRuslan Ermilov.It Cm tdev 6814b88c807SRodney W. Grimescontrol terminal device number 682287d1861SRuslan Ermilov.It Cm time 683287d1861SRuslan Ermilovaccumulated CPU time, user + system (alias 684287d1861SRuslan Ermilov.Cm cputime ) 685287d1861SRuslan Ermilov.It Cm tpgid 686287d1861SRuslan Ermilovcontrol terminal process group ID 6878b04bbefSMateusz Guzik.It Cm tracer 6888b04bbefSMateusz Guziktracer process ID 689287d1861SRuslan Ermilov.\".It Cm trss 6904b88c807SRodney W. Grimes.\"text resident set size (in Kbytes) 691287d1861SRuslan Ermilov.It Cm tsid 692287d1861SRuslan Ermilovcontrol terminal session ID 693287d1861SRuslan Ermilov.It Cm tsiz 6944b88c807SRodney W. Grimestext size (in Kbytes) 695287d1861SRuslan Ermilov.It Cm tt 6964b88c807SRodney W. Grimescontrol terminal name (two letter abbreviation) 697287d1861SRuslan Ermilov.It Cm tty 6984b88c807SRodney W. Grimesfull name of control terminal 699287d1861SRuslan Ermilov.It Cm ucomm 7004b88c807SRodney W. Grimesname to be used for accounting 701287d1861SRuslan Ermilov.It Cm uid 7029acd9127SEdward Tomasz Napieralaeffective user ID (alias 7039acd9127SEdward Tomasz Napierala.Cm euid ) 704287d1861SRuslan Ermilov.It Cm upr 705287d1861SRuslan Ermilovscheduling priority on return from system call (alias 706287d1861SRuslan Ermilov.Cm usrpri ) 707b3178949SSergey Kandaurov.It Cm uprocp 708b3178949SSergey Kandaurovprocess pointer 709287d1861SRuslan Ermilov.It Cm user 710287d1861SRuslan Ermilovuser name (from UID) 711a870bf2cSKonstantin Belousov.It Cm usertime 712a870bf2cSKonstantin Belousovaccumulated user CPU time 713287d1861SRuslan Ermilov.It Cm vsz 714287d1861SRuslan Ermilovvirtual size in Kbytes (alias 715287d1861SRuslan Ermilov.Cm vsize ) 716287d1861SRuslan Ermilov.It Cm wchan 7174b88c807SRodney W. Grimeswait channel (as a symbolic name) 718287d1861SRuslan Ermilov.It Cm xstat 7194b88c807SRodney W. Grimesexit or stop status (valid only for stopped or zombie process) 7204b88c807SRodney W. Grimes.El 7217117b3d5SKonstantin Belousov.Pp 7227117b3d5SKonstantin BelousovNote that the 7237117b3d5SKonstantin Belousov.Cm pending 7247117b3d5SKonstantin Belousovcolumn displays bitmask of signals pending in the process queue when 7257117b3d5SKonstantin Belousov.Fl H 7267117b3d5SKonstantin Belousovoption is not specified, otherwise the per-thread queue of pending signals 7277117b3d5SKonstantin Belousovis shown. 7284f18100dSTim J. Robbins.Sh ENVIRONMENT 7294f18100dSTim J. RobbinsThe following environment variables affect the execution of 7304f18100dSTim J. Robbins.Nm : 7314f18100dSTim J. Robbins.Bl -tag -width ".Ev COLUMNS" 7324f18100dSTim J. Robbins.It Ev COLUMNS 7334f18100dSTim J. RobbinsIf set, specifies the user's preferred output width in column positions. 7344f18100dSTim J. RobbinsBy default, 7354f18100dSTim J. Robbins.Nm 7364f18100dSTim J. Robbinsattempts to automatically determine the terminal width. 7374f18100dSTim J. Robbins.El 7384b88c807SRodney W. Grimes.Sh FILES 739cd31922fSRuslan Ermilov.Bl -tag -width ".Pa /boot/kernel/kernel" -compact 7401063e126SJosef Karthauser.It Pa /boot/kernel/kernel 7414b88c807SRodney W. Grimesdefault system namelist 7424b88c807SRodney W. Grimes.El 743e9e3a1abSJoel Dahl.Sh EXAMPLES 744e9e3a1abSJoel DahlDisplay information on all system processes: 745e9e3a1abSJoel Dahl.Pp 746e9e3a1abSJoel Dahl.Dl $ ps -auxw 7474b88c807SRodney W. Grimes.Sh SEE ALSO 7484b88c807SRodney W. Grimes.Xr kill 1 , 749585bf557SGarance A Drosehn.Xr pgrep 1 , 750585bf557SGarance A Drosehn.Xr pkill 1 , 751e5002279SEdward Tomasz Napierala.Xr procstat 1 , 7524b88c807SRodney W. Grimes.Xr w 1 , 7534b88c807SRodney W. Grimes.Xr kvm 3 , 754169a1855SJoel Dahl.Xr libxo 3 , 7554b88c807SRodney W. Grimes.Xr strftime 3 , 756169a1855SJoel Dahl.Xr xo_parse_args 3 , 757ac06cb0aSRobert Watson.Xr mac 4 , 758b5f82180SRuslan Ermilov.Xr procfs 5 , 7599b67ac59SJohn Baldwin.Xr pstat 8 , 7606b821228SDima Dorfman.Xr sysctl 8 , 7619b67ac59SJohn Baldwin.Xr mutex 9 762a4c8a745SGarance A Drosehn.Sh STANDARDS 7636aac4c27SXin LIFor historical reasons, the 764a4c8a745SGarance A Drosehn.Nm 765a4c8a745SGarance A Drosehnutility under 766a4c8a745SGarance A Drosehn.Fx 767a4c8a745SGarance A Drosehnsupports a different set of options from what is described by 768a4c8a745SGarance A Drosehn.St -p1003.2 , 769287d1861SRuslan Ermilovand what is supported on 770287d1861SRuslan Ermilov.No non- Ns Bx 771287d1861SRuslan Ermilovoperating systems. 772a13d4e42SJuli Mallett.Sh HISTORY 773a13d4e42SJuli MallettThe 774a13d4e42SJuli Mallett.Nm 775a13d4e42SJuli Mallettcommand appeared in 77615919690SWarren Block.At v3 77715919690SWarren Blockin section 8 of the manual. 7784b88c807SRodney W. Grimes.Sh BUGS 7794b88c807SRodney W. GrimesSince 780c9a8d1f4SPhilippe Charnier.Nm 7814b88c807SRodney W. Grimescannot run faster than the system and is run as any other scheduled 7824b88c807SRodney W. Grimesprocess, the information it displays can never be exact. 783b59ca660STim J. Robbins.Pp 784b59ca660STim J. RobbinsThe 785b59ca660STim J. Robbins.Nm 786b59ca660STim J. Robbinsutility does not correctly display argument lists containing multibyte 787b59ca660STim J. Robbinscharacters. 788