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.\" 29ba44650aSBenedict Reuschling.Dd November 11, 2023 304b88c807SRodney W. Grimes.Dt PS 1 31caa2db3bSRuslan Ermilov.Os 324b88c807SRodney W. Grimes.Sh NAME 33c9a8d1f4SPhilippe Charnier.Nm ps 344b88c807SRodney W. Grimes.Nd process status 354b88c807SRodney W. Grimes.Sh SYNOPSIS 36be8b1497SRuslan Ermilov.Nm 378beb1a2fSMarcel Moolenaar.Op Fl -libxo 38044fce53SBrian Somers.Op Fl aCcdefHhjlmrSTuvwXxZ 39a89237aeSRuslan Ermilov.Op Fl O Ar fmt | Fl o Ar fmt 405c0a1c15SPiotr Pawel Stefaniak.Op Fl D Ar up | down | both 41287d1861SRuslan Ermilov.Op Fl G Ar gid Ns Op , Ns Ar gid Ns Ar ... 4213767130SBryan Drewery.Op Fl J Ar jid Ns Op , Ns Ar jid Ns Ar ... 434b88c807SRodney W. Grimes.Op Fl M Ar core 444b88c807SRodney W. Grimes.Op Fl N Ar system 45287d1861SRuslan Ermilov.Op Fl p Ar pid Ns Op , Ns Ar pid Ns Ar ... 46287d1861SRuslan Ermilov.Op Fl t Ar tty Ns Op , Ns Ar tty Ns Ar ... 47a89237aeSRuslan Ermilov.Op Fl U Ar user Ns Op , Ns Ar user Ns Ar ... 48be8b1497SRuslan Ermilov.Nm 498beb1a2fSMarcel Moolenaar.Op Fl -libxo 503f46bf40SMateusz Piotrowski.Fl L 514b88c807SRodney W. Grimes.Sh DESCRIPTION 52e004acc8SPhilippe CharnierThe 53e004acc8SPhilippe Charnier.Nm 54e004acc8SPhilippe Charnierutility 558ed0d42fSGarance A Drosehndisplays a header line, followed by lines containing information about 568ed0d42fSGarance A Drosehnall of your 574b88c807SRodney W. Grimesprocesses that have controlling terminals. 582d455a01SGlen BarberIf the 592d455a01SGlen Barber.Fl x 602d455a01SGlen Barberoptions is specified, 612d455a01SGlen Barber.Nm 622d455a01SGlen Barberwill also display processes that do not have controlling terminals. 634b88c807SRodney W. Grimes.Pp 64a4c8a745SGarance A DrosehnA different set of processes can be selected for display by using any 65a4c8a745SGarance A Drosehncombination of the 66ba44650aSBenedict Reuschling.Fl a , D , G , J , p , T , t , 67a4c8a745SGarance A Drosehnand 68a4c8a745SGarance A Drosehn.Fl U 69a4c8a745SGarance A Drosehnoptions. 70a4c8a745SGarance A DrosehnIf more than one of these options are given, then 71a4c8a745SGarance A Drosehn.Nm 72a4c8a745SGarance A Drosehnwill select all processes which are matched by at least one of the 73a4c8a745SGarance A Drosehngiven options. 74a4c8a745SGarance A Drosehn.Pp 758ed0d42fSGarance A DrosehnFor the processes which have been selected for display, 768ed0d42fSGarance A Drosehn.Nm 778ed0d42fSGarance A Drosehnwill usually display one line per process. 788ed0d42fSGarance A DrosehnThe 798ed0d42fSGarance A Drosehn.Fl H 808ed0d42fSGarance A Drosehnoption may result in multiple output lines (one line per thread) for 818ed0d42fSGarance A Drosehnsome processes. 828ed0d42fSGarance A DrosehnBy default all of these output lines are sorted first by controlling 83287d1861SRuslan Ermilovterminal, then by process ID. 848ed0d42fSGarance A DrosehnThe 858ed0d42fSGarance A Drosehn.Fl m , r , u , 868ed0d42fSGarance A Drosehnand 878ed0d42fSGarance A Drosehn.Fl v 888ed0d42fSGarance A Drosehnoptions will change the sort order. 898ed0d42fSGarance A DrosehnIf more than one sorting option was given, then the selected processes 908ed0d42fSGarance A Drosehnwill be sorted by the last sorting option which was specified. 918ed0d42fSGarance A Drosehn.Pp 92a4c8a745SGarance A DrosehnFor the processes which have been selected for display, the information 93a4c8a745SGarance A Drosehnto display is selected based on a set of keywords (see the 94287d1861SRuslan Ermilov.Fl L , O , 954b88c807SRodney W. Grimesand 964b88c807SRodney W. Grimes.Fl o 974b88c807SRodney W. Grimesoptions). 98287d1861SRuslan ErmilovThe default output format includes, for each process, the process' ID, 9964015438SGlen Barbercontrolling terminal, state, CPU time (including both user and system time) 10064015438SGlen Barberand associated command. 1014b88c807SRodney W. Grimes.Pp 10230417f2cSMike KarelsIf the 10330417f2cSMike Karels.Nm 10430417f2cSMike Karelsprocess is associated with a terminal, the default output width is that of the 10530417f2cSMike Karelsterminal; otherwise the output width is unlimited. 10630417f2cSMike KarelsSee also the 10730417f2cSMike Karels.Fl w 10830417f2cSMike Karelsoption. 10930417f2cSMike Karels.Pp 1104b88c807SRodney W. GrimesThe options are as follows: 1114b88c807SRodney W. Grimes.Bl -tag -width indent 11206691045SCraig Rodrigues.It Fl -libxo 11306691045SCraig RodriguesGenerate output via 11406691045SCraig Rodrigues.Xr libxo 3 11506691045SCraig Rodriguesin a selection of different human and machine readable formats. 11606691045SCraig RodriguesSee 11706691045SCraig Rodrigues.Xr xo_parse_args 3 11806691045SCraig Rodriguesfor details on command line arguments. 1194b88c807SRodney W. Grimes.It Fl a 1204b88c807SRodney W. GrimesDisplay information about other users' processes as well as your own. 1212d455a01SGlen BarberIf the 122d883e289SJosef Karthauser.Va security.bsd.see_other_uids 1232d455a01SGlen Barbersysctl is set to zero, this option is honored only if the UID of the user is 0. 124db91faacSPeter Wemm.It Fl c 125287d1861SRuslan ErmilovChange the 126287d1861SRuslan Ermilov.Dq command 127287d1861SRuslan Ermilovcolumn output to just contain the executable name, 128db91faacSPeter Wemmrather than the full command line. 1294b88c807SRodney W. Grimes.It Fl C 130287d1861SRuslan ErmilovChange the way the CPU percentage is calculated by using a 131287d1861SRuslan Ermilov.Dq raw 132287d1861SRuslan ErmilovCPU calculation that ignores 133287d1861SRuslan Ermilov.Dq resident 134287d1861SRuslan Ermilovtime (this normally has 1354b88c807SRodney W. Grimesno effect). 136044fce53SBrian Somers.It Fl d 137044fce53SBrian SomersArrange processes into descendancy order and prefix each command with 1384162d139SEdward Tomasz Napieralaindentation text showing sibling and parent/child relationships as a tree. 139044fce53SBrian SomersIf either of the 140044fce53SBrian Somers.Fl m 141044fce53SBrian Somersand 142044fce53SBrian Somers.Fl r 143044fce53SBrian Somersoptions are also used, they control how sibling processes are sorted 144044fce53SBrian Somersrelative to each other. 145b9ff20abSEdward Tomasz NapieralaNote that this option has no effect if the 146b9ff20abSEdward Tomasz Napierala.Dq command 147b9ff20abSEdward Tomasz Napieralacolumn is not the last column displayed. 1485c0a1c15SPiotr Pawel Stefaniak.It Fl D 1495c0a1c15SPiotr Pawel StefaniakExpand the list of selected processes based on the process tree. 1505c0a1c15SPiotr Pawel Stefaniak.Dq UP 1515c0a1c15SPiotr Pawel Stefaniakwill add the ancestor processes, 1525c0a1c15SPiotr Pawel Stefaniak.Dq DOWN 1535c0a1c15SPiotr Pawel Stefaniakwill add the descendant processes, and 1545c0a1c15SPiotr Pawel Stefaniak.Dq BOTH 1555c0a1c15SPiotr Pawel Stefaniakwill add both the ancestor and the descendant processes. 1565c0a1c15SPiotr Pawel Stefaniak.Fl D 1575c0a1c15SPiotr Pawel Stefaniakdoes not imply 1585c0a1c15SPiotr Pawel Stefaniak.Fl d , 1595c0a1c15SPiotr Pawel Stefaniakbut works well with it. 1604b88c807SRodney W. Grimes.It Fl e 1614b88c807SRodney W. GrimesDisplay the environment as well. 162a4c8a745SGarance A Drosehn.It Fl G 163a4c8a745SGarance A DrosehnDisplay information about processes which are running with the specified 164287d1861SRuslan Ermilovreal group IDs. 16548b8c0deSScott Long.It Fl H 166faf5dd87SJohn BaldwinShow all of the threads associated with each process. 1674b88c807SRodney W. Grimes.It Fl h 1684b88c807SRodney W. GrimesRepeat the information header as often as necessary to guarantee one 1694b88c807SRodney W. Grimesheader per page of information. 1704b88c807SRodney W. Grimes.It Fl j 1714b88c807SRodney W. GrimesPrint information associated with the following keywords: 172259fcfacSGarance A Drosehn.Cm user , pid , ppid , pgid , sid , jobc , state , tt , time , 173287d1861SRuslan Ermilovand 174287d1861SRuslan Ermilov.Cm command . 17513767130SBryan Drewery.It Fl J 17613767130SBryan DreweryDisplay information about processes which match the specified jail IDs. 17713767130SBryan DreweryThis may be either the 17813767130SBryan Drewery.Cm jid 17913767130SBryan Dreweryor 18013767130SBryan Drewery.Cm name 18113767130SBryan Dreweryof the jail. 18213767130SBryan DreweryUse 18313767130SBryan Drewery.Fl J 18413767130SBryan Drewery.Sy 0 18513767130SBryan Dreweryto display only host processes. 18613767130SBryan DreweryThis flag implies 18713767130SBryan Drewery.Fl x 18813767130SBryan Dreweryby default. 1894b88c807SRodney W. Grimes.It Fl L 1908ed0d42fSGarance A DrosehnList the set of keywords available for the 1918ed0d42fSGarance A Drosehn.Fl O 1928ed0d42fSGarance A Drosehnand 1938ed0d42fSGarance A Drosehn.Fl o 1948ed0d42fSGarance A Drosehnoptions. 1954b88c807SRodney W. Grimes.It Fl l 1964b88c807SRodney W. GrimesDisplay information associated with the following keywords: 197287d1861SRuslan Ermilov.Cm uid , pid , ppid , cpu , pri , nice , vsz , rss , mwchan , state , 198287d1861SRuslan Ermilov.Cm tt , time , 199287d1861SRuslan Ermilovand 200287d1861SRuslan Ermilov.Cm command . 2014b88c807SRodney W. Grimes.It Fl M 2024b88c807SRodney W. GrimesExtract values associated with the name list from the specified core 203cd31922fSRuslan Ermilovinstead of the currently running system. 2044b88c807SRodney W. Grimes.It Fl m 2058ed0d42fSGarance A DrosehnSort by memory usage, instead of the combination of controlling 206287d1861SRuslan Ermilovterminal and process ID. 2074b88c807SRodney W. Grimes.It Fl N 208f9a480abSRuslan ErmilovExtract the name list from the specified system instead of the default, 209f9a480abSRuslan Ermilovwhich is the kernel image the system has booted from. 2104b88c807SRodney W. Grimes.It Fl O 2114b88c807SRodney W. GrimesAdd the information associated with the space or comma separated list 212287d1861SRuslan Ermilovof keywords specified, after the process ID, 2134b88c807SRodney W. Grimesin the default information 2144b88c807SRodney W. Grimesdisplay. 215287d1861SRuslan ErmilovKeywords may be appended with an equals 216287d1861SRuslan Ermilov.Pq Ql = 217287d1861SRuslan Ermilovsign and a string. 2184b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 2194b88c807SRodney W. Grimesthe standard header. 2204b88c807SRodney W. Grimes.It Fl o 2212dda9fe9SJuli MallettDisplay information associated with the space or comma separated 2222dda9fe9SJuli Mallettlist of keywords specified. 22361b92b9aSYaroslav TykhiyThe last keyword in the list may be appended with an equals 22461b92b9aSYaroslav Tykhiy.Pq Ql = 2259badf57fSRuslan Ermilovsign and a string that spans the rest of the argument, and can contain 2267c5169efSYaroslav Tykhiyspace and comma characters. 22761b92b9aSYaroslav TykhiyThis causes the printed header to use the specified string instead of 22861b92b9aSYaroslav Tykhiythe standard header. 22950355bb4SJuli MallettMultiple keywords may also be given in the form of more than one 23050355bb4SJuli Mallett.Fl o 23150355bb4SJuli Mallettoption. 23261b92b9aSYaroslav TykhiySo the header texts for multiple keywords can be changed. 2336aac4c27SXin LIIf all keywords have empty header texts, no header line is written. 2344b88c807SRodney W. Grimes.It Fl p 235287d1861SRuslan ErmilovDisplay information about processes which match the specified process IDs. 2364b88c807SRodney W. Grimes.It Fl r 237287d1861SRuslan ErmilovSort by current CPU usage, instead of the combination of controlling 238287d1861SRuslan Ermilovterminal and process ID. 2394b88c807SRodney W. Grimes.It Fl S 240a870bf2cSKonstantin BelousovChange the way the process times, namely cputime, systime, and usertime, 241a870bf2cSKonstantin Belousovare calculated by summing all exited children to their parent process. 2424b88c807SRodney W. Grimes.It Fl T 2434b88c807SRodney W. GrimesDisplay information about processes attached to the device associated 2444b88c807SRodney W. Grimeswith the standard input. 2454b88c807SRodney W. Grimes.It Fl t 2464b88c807SRodney W. GrimesDisplay information about processes attached to the specified terminal 247287d1861SRuslan Ermilovdevices. 2482d455a01SGlen BarberFull pathnames, as well as abbreviations (see explanation of the 2492d455a01SGlen Barber.Cm tt 2502d455a01SGlen Barberkeyword) can be specified. 25173eb8310SPeter Wemm.It Fl U 252287d1861SRuslan ErmilovDisplay the processes belonging to the specified usernames. 2534b88c807SRodney W. Grimes.It Fl u 2544b88c807SRodney W. GrimesDisplay information associated with the following keywords: 255287d1861SRuslan Ermilov.Cm user , pid , %cpu , %mem , vsz , rss , tt , state , start , time , 256287d1861SRuslan Ermilovand 257287d1861SRuslan Ermilov.Cm command . 2584b88c807SRodney W. GrimesThe 2594b88c807SRodney W. Grimes.Fl u 2604b88c807SRodney W. Grimesoption implies the 2614b88c807SRodney W. Grimes.Fl r 2624b88c807SRodney W. Grimesoption. 2634b88c807SRodney W. Grimes.It Fl v 2644b88c807SRodney W. GrimesDisplay information associated with the following keywords: 265287d1861SRuslan Ermilov.Cm pid , state , time , sl , re , pagein , vsz , rss , lim , tsiz , 266287d1861SRuslan Ermilov.Cm %cpu , %mem , 267287d1861SRuslan Ermilovand 268287d1861SRuslan Ermilov.Cm command . 2694b88c807SRodney W. GrimesThe 2704b88c807SRodney W. Grimes.Fl v 2714b88c807SRodney W. Grimesoption implies the 2724b88c807SRodney W. Grimes.Fl m 2734b88c807SRodney W. Grimesoption. 2744b88c807SRodney W. Grimes.It Fl w 27530417f2cSMike KarelsUse at least 132 columns to display information, instead of the default which 27630417f2cSMike Karelsis the window size if 27730417f2cSMike Karels.Nm 27830417f2cSMike Karelsis associated with a terminal. 2794b88c807SRodney W. GrimesIf the 2804b88c807SRodney W. Grimes.Fl w 2814b88c807SRodney W. Grimesoption is specified more than once, 282c9a8d1f4SPhilippe Charnier.Nm 28330417f2cSMike Karelswill use as many columns as necessary without regard for the window size. 284b9ff20abSEdward Tomasz NapieralaNote that this option has no effect if the 285b9ff20abSEdward Tomasz Napierala.Dq command 286b9ff20abSEdward Tomasz Napieralacolumn is not the last column displayed. 287a4c8a745SGarance A Drosehn.It Fl X 288a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, skip any processes 289a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 290b9ff20abSEdward Tomasz NapieralaThis is the default behaviour. 2914b88c807SRodney W. Grimes.It Fl x 292a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, include processes 293a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 294a4c8a745SGarance A DrosehnThis is the opposite of the 295a4c8a745SGarance A Drosehn.Fl X 296a4c8a745SGarance A Drosehnoption. 297a4c8a745SGarance A DrosehnIf both 298a4c8a745SGarance A Drosehn.Fl X 299a4c8a745SGarance A Drosehnand 300a4c8a745SGarance A Drosehn.Fl x 301a4c8a745SGarance A Drosehnare specified in the same command, then 302a4c8a745SGarance A Drosehn.Nm 303a4c8a745SGarance A Drosehnwill use the one which was specified last. 3047304f61fSBrian Feldman.It Fl Z 305ac06cb0aSRobert WatsonAdd 306ac06cb0aSRobert Watson.Xr mac 4 307ac06cb0aSRobert Watsonlabel to the list of keywords for which 3087304f61fSBrian Feldman.Nm 3097304f61fSBrian Feldmanwill display information. 3104b88c807SRodney W. Grimes.El 3114b88c807SRodney W. Grimes.Pp 3124b88c807SRodney W. GrimesA complete list of the available keywords are listed below. 3134b88c807SRodney W. GrimesSome of these keywords are further specified as follows: 3140d632649SJohn Baldwin.Bl -tag -width lockname 315287d1861SRuslan Ermilov.It Cm %cpu 316287d1861SRuslan ErmilovThe CPU utilization of the process; this is a decaying average over up to 3174b88c807SRodney W. Grimesa minute of previous (real) time. 3184b88c807SRodney W. GrimesSince the time base over which this is computed varies (since processes may 3194b88c807SRodney W. Grimesbe very young) it is possible for the sum of all 320287d1861SRuslan Ermilov.Cm %cpu 3214b88c807SRodney W. Grimesfields to exceed 100%. 322287d1861SRuslan Ermilov.It Cm %mem 3234b88c807SRodney W. GrimesThe percentage of real memory used by this process. 3247123f4cdSEdward Tomasz Napierala.It Cm class 3257123f4cdSEdward Tomasz NapieralaLogin class associated with the process. 326287d1861SRuslan Ermilov.It Cm flags 327c01bf97cSSujal PatelThe flags associated with the process as in 3284b88c807SRodney W. Grimesthe include file 329fe08efe6SRuslan Ermilov.In sys/proc.h : 3307117b3d5SKonstantin Belousov.Bl -column P_SINGLE_BOUNDARY 0x40000000 331cd9e781eSKonstantin Belousov.It Dv "P_ADVLOCK" Ta No "0x00000001" Ta "Process may hold a POSIX advisory lock" 332cd9e781eSKonstantin Belousov.It Dv "P_CONTROLT" Ta No "0x00000002" Ta "Has a controlling terminal" 333cd9e781eSKonstantin Belousov.It Dv "P_KPROC" Ta No "0x00000004" Ta "Kernel process" 334cd9e781eSKonstantin Belousov.It Dv "P_PPWAIT" Ta No "0x00000010" Ta "Parent is waiting for child to exec/exit" 335cd9e781eSKonstantin Belousov.It Dv "P_PROFIL" Ta No "0x00000020" Ta "Has started profiling" 336cd9e781eSKonstantin Belousov.It Dv "P_STOPPROF" Ta No "0x00000040" Ta "Has thread in requesting to stop prof" 337cd9e781eSKonstantin Belousov.It Dv "P_HADTHREADS" Ta No "0x00000080" Ta "Has had threads (no cleanup shortcuts)" 338cd9e781eSKonstantin Belousov.It Dv "P_SUGID" Ta No "0x00000100" Ta "Had set id privileges since last exec" 339cd9e781eSKonstantin Belousov.It Dv "P_SYSTEM" Ta No "0x00000200" Ta "System proc: no sigs, stats or swapping" 340cd9e781eSKonstantin Belousov.It Dv "P_SINGLE_EXIT" Ta No "0x00000400" Ta "Threads suspending should exit, not wait" 341cd9e781eSKonstantin Belousov.It Dv "P_TRACED" Ta No "0x00000800" Ta "Debugged process being traced" 342cd9e781eSKonstantin Belousov.It Dv "P_WAITED" Ta No "0x00001000" Ta "Someone is waiting for us" 343cd9e781eSKonstantin Belousov.It Dv "P_WEXIT" Ta No "0x00002000" Ta "Working on exiting" 344cd9e781eSKonstantin Belousov.It Dv "P_EXEC" Ta No "0x00004000" Ta "Process called exec" 345cd9e781eSKonstantin Belousov.It Dv "P_WKILLED" Ta No "0x00008000" Ta "Killed, shall go to kernel/user boundary ASAP" 346cd9e781eSKonstantin Belousov.It Dv "P_CONTINUED" Ta No "0x00010000" Ta "Proc has continued from a stopped state" 347cd9e781eSKonstantin Belousov.It Dv "P_STOPPED_SIG" Ta No "0x00020000" Ta "Stopped due to SIGSTOP/SIGTSTP" 348cd9e781eSKonstantin Belousov.It Dv "P_STOPPED_TRACE" Ta No "0x00040000" Ta "Stopped because of tracing" 349cd9e781eSKonstantin Belousov.It Dv "P_STOPPED_SINGLE" Ta No "0x00080000" Ta "Only one thread can continue" 350cd9e781eSKonstantin Belousov.It Dv "P_PROTECTED" Ta No "0x00100000" Ta "Do not kill on memory overcommit" 351cd9e781eSKonstantin Belousov.It Dv "P_SIGEVENT" Ta No "0x00200000" Ta "Process pending signals changed" 352cd9e781eSKonstantin Belousov.It Dv "P_SINGLE_BOUNDARY" Ta No "0x00400000" Ta "Threads should suspend at user boundary" 353cd9e781eSKonstantin Belousov.It Dv "P_HWPMC" Ta No "0x00800000" Ta "Process is using HWPMCs" 354cd9e781eSKonstantin Belousov.It Dv "P_JAILED" Ta No "0x01000000" Ta "Process is in jail" 355cd9e781eSKonstantin Belousov.It Dv "P_TOTAL_STOP" Ta No "0x02000000" Ta "Stopped for system suspend" 356cd9e781eSKonstantin Belousov.It Dv "P_INEXEC" Ta No "0x04000000" Ta Process is in Xr execve 2 357cd9e781eSKonstantin Belousov.It Dv "P_STATCHILD" Ta No "0x08000000" Ta "Child process stopped or exited" 358*62e6ca0fSKonstantin Belousov.It Dv "P_INMEM" Ta No "0x10000000" Ta "Always set, unused" 35945732078SKonstantin Belousov.It Dv "P_PPTRACE" Ta No "0x80000000" Ta "Vforked child issued ptrace(PT_TRACEME)" 3604b88c807SRodney W. Grimes.El 36138d22923SSergey Kandaurov.It Cm flags2 36238d22923SSergey KandaurovThe flags kept in 36338d22923SSergey Kandaurov.Va p_flag2 36438d22923SSergey Kandaurovassociated with the process as in 36538d22923SSergey Kandaurovthe include file 36638d22923SSergey Kandaurov.In sys/proc.h : 36738d22923SSergey Kandaurov.Bl -column P2_INHERIT_PROTECTED 0x00000001 36838d22923SSergey Kandaurov.It Dv "P2_INHERIT_PROTECTED" Ta No "0x00000001" Ta "New children get P_PROTECTED" 369f11e51a9SMateusz Piotrowski.It Dv "P2_NOTRACE" Ta No "0x00000002" Ta "No" Xr ptrace 2 attach or coredumps 370f11e51a9SMateusz Piotrowski.It Dv "P2_NOTRACE_EXEC" Ta No "0x00000004" Ta Keep P2_NOPTRACE on Xr execve 2 371e8d89b84SSergey Kandaurov.It Dv "P2_AST_SU" Ta No "0x00000008" Ta "Handles SU ast for kthreads" 372b7a25e63SKonstantin Belousov.It Dv "P2_PTRACE_FSTP" Ta No "0x00000010" Ta "SIGSTOP from PT_ATTACH not yet handled" 3734c367bc9SKonstantin Belousov.It Dv "P2_TRAPCAP" Ta No "0x00000020" Ta "SIGTRAP on ENOTCAPABLE" 3744c367bc9SKonstantin Belousov.It Dv "P2_ASLR_ENABLE" Ta No "0x00000040" Ta "Force enable ASLR" 3754c367bc9SKonstantin Belousov.It Dv "P2_ASLR_DISABLE" Ta No "0x00000080" Ta "Force disable ASLR" 3764c367bc9SKonstantin Belousov.It Dv "P2_ASLR_IGNSTART" Ta No "0x00000100" Ta "Enable ASLR to consume sbrk area" 3774c367bc9SKonstantin Belousov.It Dv "P2_PROTMAX_ENABLE" Ta No "0x00000200" Ta "Force enable implied PROT_MAX" 3784c367bc9SKonstantin Belousov.It Dv "P2_PROTMAX_DISABLE" Ta No "0x00000400" Ta "Force disable implied PROT_MAX" 3794c367bc9SKonstantin Belousov.It Dv "P2_STKGAP_DISABLE" Ta No "0x00000800" Ta "Disable stack gap for MAP_STACK" 3804c367bc9SKonstantin Belousov.It Dv "P2_STKGAP_DISABLE_EXEC" Ta No "0x00001000" Ta "Stack gap disabled after exec" 3814c367bc9SKonstantin Belousov.It Dv "P2_ITSTOPPED" Ta No "0x00002000" Ta "itimers stopped (as part of process stop)" 3824c367bc9SKonstantin Belousov.It Dv "P2_PTRACEREQ" Ta No "0x00004000" Ta "Active ptrace req" 3834c367bc9SKonstantin Belousov.It Dv "P2_NO_NEW_PRIVS" Ta No "0x00008000" Ta "Ignore setuid on exec" 3844c367bc9SKonstantin Belousov.It Dv "P2_WXORX_DISABLE" Ta No "0x00010000" Ta "WX mappings enabled" 3854c367bc9SKonstantin Belousov.It Dv "P2_WXORX_ENABLE_EXEC" Ta No "0x00020000" Ta "WxorX enabled after exec" 3864c367bc9SKonstantin Belousov.It Dv "P2_WEXIT" Ta No "0x00040000" Ta "Internal exit early state" 3874c367bc9SKonstantin Belousov.It Dv "P2_REAPKILLED" Ta No "0x00080000" Ta "REAP_KILL pass handled the process" 3884c367bc9SKonstantin Belousov.It Dv "P2_MEMBAR_PRIVE" Ta No "0x00100000" Ta "membarrier private expedited registered" 3894c367bc9SKonstantin Belousov.It Dv "P2_MEMBAR_PRIVE_SYNCORE" Ta No "0x00200000" Ta "membarrier private expedited sync core registered" 3904c367bc9SKonstantin Belousov.It Dv "P2_MEMBAR_GLOBE" Ta No "0x00400000" Ta "membar global expedited registered" 39138d22923SSergey Kandaurov.El 392287d1861SRuslan Ermilov.It Cm label 3932af538ebSRobert WatsonThe MAC label of the process. 394287d1861SRuslan Ermilov.It Cm lim 3954b88c807SRodney W. GrimesThe soft limit on memory used, specified via a call to 3964b88c807SRodney W. Grimes.Xr setrlimit 2 . 397287d1861SRuslan Ermilov.It Cm lstart 398287d1861SRuslan ErmilovThe exact time the command started, using the 399287d1861SRuslan Ermilov.Ql %c 400287d1861SRuslan Ermilovformat described in 4014b88c807SRodney W. Grimes.Xr strftime 3 . 402287d1861SRuslan Ermilov.It Cm lockname 4030d632649SJohn BaldwinThe name of the lock that the process is currently blocked on. 4049b67ac59SJohn BaldwinIf the name is invalid or unknown, then 40512e720d7SRuslan Ermilov.Dq ???\& 4069b67ac59SJohn Baldwinis displayed. 4076aac4c27SXin LI.It Cm logname 4086aac4c27SXin LIThe login name associated with the session the process is in (see 4096aac4c27SXin LI.Xr getlogin 2 ) . 410287d1861SRuslan Ermilov.It Cm mwchan 4110d632649SJohn BaldwinThe event name if the process is blocked normally, or the lock name if 4120d632649SJohn Baldwinthe process is blocked on a lock. 4130d632649SJohn BaldwinSee the wchan and lockname keywords 414d9a5f890SMatthew Dillonfor details. 415287d1861SRuslan Ermilov.It Cm nice 4164b88c807SRodney W. GrimesThe process scheduling increment (see 4174b88c807SRodney W. Grimes.Xr setpriority 2 ) . 418287d1861SRuslan Ermilov.It Cm rss 4194b88c807SRodney W. Grimesthe real memory (resident set) size of the process (in 1024 byte units). 420287d1861SRuslan Ermilov.It Cm start 4214b88c807SRodney W. GrimesThe time the command started. 4224b88c807SRodney W. GrimesIf the command started less than 24 hours ago, the start time is 423287d1861SRuslan Ermilovdisplayed using the 424c2290ff6SMark Felder.Dq Li %H:%M 425287d1861SRuslan Ermilovformat described in 4264b88c807SRodney W. Grimes.Xr strftime 3 . 4274b88c807SRodney W. GrimesIf the command started less than 7 days ago, the start time is 428287d1861SRuslan Ermilovdisplayed using the 429c2290ff6SMark Felder.Dq Li %a%H 430287d1861SRuslan Ermilovformat. 431287d1861SRuslan ErmilovOtherwise, the start time is displayed using the 432287d1861SRuslan Ermilov.Dq Li %e%b%y 433287d1861SRuslan Ermilovformat. 434287d1861SRuslan Ermilov.It Cm state 435a54b88d8SChristian BruefferThe state is given by a sequence of characters, for example, 436287d1861SRuslan Ermilov.Dq Li RWNA . 437a54b88d8SChristian BruefferThe first character indicates the run state of the process: 4384b88c807SRodney W. Grimes.Pp 4394b88c807SRodney W. Grimes.Bl -tag -width indent -compact 440287d1861SRuslan Ermilov.It Li D 4414b88c807SRodney W. GrimesMarks a process in disk (or other short term, uninterruptible) wait. 442287d1861SRuslan Ermilov.It Li I 4434b88c807SRodney W. GrimesMarks a process that is idle (sleeping for longer than about 20 seconds). 444287d1861SRuslan Ermilov.It Li L 4450d632649SJohn BaldwinMarks a process that is waiting to acquire a lock. 446287d1861SRuslan Ermilov.It Li R 4474b88c807SRodney W. GrimesMarks a runnable process. 448287d1861SRuslan Ermilov.It Li S 4494b88c807SRodney W. GrimesMarks a process that is sleeping for less than about 20 seconds. 450287d1861SRuslan Ermilov.It Li T 4514b88c807SRodney W. GrimesMarks a stopped process. 452287d1861SRuslan Ermilov.It Li W 453bcf85d67SColin PercivalMarks an idle interrupt thread. 454287d1861SRuslan Ermilov.It Li Z 455287d1861SRuslan ErmilovMarks a dead process (a 456287d1861SRuslan Ermilov.Dq zombie ) . 4574b88c807SRodney W. Grimes.El 4584b88c807SRodney W. Grimes.Pp 4594b88c807SRodney W. GrimesAdditional characters after these, if any, indicate additional state 4604b88c807SRodney W. Grimesinformation: 4614b88c807SRodney W. Grimes.Pp 4624b88c807SRodney W. Grimes.Bl -tag -width indent -compact 463287d1861SRuslan Ermilov.It Li + 4644b88c807SRodney W. GrimesThe process is in the foreground process group of its control terminal. 465287d1861SRuslan Ermilov.It Li < 466287d1861SRuslan ErmilovThe process has raised CPU scheduling priority. 4676f47d67bSEdward Tomasz Napierala.It Li C 4686f47d67bSEdward Tomasz NapieralaThe process is in 4696f47d67bSEdward Tomasz Napierala.Xr capsicum 4 4706f47d67bSEdward Tomasz Napieralacapability mode. 471287d1861SRuslan Ermilov.It Li E 4724b88c807SRodney W. GrimesThe process is trying to exit. 473287d1861SRuslan Ermilov.It Li J 474bcf85d67SColin PercivalMarks a process which is in 475bcf85d67SColin Percival.Xr jail 2 . 476bcf85d67SColin PercivalThe hostname of the prison can be found in 477287d1861SRuslan Ermilov.Pa /proc/ Ns Ao Ar pid Ac Ns Pa /status . 478287d1861SRuslan Ermilov.It Li L 479f11e51a9SMateusz PiotrowskiThe process has pages locked in core (for example, for raw I/O). 480287d1861SRuslan Ermilov.It Li N 481287d1861SRuslan ErmilovThe process has reduced CPU scheduling priority (see 4824b88c807SRodney W. Grimes.Xr setpriority 2 ) . 483287d1861SRuslan Ermilov.It Li s 4844b88c807SRodney W. GrimesThe process is a session leader. 485287d1861SRuslan Ermilov.It Li V 48693f7e978SMark JohnstonThe process' parent is suspended during a 48793f7e978SMark Johnston.Xr vfork 2 , 48893f7e978SMark Johnstonwaiting for the process to exec or exit. 489287d1861SRuslan Ermilov.It Li X 4904b88c807SRodney W. GrimesThe process is being traced or debugged. 4914b88c807SRodney W. Grimes.El 492287d1861SRuslan Ermilov.It Cm tt 4934b88c807SRodney W. GrimesAn abbreviation for the pathname of the controlling terminal, if any. 49477027e30SJoseph KoshyThe abbreviation consists of the three letters following 495c9a8d1f4SPhilippe Charnier.Pa /dev/tty , 4966ec3cd07SGlen Barberor, for pseudo-terminals, the corresponding entry in 4972d455a01SGlen Barber.Pa /dev/pts . 498287d1861SRuslan ErmilovThis is followed by a 499287d1861SRuslan Ermilov.Ql - 500287d1861SRuslan Ermilovif the process can no longer reach that 5014b88c807SRodney W. Grimescontrolling terminal (i.e., it has been revoked). 502aa7a15b6SEdward Tomasz NapieralaA 503aa7a15b6SEdward Tomasz Napierala.Ql - 504aa7a15b6SEdward Tomasz Napieralawithout a preceding two letter abbreviation or pseudo-terminal device number 505aa7a15b6SEdward Tomasz Napieralaindicates a process which never had a controlling terminal. 5062d455a01SGlen BarberThe full pathname of the controlling terminal is available via the 5072d455a01SGlen Barber.Cm tty 5082d455a01SGlen Barberkeyword. 509287d1861SRuslan Ermilov.It Cm wchan 5104b88c807SRodney W. GrimesThe event (an address in the system) on which a process waits. 5114b88c807SRodney W. GrimesWhen printed numerically, the initial part of the address is 5124b88c807SRodney W. Grimestrimmed off and the result is printed in hex, for example, 0x80324000 prints 5134b88c807SRodney W. Grimesas 324000. 5144b88c807SRodney W. Grimes.El 5154b88c807SRodney W. Grimes.Pp 5164b88c807SRodney W. GrimesWhen printing using the command keyword, a process that has exited and 5174b88c807SRodney W. Grimeshas a parent that has not yet waited for the process (in other words, a zombie) 518287d1861SRuslan Ermilovis listed as 519287d1861SRuslan Ermilov.Dq Li <defunct> , 520287d1861SRuslan Ermilovand a process which is blocked while trying 521287d1861SRuslan Ermilovto exit is listed as 522287d1861SRuslan Ermilov.Dq Li <exiting> . 5236aac4c27SXin LIIf the arguments cannot be located (usually because it has not been set, as is 5246aac4c27SXin LIthe case of system processes and/or kernel threads) the command name is printed 5256aac4c27SXin LIwithin square brackets. 526e004acc8SPhilippe CharnierThe 527e004acc8SPhilippe Charnier.Nm 5286aac4c27SXin LIutility first tries to obtain the arguments cached by the kernel (if they were 5296aac4c27SXin LIshorter than the value of the 5306aac4c27SXin LI.Va kern.ps_arg_cache_limit 5316aac4c27SXin LIsysctl). 5326aac4c27SXin LIThe process can change the arguments shown with 5336aac4c27SXin LI.Xr setproctitle 3 . 5346aac4c27SXin LIOtherwise, 5356aac4c27SXin LI.Nm 5364b88c807SRodney W. Grimesmakes an educated guess as to the file name and arguments given when the 5374b88c807SRodney W. Grimesprocess was created by examining memory or the swap area. 5384b88c807SRodney W. GrimesThe method is inherently somewhat unreliable and in any event a process 5396aac4c27SXin LIis entitled to destroy this information. 5404b88c807SRodney W. GrimesThe ucomm (accounting) keyword can, however, be depended on. 5416aac4c27SXin LIIf the arguments are unavailable or do not agree with the ucomm keyword, 5426aac4c27SXin LIthe value for the ucomm keyword is appended to the arguments in parentheses. 5434b88c807SRodney W. Grimes.Sh KEYWORDS 5444b88c807SRodney W. GrimesThe following is a complete list of the available keywords and their 5454b88c807SRodney W. Grimesmeanings. 5464b88c807SRodney W. GrimesSeveral of them have aliases (keywords which are synonyms). 5474b88c807SRodney W. Grimes.Pp 548287d1861SRuslan Ermilov.Bl -tag -width ".Cm sigignore" -compact 549287d1861SRuslan Ermilov.It Cm %cpu 550287d1861SRuslan Ermilovpercentage CPU usage (alias 551287d1861SRuslan Ermilov.Cm pcpu ) 552287d1861SRuslan Ermilov.It Cm %mem 553287d1861SRuslan Ermilovpercentage memory usage (alias 554287d1861SRuslan Ermilov.Cm pmem ) 555287d1861SRuslan Ermilov.It Cm acflag 556287d1861SRuslan Ermilovaccounting flag (alias 557287d1861SRuslan Ermilov.Cm acflg ) 558287d1861SRuslan Ermilov.It Cm args 55903334017SJuli Mallettcommand and arguments 5607123f4cdSEdward Tomasz Napierala.It Cm class 5617123f4cdSEdward Tomasz Napieralalogin class 562287d1861SRuslan Ermilov.It Cm comm 56303334017SJuli Mallettcommand 564287d1861SRuslan Ermilov.It Cm command 56503334017SJuli Mallettcommand and arguments 5664f1e1f86SKonstantin Belousov.It Cm cow 5674f1e1f86SKonstantin Belousovnumber of copy-on-write faults 568287d1861SRuslan Ermilov.It Cm cpu 5694f47f511SPiotr Pawel StefaniakThe processor number on which the process is executing (visible only on SMP 5704f47f511SPiotr Pawel Stefaniaksystems). 57138f2be1cSAndrey Zonov.It Cm dsiz 57238f2be1cSAndrey Zonovdata size (in Kbytes) 573b3178949SSergey Kandaurov.It Cm emul 574cde94a42SEdward Tomasz Napieralasystem-call emulation environment (ABI) 575287d1861SRuslan Ermilov.It Cm etime 57641ded75dSJuli Mallettelapsed running time, format 577f11e51a9SMateusz Piotrowski.Do 57841ded75dSJuli Mallett.Op days- Ns 579f11e51a9SMateusz Piotrowski.Op hours\&: Ns 580f11e51a9SMateusz Piotrowskiminutes:seconds 581f11e51a9SMateusz Piotrowski.Dc 58241ded75dSJuli Mallett.It Cm etimes 58341ded75dSJuli Mallettelapsed running time, in decimal integer seconds 5845e9ccc87SWill Andrews.It Cm fib 5855e9ccc87SWill Andrewsdefault FIB number, see 5865e9ccc87SWill Andrews.Xr setfib 1 587287d1861SRuslan Ermilov.It Cm flags 588287d1861SRuslan Ermilovthe process flags, in hexadecimal (alias 589287d1861SRuslan Ermilov.Cm f ) 59038d22923SSergey Kandaurov.It Cm flags2 59138d22923SSergey Kandaurovthe additional set of process flags, in hexadecimal (alias 59238d22923SSergey Kandaurov.Cm f2 ) 5939acd9127SEdward Tomasz Napierala.It Cm gid 5949acd9127SEdward Tomasz Napieralaeffective group ID (alias 5959acd9127SEdward Tomasz Napierala.Cm egid ) 5969acd9127SEdward Tomasz Napierala.It Cm group 5979acd9127SEdward Tomasz Napieralagroup name (from egid) (alias 5989acd9127SEdward Tomasz Napierala.Cm egroup ) 599287d1861SRuslan Ermilov.It Cm inblk 600287d1861SRuslan Ermilovtotal blocks read (alias 601287d1861SRuslan Ermilov.Cm inblock ) 6022f5a9b76SJohn Baldwin.It Cm jail 6032f5a9b76SJohn Baldwinjail name 604a990344fSPawel Jakub Dawidek.It Cm jid 605a990344fSPawel Jakub Dawidekjail ID 606287d1861SRuslan Ermilov.It Cm jobc 6074b88c807SRodney W. Grimesjob control count 608287d1861SRuslan Ermilov.It Cm ktrace 6094b88c807SRodney W. Grimestracing flags 610287d1861SRuslan Ermilov.It Cm label 6112af538ebSRobert WatsonMAC label 612287d1861SRuslan Ermilov.It Cm lim 6134b88c807SRodney W. Grimesmemoryuse limit 6146aac4c27SXin LI.It Cm lockname 6156aac4c27SXin LIlock currently blocked on (as a symbolic name) 616287d1861SRuslan Ermilov.It Cm logname 6176aac4c27SXin LIlogin name of user who started the session 618287d1861SRuslan Ermilov.It Cm lstart 6194b88c807SRodney W. Grimestime started 620b3178949SSergey Kandaurov.It Cm lwp 621faf5dd87SJohn Baldwinthread (light-weight process) ID (alias 622faf5dd87SJohn Baldwin.Cm tid ) 623287d1861SRuslan Ermilov.It Cm majflt 6244b88c807SRodney W. Grimestotal page faults 625287d1861SRuslan Ermilov.It Cm minflt 6264b88c807SRodney W. Grimestotal page reclaims 627287d1861SRuslan Ermilov.It Cm msgrcv 6284b88c807SRodney W. Grimestotal messages received (reads from pipes/sockets) 629287d1861SRuslan Ermilov.It Cm msgsnd 6304b88c807SRodney W. Grimestotal messages sent (writes on pipes/sockets) 631287d1861SRuslan Ermilov.It Cm mwchan 6320d632649SJohn Baldwinwait channel or lock currently blocked on 633287d1861SRuslan Ermilov.It Cm nice 634287d1861SRuslan Ermilovnice value (alias 635287d1861SRuslan Ermilov.Cm ni ) 636287d1861SRuslan Ermilov.It Cm nivcsw 6374b88c807SRodney W. Grimestotal involuntary context switches 638b3178949SSergey Kandaurov.It Cm nlwp 639faf5dd87SJohn Baldwinnumber of threads (light-weight processes) tied to a process 640287d1861SRuslan Ermilov.It Cm nsigs 641287d1861SRuslan Ermilovtotal signals taken (alias 642287d1861SRuslan Ermilov.Cm nsignals ) 643287d1861SRuslan Ermilov.It Cm nswap 6444b88c807SRodney W. Grimestotal swaps in/out 645287d1861SRuslan Ermilov.It Cm nvcsw 6464b88c807SRodney W. Grimestotal voluntary context switches 647287d1861SRuslan Ermilov.It Cm nwchan 6484b88c807SRodney W. Grimeswait channel (as an address) 649287d1861SRuslan Ermilov.It Cm oublk 650287d1861SRuslan Ermilovtotal blocks written (alias 651287d1861SRuslan Ermilov.Cm oublock ) 652287d1861SRuslan Ermilov.It Cm paddr 6530d694829SSergey Kandaurovprocess pointer 654287d1861SRuslan Ermilov.It Cm pagein 6554b88c807SRodney W. Grimespageins (same as majflt) 656287d1861SRuslan Ermilov.It Cm pgid 6574b88c807SRodney W. Grimesprocess group number 658287d1861SRuslan Ermilov.It Cm pid 659287d1861SRuslan Ermilovprocess ID 660287d1861SRuslan Ermilov.It Cm ppid 661287d1861SRuslan Ermilovparent process ID 662287d1861SRuslan Ermilov.It Cm pri 6634b88c807SRodney W. Grimesscheduling priority 664287d1861SRuslan Ermilov.It Cm re 6654b88c807SRodney W. Grimescore residency time (in seconds; 127 = infinity) 666287d1861SRuslan Ermilov.It Cm rgid 667287d1861SRuslan Ermilovreal group ID 668287d1861SRuslan Ermilov.It Cm rgroup 669e8eef4bbSJuli Mallettgroup name (from rgid) 670287d1861SRuslan Ermilov.It Cm rss 6714b88c807SRodney W. Grimesresident set size 672287d1861SRuslan Ermilov.It Cm rtprio 67350301bb0SLorenzo Salvadorerealtime priority (see 67450301bb0SLorenzo Salvadore.Xr rtprio 1) 675287d1861SRuslan Ermilov.It Cm ruid 676287d1861SRuslan Ermilovreal user ID 677287d1861SRuslan Ermilov.It Cm ruser 6784b88c807SRodney W. Grimesuser name (from ruid) 679287d1861SRuslan Ermilov.It Cm sid 680287d1861SRuslan Ermilovsession ID 681287d1861SRuslan Ermilov.It Cm sig 682287d1861SRuslan Ermilovpending signals (alias 683287d1861SRuslan Ermilov.Cm pending ) 684287d1861SRuslan Ermilov.It Cm sigcatch 685287d1861SRuslan Ermilovcaught signals (alias 686287d1861SRuslan Ermilov.Cm caught ) 687287d1861SRuslan Ermilov.It Cm sigignore 688287d1861SRuslan Ermilovignored signals (alias 689287d1861SRuslan Ermilov.Cm ignored ) 690287d1861SRuslan Ermilov.It Cm sigmask 691287d1861SRuslan Ermilovblocked signals (alias 692287d1861SRuslan Ermilov.Cm blocked ) 693287d1861SRuslan Ermilov.It Cm sl 6944b88c807SRodney W. Grimessleep time (in seconds; 127 = infinity) 69538f2be1cSAndrey Zonov.It Cm ssiz 69638f2be1cSAndrey Zonovstack size (in Kbytes) 697287d1861SRuslan Ermilov.It Cm start 6984b88c807SRodney W. Grimestime started 699287d1861SRuslan Ermilov.It Cm state 700287d1861SRuslan Ermilovsymbolic process state (alias 701287d1861SRuslan Ermilov.Cm stat ) 702287d1861SRuslan Ermilov.It Cm svgid 7034b88c807SRodney W. Grimessaved gid from a setgid executable 704287d1861SRuslan Ermilov.It Cm svuid 705287d1861SRuslan Ermilovsaved UID from a setuid executable 706a870bf2cSKonstantin Belousov.It Cm systime 707a870bf2cSKonstantin Belousovaccumulated system CPU time 7086239ef1dSEd Maste.It Cm tdaddr 7096239ef1dSEd Mastethread address 7104363782bSEdward Tomasz Napierala.It Cm tdname 7114363782bSEdward Tomasz Napieralathread name 712287d1861SRuslan Ermilov.It Cm tdev 7134b88c807SRodney W. Grimescontrol terminal device number 714287d1861SRuslan Ermilov.It Cm time 715287d1861SRuslan Ermilovaccumulated CPU time, user + system (alias 716287d1861SRuslan Ermilov.Cm cputime ) 717287d1861SRuslan Ermilov.It Cm tpgid 718287d1861SRuslan Ermilovcontrol terminal process group ID 7198b04bbefSMateusz Guzik.It Cm tracer 7208b04bbefSMateusz Guziktracer process ID 721287d1861SRuslan Ermilov.\".It Cm trss 7224b88c807SRodney W. Grimes.\"text resident set size (in Kbytes) 723287d1861SRuslan Ermilov.It Cm tsid 724287d1861SRuslan Ermilovcontrol terminal session ID 725287d1861SRuslan Ermilov.It Cm tsiz 7264b88c807SRodney W. Grimestext size (in Kbytes) 727287d1861SRuslan Ermilov.It Cm tt 7284b88c807SRodney W. Grimescontrol terminal name (two letter abbreviation) 729287d1861SRuslan Ermilov.It Cm tty 7304b88c807SRodney W. Grimesfull name of control terminal 731287d1861SRuslan Ermilov.It Cm ucomm 7324b88c807SRodney W. Grimesname to be used for accounting 733287d1861SRuslan Ermilov.It Cm uid 7349acd9127SEdward Tomasz Napieralaeffective user ID (alias 7359acd9127SEdward Tomasz Napierala.Cm euid ) 736287d1861SRuslan Ermilov.It Cm upr 737287d1861SRuslan Ermilovscheduling priority on return from system call (alias 738287d1861SRuslan Ermilov.Cm usrpri ) 739b3178949SSergey Kandaurov.It Cm uprocp 740b3178949SSergey Kandaurovprocess pointer 741287d1861SRuslan Ermilov.It Cm user 742287d1861SRuslan Ermilovuser name (from UID) 743a870bf2cSKonstantin Belousov.It Cm usertime 744a870bf2cSKonstantin Belousovaccumulated user CPU time 74553606209SEdward Tomasz Napierala.It Cm vmaddr 74653606209SEdward Tomasz Napieralavmspace pointer 747287d1861SRuslan Ermilov.It Cm vsz 748287d1861SRuslan Ermilovvirtual size in Kbytes (alias 749287d1861SRuslan Ermilov.Cm vsize ) 750287d1861SRuslan Ermilov.It Cm wchan 7514b88c807SRodney W. Grimeswait channel (as a symbolic name) 752287d1861SRuslan Ermilov.It Cm xstat 7534b88c807SRodney W. Grimesexit or stop status (valid only for stopped or zombie process) 7544b88c807SRodney W. Grimes.El 7557117b3d5SKonstantin Belousov.Pp 7567117b3d5SKonstantin BelousovNote that the 7577117b3d5SKonstantin Belousov.Cm pending 7587117b3d5SKonstantin Belousovcolumn displays bitmask of signals pending in the process queue when 7597117b3d5SKonstantin Belousov.Fl H 7607117b3d5SKonstantin Belousovoption is not specified, otherwise the per-thread queue of pending signals 7617117b3d5SKonstantin Belousovis shown. 7624f18100dSTim J. Robbins.Sh ENVIRONMENT 7634f18100dSTim J. RobbinsThe following environment variables affect the execution of 7644f18100dSTim J. Robbins.Nm : 7654f18100dSTim J. Robbins.Bl -tag -width ".Ev COLUMNS" 7664f18100dSTim J. Robbins.It Ev COLUMNS 7674f18100dSTim J. RobbinsIf set, specifies the user's preferred output width in column positions. 7684f18100dSTim J. RobbinsBy default, 7694f18100dSTim J. Robbins.Nm 7704f18100dSTim J. Robbinsattempts to automatically determine the terminal width. 7714f18100dSTim J. Robbins.El 7724b88c807SRodney W. Grimes.Sh FILES 773cd31922fSRuslan Ermilov.Bl -tag -width ".Pa /boot/kernel/kernel" -compact 7741063e126SJosef Karthauser.It Pa /boot/kernel/kernel 7754b88c807SRodney W. Grimesdefault system namelist 7764b88c807SRodney W. Grimes.El 777c97c08deSMateusz Piotrowski.Sh EXIT STATUS 778c97c08deSMateusz Piotrowski.Ex -std 779e9e3a1abSJoel Dahl.Sh EXAMPLES 780e9e3a1abSJoel DahlDisplay information on all system processes: 781e9e3a1abSJoel Dahl.Pp 782e9e3a1abSJoel Dahl.Dl $ ps -auxw 7834b88c807SRodney W. Grimes.Sh SEE ALSO 7844b88c807SRodney W. Grimes.Xr kill 1 , 785585bf557SGarance A Drosehn.Xr pgrep 1 , 786585bf557SGarance A Drosehn.Xr pkill 1 , 787e5002279SEdward Tomasz Napierala.Xr procstat 1 , 7884b88c807SRodney W. Grimes.Xr w 1 , 7894b88c807SRodney W. Grimes.Xr kvm 3 , 790169a1855SJoel Dahl.Xr libxo 3 , 7914b88c807SRodney W. Grimes.Xr strftime 3 , 792169a1855SJoel Dahl.Xr xo_parse_args 3 , 793ac06cb0aSRobert Watson.Xr mac 4 , 7941a720cbeSAlexander Ziaee.Xr procfs 4 , 7959b67ac59SJohn Baldwin.Xr pstat 8 , 7966b821228SDima Dorfman.Xr sysctl 8 , 7979b67ac59SJohn Baldwin.Xr mutex 9 798a4c8a745SGarance A Drosehn.Sh STANDARDS 7996aac4c27SXin LIFor historical reasons, the 800a4c8a745SGarance A Drosehn.Nm 801a4c8a745SGarance A Drosehnutility under 802a4c8a745SGarance A Drosehn.Fx 803a4c8a745SGarance A Drosehnsupports a different set of options from what is described by 804a4c8a745SGarance A Drosehn.St -p1003.2 , 805287d1861SRuslan Ermilovand what is supported on 806287d1861SRuslan Ermilov.No non- Ns Bx 807287d1861SRuslan Ermilovoperating systems. 808a13d4e42SJuli Mallett.Sh HISTORY 809a13d4e42SJuli MallettThe 810a13d4e42SJuli Mallett.Nm 811a13d4e42SJuli Mallettcommand appeared in 81215919690SWarren Block.At v3 81315919690SWarren Blockin section 8 of the manual. 8144b88c807SRodney W. Grimes.Sh BUGS 8154b88c807SRodney W. GrimesSince 816c9a8d1f4SPhilippe Charnier.Nm 8174b88c807SRodney W. Grimescannot run faster than the system and is run as any other scheduled 8184b88c807SRodney W. Grimesprocess, the information it displays can never be exact. 819b59ca660STim J. Robbins.Pp 820b59ca660STim J. RobbinsThe 821b59ca660STim J. Robbins.Nm 822b59ca660STim J. Robbinsutility does not correctly display argument lists containing multibyte 823b59ca660STim J. Robbinscharacters. 824