14b88c807SRodney W. Grimes.\" Copyright (c) 1980, 1990, 1991, 1993, 1994 24b88c807SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 34b88c807SRodney W. Grimes.\" 44b88c807SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 54b88c807SRodney W. Grimes.\" modification, are permitted provided that the following conditions 64b88c807SRodney W. Grimes.\" are met: 74b88c807SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 84b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 94b88c807SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 104b88c807SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 114b88c807SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 124b88c807SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 134b88c807SRodney W. Grimes.\" must display the following acknowledgement: 144b88c807SRodney W. Grimes.\" This product includes software developed by the University of 154b88c807SRodney W. Grimes.\" California, Berkeley and its contributors. 164b88c807SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 174b88c807SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 184b88c807SRodney W. Grimes.\" without specific prior written permission. 194b88c807SRodney W. Grimes.\" 204b88c807SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 214b88c807SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 224b88c807SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 234b88c807SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 244b88c807SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 254b88c807SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 264b88c807SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 274b88c807SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 284b88c807SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 294b88c807SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 304b88c807SRodney W. Grimes.\" SUCH DAMAGE. 314b88c807SRodney W. Grimes.\" 324b88c807SRodney W. Grimes.\" @(#)ps.1 8.3 (Berkeley) 4/18/94 332a456239SPeter Wemm.\" $FreeBSD$ 344b88c807SRodney W. Grimes.\" 35b59ca660STim J. Robbins.Dd March 21, 2004 364b88c807SRodney W. Grimes.Dt PS 1 37caa2db3bSRuslan Ermilov.Os 384b88c807SRodney W. Grimes.Sh NAME 39c9a8d1f4SPhilippe Charnier.Nm ps 404b88c807SRodney W. Grimes.Nd process status 414b88c807SRodney W. Grimes.Sh SYNOPSIS 42be8b1497SRuslan Ermilov.Nm 43a4c8a745SGarance A Drosehn.Op Fl aCcefHhjlmrSTuvwXxZ 44a4c8a745SGarance A Drosehn.Oo Fl G Ar gid Ns Xo 45a4c8a745SGarance A Drosehn.Op , Ns Ar gid Ns No ... 46a4c8a745SGarance A Drosehn.Xc 47a4c8a745SGarance A Drosehn.Oc 484b88c807SRodney W. Grimes.Op Fl M Ar core 494b88c807SRodney W. Grimes.Op Fl N Ar system 504b88c807SRodney W. Grimes.Op Fl O Ar fmt 514b88c807SRodney W. Grimes.Op Fl o Ar fmt 524e8b6a6fSGarance A Drosehn.Oo Fl p Ar pid Ns Xo 534e8b6a6fSGarance A Drosehn.Op , Ns Ar pid Ns No ... 544e8b6a6fSGarance A Drosehn.Xc 554e8b6a6fSGarance A Drosehn.Oc 56a4c8a745SGarance A Drosehn.Oo Fl t Ar tty Ns Xo 57a4c8a745SGarance A Drosehn.Op , Ns Ar tty Ns No ... 58a4c8a745SGarance A Drosehn.Xc 59a4c8a745SGarance A Drosehn.Oc 6012e720d7SRuslan Ermilov.Oo Fl U Ar username Ns Xo 61cf22dcfcSBrian Somers.Op , Ns Ar username Ns No ... 6212e720d7SRuslan Ermilov.Xc 63cf22dcfcSBrian Somers.Oc 64be8b1497SRuslan Ermilov.Nm 654b88c807SRodney W. Grimes.Op Fl L 664b88c807SRodney W. Grimes.Sh DESCRIPTION 67e004acc8SPhilippe CharnierThe 68e004acc8SPhilippe Charnier.Nm 69e004acc8SPhilippe Charnierutility 704b88c807SRodney W. Grimesdisplays a header line followed by lines containing information about your 714b88c807SRodney W. Grimesprocesses that have controlling terminals. 721c0c7731SJoerg WunschThis information is sorted by controlling terminal, then by process 734b88c807SRodney W. Grimes.Tn ID . 744b88c807SRodney W. Grimes.Pp 75a4c8a745SGarance A DrosehnA different set of processes can be selected for display by using any 76a4c8a745SGarance A Drosehncombination of the 77a4c8a745SGarance A Drosehn.Fl a, G , p , T , t 78a4c8a745SGarance A Drosehnand 79a4c8a745SGarance A Drosehn.Fl U 80a4c8a745SGarance A Drosehnoptions. 81a4c8a745SGarance A DrosehnIf more than one of these options are given, then 82a4c8a745SGarance A Drosehn.Nm 83a4c8a745SGarance A Drosehnwill select all processes which are matched by at least one of the 84a4c8a745SGarance A Drosehngiven options. 85a4c8a745SGarance A Drosehn.Pp 86a4c8a745SGarance A DrosehnFor the processes which have been selected for display, the information 87a4c8a745SGarance A Drosehnto display is selected based on a set of keywords (see the 884b88c807SRodney W. Grimes.Fl L 894b88c807SRodney W. Grimes.Fl O 904b88c807SRodney W. Grimesand 914b88c807SRodney W. Grimes.Fl o 924b88c807SRodney W. Grimesoptions). 934b88c807SRodney W. GrimesThe default output format includes, for each process, the process' 944b88c807SRodney W. Grimes.Tn ID , 954b88c807SRodney W. Grimescontrolling terminal, cpu time (including both user and system time), 964b88c807SRodney W. Grimesstate, and associated command. 974b88c807SRodney W. Grimes.Pp 981c0c7731SJoerg WunschThe process file system (see 9946be34b9SKris Kennaway.Xr procfs 5 ) 10046be34b9SKris Kennawayshould be mounted when 1011c0c7731SJoerg Wunsch.Nm 1021c0c7731SJoerg Wunschis executed, otherwise not all information will be available. 1031c0c7731SJoerg Wunsch.Pp 1044b88c807SRodney W. GrimesThe options are as follows: 1054b88c807SRodney W. Grimes.Bl -tag -width indent 1064b88c807SRodney W. Grimes.It Fl a 1074b88c807SRodney W. GrimesDisplay information about other users' processes as well as your own. 108a4c8a745SGarance A DrosehnThis will skip any processes which do not have a controlling teminal, 109a4c8a745SGarance A Drosehnunless the 110a4c8a745SGarance A Drosehn.Fl x 111a4c8a745SGarance A Drosehnoption is also specified. 1127fa34c11SDima DorfmanThis can be disabled by setting the 113d883e289SJosef Karthauser.Va security.bsd.see_other_uids 1146b821228SDima Dorfmansysctl to zero. 115db91faacSPeter Wemm.It Fl c 116db91faacSPeter WemmChange the ``command'' column output to just contain the executable name, 117db91faacSPeter Wemmrather than the full command line. 1184b88c807SRodney W. Grimes.It Fl C 1194b88c807SRodney W. GrimesChange the way the cpu percentage is calculated by using a ``raw'' 1204b88c807SRodney W. Grimescpu calculation that ignores ``resident'' time (this normally has 1214b88c807SRodney W. Grimesno effect). 1224b88c807SRodney W. Grimes.It Fl e 1234b88c807SRodney W. GrimesDisplay the environment as well. 124b548141bSJohn Dyson.It Fl f 12577027e30SJoseph KoshyShow commandline and environment information about swapped out processes. 12655cb6cf5SJoseph KoshyThis option is honored only if the uid of the user is 0. 127a4c8a745SGarance A Drosehn.It Fl G 128a4c8a745SGarance A DrosehnDisplay information about processes which are running with the specified 129a4c8a745SGarance A Drosehnreal group 130a4c8a745SGarance A Drosehn.Tn ID(s) . 13148b8c0deSScott Long.It Fl H 13248b8c0deSScott LongShow all of the 13348b8c0deSScott Long.Em kernel visible 13448b8c0deSScott Longthreads associated with each process. Depending on the threading package that 13548b8c0deSScott Longis in use, this may show only the process, only the kernel scheduled entities, 13648b8c0deSScott Longor all of the process threads. 1374b88c807SRodney W. Grimes.It Fl h 1384b88c807SRodney W. GrimesRepeat the information header as often as necessary to guarantee one 1394b88c807SRodney W. Grimesheader per page of information. 1404b88c807SRodney W. Grimes.It Fl j 1414b88c807SRodney W. GrimesPrint information associated with the following keywords: 14286aca211SBrian Somersuser, pid, ppid, pgid, jobc, state, tt, time and command. 1434b88c807SRodney W. Grimes.It Fl L 1444b88c807SRodney W. GrimesList the set of available keywords. 1454b88c807SRodney W. Grimes.It Fl l 1464b88c807SRodney W. GrimesDisplay information associated with the following keywords: 147d9a5f890SMatthew Dillonuid, pid, ppid, cpu, pri, nice, vsz, rss, mwchan, state, tt, time 1484b88c807SRodney W. Grimesand command. 1494b88c807SRodney W. Grimes.It Fl M 1504b88c807SRodney W. GrimesExtract values associated with the name list from the specified core 151cd31922fSRuslan Ermilovinstead of the currently running system. 1524b88c807SRodney W. Grimes.It Fl m 1534b88c807SRodney W. GrimesSort by memory usage, instead of by process 1544b88c807SRodney W. Grimes.Tn ID . 1554b88c807SRodney W. Grimes.It Fl N 156f9a480abSRuslan ErmilovExtract the name list from the specified system instead of the default, 157f9a480abSRuslan Ermilovwhich is the kernel image the system has booted from. 1584b88c807SRodney W. Grimes.It Fl O 1594b88c807SRodney W. GrimesAdd the information associated with the space or comma separated list 1604b88c807SRodney W. Grimesof keywords specified, after the process 1614b88c807SRodney W. Grimes.Tn ID , 1624b88c807SRodney W. Grimesin the default information 1634b88c807SRodney W. Grimesdisplay. 1644b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string. 1654b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 1664b88c807SRodney W. Grimesthe standard header. 1674b88c807SRodney W. Grimes.It Fl o 1682dda9fe9SJuli MallettDisplay information associated with the space or comma separated 1692dda9fe9SJuli Mallettlist of keywords specified. 17050355bb4SJuli MallettMultiple keywords may also be given in the form of more than one 17150355bb4SJuli Mallett.Fl o 17250355bb4SJuli Mallettoption. 1734b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string. 1744b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 1754b88c807SRodney W. Grimesthe standard header. 1764b88c807SRodney W. Grimes.It Fl p 177a4c8a745SGarance A DrosehnDisplay information about processes which match the specified process 1784e8b6a6fSGarance A Drosehn.Tn ID(s) . 1794b88c807SRodney W. Grimes.It Fl r 1804b88c807SRodney W. GrimesSort by current cpu usage, instead of by process 1814b88c807SRodney W. Grimes.Tn ID . 1824b88c807SRodney W. Grimes.It Fl S 1834b88c807SRodney W. GrimesChange the way the process time is calculated by summing all exited 1844b88c807SRodney W. Grimeschildren to their parent process. 1854b88c807SRodney W. Grimes.It Fl T 1864b88c807SRodney W. GrimesDisplay information about processes attached to the device associated 1874b88c807SRodney W. Grimeswith the standard input. 1884b88c807SRodney W. Grimes.It Fl t 1894b88c807SRodney W. GrimesDisplay information about processes attached to the specified terminal 190a4c8a745SGarance A Drosehndevice(s). 19173eb8310SPeter Wemm.It Fl U 19273eb8310SPeter WemmDisplay the processes belonging to the specified 193d0353b83SRuslan Ermilov.Ar username Ns (s) . 1944b88c807SRodney W. Grimes.It Fl u 1954b88c807SRodney W. GrimesDisplay information associated with the following keywords: 1964b88c807SRodney W. Grimesuser, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command. 1974b88c807SRodney W. GrimesThe 1984b88c807SRodney W. Grimes.Fl u 1994b88c807SRodney W. Grimesoption implies the 2004b88c807SRodney W. Grimes.Fl r 2014b88c807SRodney W. Grimesoption. 2024b88c807SRodney W. Grimes.It Fl v 2034b88c807SRodney W. GrimesDisplay information associated with the following keywords: 2044b88c807SRodney W. Grimespid, state, time, sl, re, pagein, vsz, rss, lim, tsiz, 2054b88c807SRodney W. Grimes%cpu, %mem and command. 2064b88c807SRodney W. GrimesThe 2074b88c807SRodney W. Grimes.Fl v 2084b88c807SRodney W. Grimesoption implies the 2094b88c807SRodney W. Grimes.Fl m 2104b88c807SRodney W. Grimesoption. 2114b88c807SRodney W. Grimes.It Fl w 2124b88c807SRodney W. GrimesUse 132 columns to display information, instead of the default which 2134b88c807SRodney W. Grimesis your window size. 2144b88c807SRodney W. GrimesIf the 2154b88c807SRodney W. Grimes.Fl w 2164b88c807SRodney W. Grimesoption is specified more than once, 217c9a8d1f4SPhilippe Charnier.Nm 2184b88c807SRodney W. Grimeswill use as many columns as necessary without regard for your window size. 219a4c8a745SGarance A Drosehn.It Fl X 220a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, skip any processes 221a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 2224b88c807SRodney W. Grimes.It Fl x 223a4c8a745SGarance A DrosehnWhen displaying processes matched by other options, include processes 224a4c8a745SGarance A Drosehnwhich do not have a controlling terminal. 225a4c8a745SGarance A DrosehnThis is the opposite of the 226a4c8a745SGarance A Drosehn.Fl X 227a4c8a745SGarance A Drosehnoption. 228a4c8a745SGarance A DrosehnIf both 229a4c8a745SGarance A Drosehn.Fl X 230a4c8a745SGarance A Drosehnand 231a4c8a745SGarance A Drosehn.Fl x 232a4c8a745SGarance A Drosehnare specified in the same command, then 233a4c8a745SGarance A Drosehn.Nm 234a4c8a745SGarance A Drosehnwill use the one which was specified last. 2357304f61fSBrian Feldman.It Fl Z 2362af538ebSRobert WatsonAdd label to the list of keywords for which 2377304f61fSBrian Feldman.Nm 2387304f61fSBrian Feldmanwill display information. 2394b88c807SRodney W. Grimes.El 2404b88c807SRodney W. Grimes.Pp 2414b88c807SRodney W. GrimesA complete list of the available keywords are listed below. 2424b88c807SRodney W. GrimesSome of these keywords are further specified as follows: 2430d632649SJohn Baldwin.Bl -tag -width lockname 2444b88c807SRodney W. Grimes.It %cpu 2454b88c807SRodney W. GrimesThe cpu utilization of the process; this is a decaying average over up to 2464b88c807SRodney W. Grimesa minute of previous (real) time. 2474b88c807SRodney W. GrimesSince the time base over which this is computed varies (since processes may 2484b88c807SRodney W. Grimesbe very young) it is possible for the sum of all 2494b88c807SRodney W. Grimes.Tn \&%CPU 2504b88c807SRodney W. Grimesfields to exceed 100%. 2514b88c807SRodney W. Grimes.It %mem 2524b88c807SRodney W. GrimesThe percentage of real memory used by this process. 2534b88c807SRodney W. Grimes.It flags 254c01bf97cSSujal PatelThe flags associated with the process as in 2554b88c807SRodney W. Grimesthe include file 256fe08efe6SRuslan Ermilov.In sys/proc.h : 257bcf85d67SColin Percival.Bl -column P_STOPPED_SINGLE 0x4000000 258c01bf97cSSujal Patel.It Dv "P_ADVLOCK" Ta No "0x00001 Process may hold a POSIX advisory lock" 259c01bf97cSSujal Patel.It Dv "P_CONTROLT" Ta No "0x00002 Has a controlling terminal" 260bcf85d67SColin Percival.It Dv "P_KTHREAD" Ta No "0x00004 Kernel thread" 261bcf85d67SColin Percival.It Dv "P_NOLOAD" Ta No "0x00008 Ignore during load avg calculations" 262c01bf97cSSujal Patel.It Dv "P_PPWAIT" Ta No "0x00010 Parent is waiting for child to exec/exit" 263c01bf97cSSujal Patel.It Dv "P_PROFIL" Ta No "0x00020 Has started profiling" 264bcf85d67SColin Percival.It Dv "P_STOPPROF" Ta No "0x00040 Has thread in requesting to stop prof" 265c01bf97cSSujal Patel.It Dv "P_SUGID" Ta No "0x00100 Had set id privileges since last exec" 266c01bf97cSSujal Patel.It Dv "P_SYSTEM" Ta No "0x00200 System proc: no sigs, stats or swapping" 267bcf85d67SColin Percival.It Dv "P_SINGLE_EXIT" Ta No "0x00400 Threads suspending should exit, not wait" 268c01bf97cSSujal Patel.It Dv "P_TRACED" Ta No "0x00800 Debugged process being traced" 269bcf85d67SColin Percival.It Dv "P_WAITED" Ta No "0x01000 Someone is waiting for us" 270c01bf97cSSujal Patel.It Dv "P_WEXIT" Ta No "0x02000 Working on exiting" 271c01bf97cSSujal Patel.It Dv "P_EXEC" Ta No "0x04000 Process called exec" 272bcf85d67SColin Percival.It Dv "P_SA" Ta No "0x08000 Using scheduler activations" 273bcf85d67SColin Percival.It Dv "P_CONTINUED" Ta No "0x10000 Proc has continued from a stopped state" 274bcf85d67SColin Percival.It Dv "P_STOPPED_SIG" Ta No "0x20000 Stopped due to SIGSTOP/SIGTSTP" 275bcf85d67SColin Percival.It Dv "P_STOPPED_TRACE" Ta No "0x40000 Stopped because of tracing" 276bcf85d67SColin Percival.It Dv "P_STOPPED_SINGLE" Ta No "0x80000 Only one thread can continue" 277bcf85d67SColin Percival.It Dv "P_PROTECTED" Ta No "0x100000 Do not kill on memory overcommit" 278bcf85d67SColin Percival.It Dv "P_SIGEVENT" Ta No "0x200000 Process pending signals changed" 279bcf85d67SColin Percival.It Dv "P_JAILED" Ta No "0x1000000 Process is in jail" 280bcf85d67SColin Percival.It Dv "P_INEXEC" Ta No "0x4000000 Process is in execve()" 2814b88c807SRodney W. Grimes.El 2822af538ebSRobert Watson.It label 2832af538ebSRobert WatsonThe MAC label of the process. 2844b88c807SRodney W. Grimes.It lim 2854b88c807SRodney W. GrimesThe soft limit on memory used, specified via a call to 2864b88c807SRodney W. Grimes.Xr setrlimit 2 . 2874b88c807SRodney W. Grimes.It lstart 2887d4774d0SJonathan LemonThe exact time the command started, using the ``%c'' format described in 2894b88c807SRodney W. Grimes.Xr strftime 3 . 2900d632649SJohn Baldwin.It lockname 2910d632649SJohn BaldwinThe name of the lock that the process is currently blocked on. 2929b67ac59SJohn BaldwinIf the name is invalid or unknown, then 29312e720d7SRuslan Ermilov.Dq ???\& 2949b67ac59SJohn Baldwinis displayed. 295d9a5f890SMatthew Dillon.It mwchan 2960d632649SJohn BaldwinThe event name if the process is blocked normally, or the lock name if 2970d632649SJohn Baldwinthe process is blocked on a lock. 2980d632649SJohn BaldwinSee the wchan and lockname keywords 299d9a5f890SMatthew Dillonfor details. 3004b88c807SRodney W. Grimes.It nice 3014b88c807SRodney W. GrimesThe process scheduling increment (see 3024b88c807SRodney W. Grimes.Xr setpriority 2 ) . 3034b88c807SRodney W. Grimes.It rss 3044b88c807SRodney W. Grimesthe real memory (resident set) size of the process (in 1024 byte units). 3054b88c807SRodney W. Grimes.It start 3064b88c807SRodney W. GrimesThe time the command started. 3074b88c807SRodney W. GrimesIf the command started less than 24 hours ago, the start time is 3084b88c807SRodney W. Grimesdisplayed using the ``%l:ps.1p'' format described in 3094b88c807SRodney W. Grimes.Xr strftime 3 . 3104b88c807SRodney W. GrimesIf the command started less than 7 days ago, the start time is 3114b88c807SRodney W. Grimesdisplayed using the ``%a6.15p'' format. 3124b88c807SRodney W. GrimesOtherwise, the start time is displayed using the ``%e%b%y'' format. 3134b88c807SRodney W. Grimes.It state 314a54b88d8SChristian BruefferThe state is given by a sequence of characters, for example, 3154b88c807SRodney W. Grimes.Dq Tn RWNA . 316a54b88d8SChristian BruefferThe first character indicates the run state of the process: 3174b88c807SRodney W. Grimes.Pp 3184b88c807SRodney W. Grimes.Bl -tag -width indent -compact 3194b88c807SRodney W. Grimes.It D 3204b88c807SRodney W. GrimesMarks a process in disk (or other short term, uninterruptible) wait. 3214b88c807SRodney W. Grimes.It I 3224b88c807SRodney W. GrimesMarks a process that is idle (sleeping for longer than about 20 seconds). 3230d632649SJohn Baldwin.It L 3240d632649SJohn BaldwinMarks a process that is waiting to acquire a lock. 3254b88c807SRodney W. Grimes.It R 3264b88c807SRodney W. GrimesMarks a runnable process. 3274b88c807SRodney W. Grimes.It S 3284b88c807SRodney W. GrimesMarks a process that is sleeping for less than about 20 seconds. 3294b88c807SRodney W. Grimes.It T 3304b88c807SRodney W. GrimesMarks a stopped process. 331bcf85d67SColin Percival.It W 332bcf85d67SColin PercivalMarks an idle interrupt thread. 3334b88c807SRodney W. Grimes.It Z 3344b88c807SRodney W. GrimesMarks a dead process (a ``zombie''). 3354b88c807SRodney W. Grimes.El 3364b88c807SRodney W. Grimes.Pp 3374b88c807SRodney W. GrimesAdditional characters after these, if any, indicate additional state 3384b88c807SRodney W. Grimesinformation: 3394b88c807SRodney W. Grimes.Pp 3404b88c807SRodney W. Grimes.Bl -tag -width indent -compact 3414b88c807SRodney W. Grimes.It + 3424b88c807SRodney W. GrimesThe process is in the foreground process group of its control terminal. 3434b88c807SRodney W. Grimes.It < 3444b88c807SRodney W. GrimesThe process has raised 3454b88c807SRodney W. Grimes.Tn CPU 3464b88c807SRodney W. Grimesscheduling priority. 3474b88c807SRodney W. Grimes.It E 3484b88c807SRodney W. GrimesThe process is trying to exit. 349bcf85d67SColin Percival.It J 350bcf85d67SColin PercivalMarks a process which is in 351bcf85d67SColin Percival.Xr jail 2 . 352bcf85d67SColin PercivalThe hostname of the prison can be found in 353bcf85d67SColin Percival.Ql /proc/<pid>/status . 3544b88c807SRodney W. Grimes.It L 3554b88c807SRodney W. GrimesThe process has pages locked in core (for example, for raw 3564b88c807SRodney W. Grimes.Tn I/O ) . 3574b88c807SRodney W. Grimes.It N 3584b88c807SRodney W. GrimesThe process has reduced 3594b88c807SRodney W. Grimes.Tn CPU 3604b88c807SRodney W. Grimesscheduling priority (see 3614b88c807SRodney W. Grimes.Xr setpriority 2 ) . 3624b88c807SRodney W. Grimes.It s 3634b88c807SRodney W. GrimesThe process is a session leader. 3644b88c807SRodney W. Grimes.It V 3654b88c807SRodney W. GrimesThe process is suspended during a 366c6e69125SPhilippe Charnier.Xr vfork 2 . 3674b88c807SRodney W. Grimes.It W 3684b88c807SRodney W. GrimesThe process is swapped out. 3694b88c807SRodney W. Grimes.It X 3704b88c807SRodney W. GrimesThe process is being traced or debugged. 3714b88c807SRodney W. Grimes.El 3724b88c807SRodney W. Grimes.It tt 3734b88c807SRodney W. GrimesAn abbreviation for the pathname of the controlling terminal, if any. 37477027e30SJoseph KoshyThe abbreviation consists of the three letters following 375c9a8d1f4SPhilippe Charnier.Pa /dev/tty , 37655cb6cf5SJoseph Koshyor, for the console, ``con''. 3774b88c807SRodney W. GrimesThis is followed by a ``-'' if the process can no longer reach that 3784b88c807SRodney W. Grimescontrolling terminal (i.e., it has been revoked). 3794b88c807SRodney W. Grimes.It wchan 3804b88c807SRodney W. GrimesThe event (an address in the system) on which a process waits. 3814b88c807SRodney W. GrimesWhen printed numerically, the initial part of the address is 3824b88c807SRodney W. Grimestrimmed off and the result is printed in hex, for example, 0x80324000 prints 3834b88c807SRodney W. Grimesas 324000. 3844b88c807SRodney W. Grimes.El 3854b88c807SRodney W. Grimes.Pp 3864b88c807SRodney W. GrimesWhen printing using the command keyword, a process that has exited and 3874b88c807SRodney W. Grimeshas a parent that has not yet waited for the process (in other words, a zombie) 3884b88c807SRodney W. Grimesis listed as ``<defunct>'', and a process which is blocked while trying 3894b88c807SRodney W. Grimesto exit is listed as ``<exiting>''. 390e004acc8SPhilippe CharnierThe 391e004acc8SPhilippe Charnier.Nm 392e004acc8SPhilippe Charnierutility 3934b88c807SRodney W. Grimesmakes an educated guess as to the file name and arguments given when the 3944b88c807SRodney W. Grimesprocess was created by examining memory or the swap area. 3954b88c807SRodney W. GrimesThe method is inherently somewhat unreliable and in any event a process 3964b88c807SRodney W. Grimesis entitled to destroy this information, so the names cannot be depended 3974b88c807SRodney W. Grimeson too much. 3984b88c807SRodney W. GrimesThe ucomm (accounting) keyword can, however, be depended on. 3994b88c807SRodney W. Grimes.Sh KEYWORDS 4004b88c807SRodney W. GrimesThe following is a complete list of the available keywords and their 4014b88c807SRodney W. Grimesmeanings. 4024b88c807SRodney W. GrimesSeveral of them have aliases (keywords which are synonyms). 4034b88c807SRodney W. Grimes.Pp 4044b88c807SRodney W. Grimes.Bl -tag -width sigignore -compact 4054b88c807SRodney W. Grimes.It %cpu 4064b88c807SRodney W. Grimespercentage cpu usage (alias pcpu) 4074b88c807SRodney W. Grimes.It %mem 4084b88c807SRodney W. Grimespercentage memory usage (alias pmem) 4094b88c807SRodney W. Grimes.It acflag 4104b88c807SRodney W. Grimesaccounting flag (alias acflg) 41103334017SJuli Mallett.It args 41203334017SJuli Mallettcommand and arguments 413badfdad9SJuli Mallett.It comm 41403334017SJuli Mallettcommand 41503334017SJuli Mallett.It command 41603334017SJuli Mallettcommand and arguments 4174b88c807SRodney W. Grimes.It cpu 4184b88c807SRodney W. Grimesshort-term cpu usage factor (for scheduling) 41976e1a9feSJuli Mallett.It etime 42076e1a9feSJuli Mallettelapsed running time 4214b88c807SRodney W. Grimes.It flags 4224b88c807SRodney W. Grimesthe process flags, in hexadecimal (alias f) 4234b88c807SRodney W. Grimes.It inblk 4244b88c807SRodney W. Grimestotal blocks read (alias inblock) 4254b88c807SRodney W. Grimes.It jobc 4264b88c807SRodney W. Grimesjob control count 4274b88c807SRodney W. Grimes.It ktrace 4284b88c807SRodney W. Grimestracing flags 4292af538ebSRobert Watson.It label 4302af538ebSRobert WatsonMAC label 4314b88c807SRodney W. Grimes.It lim 4324b88c807SRodney W. Grimesmemoryuse limit 4334b88c807SRodney W. Grimes.It logname 4344b88c807SRodney W. Grimeslogin name of user who started the process 4354b88c807SRodney W. Grimes.It lstart 4364b88c807SRodney W. Grimestime started 4374b88c807SRodney W. Grimes.It majflt 4384b88c807SRodney W. Grimestotal page faults 4394b88c807SRodney W. Grimes.It minflt 4404b88c807SRodney W. Grimestotal page reclaims 4414b88c807SRodney W. Grimes.It msgrcv 4424b88c807SRodney W. Grimestotal messages received (reads from pipes/sockets) 4434b88c807SRodney W. Grimes.It msgsnd 4444b88c807SRodney W. Grimestotal messages sent (writes on pipes/sockets) 4450d632649SJohn Baldwin.It lockname 4460d632649SJohn Baldwinlock currently blocked on (as a symbolic name) 447d9a5f890SMatthew Dillon.It mwchan 4480d632649SJohn Baldwinwait channel or lock currently blocked on 4494b88c807SRodney W. Grimes.It nice 4504b88c807SRodney W. Grimesnice value (alias ni) 4514b88c807SRodney W. Grimes.It nivcsw 4524b88c807SRodney W. Grimestotal involuntary context switches 4534b88c807SRodney W. Grimes.It nsigs 4544b88c807SRodney W. Grimestotal signals taken (alias nsignals) 4554b88c807SRodney W. Grimes.It nswap 4564b88c807SRodney W. Grimestotal swaps in/out 4574b88c807SRodney W. Grimes.It nvcsw 4584b88c807SRodney W. Grimestotal voluntary context switches 4594b88c807SRodney W. Grimes.It nwchan 4604b88c807SRodney W. Grimeswait channel (as an address) 4614b88c807SRodney W. Grimes.It oublk 4624b88c807SRodney W. Grimestotal blocks written (alias oublock) 4634b88c807SRodney W. Grimes.It paddr 4644b88c807SRodney W. Grimesswap address 4654b88c807SRodney W. Grimes.It pagein 4664b88c807SRodney W. Grimespageins (same as majflt) 4674b88c807SRodney W. Grimes.It pgid 4684b88c807SRodney W. Grimesprocess group number 4694b88c807SRodney W. Grimes.It pid 4704b88c807SRodney W. Grimesprocess 4714b88c807SRodney W. Grimes.Tn ID 4724b88c807SRodney W. Grimes.It poip 4734b88c807SRodney W. Grimespageouts in progress 4744b88c807SRodney W. Grimes.It ppid 4754b88c807SRodney W. Grimesparent process 4764b88c807SRodney W. Grimes.Tn ID 4774b88c807SRodney W. Grimes.It pri 4784b88c807SRodney W. Grimesscheduling priority 4794b88c807SRodney W. Grimes.It re 4804b88c807SRodney W. Grimescore residency time (in seconds; 127 = infinity) 4814b88c807SRodney W. Grimes.It rgid 4824b88c807SRodney W. Grimesreal group 4834b88c807SRodney W. Grimes.Tn ID 484e8eef4bbSJuli Mallett.It rgroup 485e8eef4bbSJuli Mallettgroup name (from rgid) 4864b88c807SRodney W. Grimes.It rlink 4874b88c807SRodney W. Grimesreverse link on run queue, or 0 4884b88c807SRodney W. Grimes.It rss 4894b88c807SRodney W. Grimesresident set size 490a837235aSDavid Greenman.It rtprio 491a837235aSDavid Greenmanrealtime priority (101 = not a realtime process) 4924b88c807SRodney W. Grimes.It ruid 4934b88c807SRodney W. Grimesreal user 4944b88c807SRodney W. Grimes.Tn ID 4954b88c807SRodney W. Grimes.It ruser 4964b88c807SRodney W. Grimesuser name (from ruid) 497ff1b168bSBrian Somers.It sid 498cdf6f0b1SBrian Somerssession 499cdf6f0b1SBrian Somers.Tn ID 5004b88c807SRodney W. Grimes.It sig 5014b88c807SRodney W. Grimespending signals (alias pending) 5024b88c807SRodney W. Grimes.It sigcatch 5034b88c807SRodney W. Grimescaught signals (alias caught) 5044b88c807SRodney W. Grimes.It sigignore 5054b88c807SRodney W. Grimesignored signals (alias ignored) 5064b88c807SRodney W. Grimes.It sigmask 5074b88c807SRodney W. Grimesblocked signals (alias blocked) 5084b88c807SRodney W. Grimes.It sl 5094b88c807SRodney W. Grimessleep time (in seconds; 127 = infinity) 5104b88c807SRodney W. Grimes.It start 5114b88c807SRodney W. Grimestime started 5124b88c807SRodney W. Grimes.It state 5134b88c807SRodney W. Grimessymbolic process state (alias stat) 5144b88c807SRodney W. Grimes.It svgid 5154b88c807SRodney W. Grimessaved gid from a setgid executable 5164b88c807SRodney W. Grimes.It svuid 5174b88c807SRodney W. Grimessaved uid from a setuid executable 5184b88c807SRodney W. Grimes.It tdev 5194b88c807SRodney W. Grimescontrol terminal device number 5204b88c807SRodney W. Grimes.It time 5214b88c807SRodney W. Grimesaccumulated cpu time, user + system (alias cputime) 5224b88c807SRodney W. Grimes.It tpgid 5234b88c807SRodney W. Grimescontrol terminal process group 5244b88c807SRodney W. Grimes.Tn ID 5254b88c807SRodney W. Grimes.\".It trss 5264b88c807SRodney W. Grimes.\"text resident set size (in Kbytes) 527ff1b168bSBrian Somers.It tsid 528cdf6f0b1SBrian Somerscontrol terminal session 529cdf6f0b1SBrian Somers.Tn ID 5304b88c807SRodney W. Grimes.It tsiz 5314b88c807SRodney W. Grimestext size (in Kbytes) 5324b88c807SRodney W. Grimes.It tt 5334b88c807SRodney W. Grimescontrol terminal name (two letter abbreviation) 5344b88c807SRodney W. Grimes.It tty 5354b88c807SRodney W. Grimesfull name of control terminal 5364b88c807SRodney W. Grimes.It uprocp 5374b88c807SRodney W. Grimesprocess pointer 5384b88c807SRodney W. Grimes.It ucomm 5394b88c807SRodney W. Grimesname to be used for accounting 5404b88c807SRodney W. Grimes.It uid 5414b88c807SRodney W. Grimeseffective user 5424b88c807SRodney W. Grimes.Tn ID 5434b88c807SRodney W. Grimes.It upr 5444b88c807SRodney W. Grimesscheduling priority on return from system call (alias usrpri) 5454b88c807SRodney W. Grimes.It user 5464b88c807SRodney W. Grimesuser name (from uid) 5474b88c807SRodney W. Grimes.It vsz 5484b88c807SRodney W. Grimesvirtual size in Kbytes (alias vsize) 5494b88c807SRodney W. Grimes.It wchan 5504b88c807SRodney W. Grimeswait channel (as a symbolic name) 5514b88c807SRodney W. Grimes.It xstat 5524b88c807SRodney W. Grimesexit or stop status (valid only for stopped or zombie process) 5534b88c807SRodney W. Grimes.El 5544f18100dSTim J. Robbins.Sh ENVIRONMENT 5554f18100dSTim J. RobbinsThe following environment variables affect the execution of 5564f18100dSTim J. Robbins.Nm : 5574f18100dSTim J. Robbins.Bl -tag -width ".Ev COLUMNS" 5584f18100dSTim J. Robbins.It Ev COLUMNS 5594f18100dSTim J. RobbinsIf set, specifies the user's preferred output width in column positions. 5604f18100dSTim J. RobbinsBy default, 5614f18100dSTim J. Robbins.Nm 5624f18100dSTim J. Robbinsattempts to automatically determine the terminal width. 5634f18100dSTim J. Robbins.El 5644b88c807SRodney W. Grimes.Sh FILES 565cd31922fSRuslan Ermilov.Bl -tag -width ".Pa /boot/kernel/kernel" -compact 5667304f61fSBrian Feldman.It Pa /dev/lomac 567b5f82180SRuslan Ermilovinterface used to query the 568b5f82180SRuslan Ermilov.Xr lomac 4 569b5f82180SRuslan ErmilovKLD 5701063e126SJosef Karthauser.It Pa /boot/kernel/kernel 5714b88c807SRodney W. Grimesdefault system namelist 5721c0c7731SJoerg Wunsch.It Pa /proc 5731c0c7731SJoerg Wunschthe mount point of 5741c0c7731SJoerg Wunsch.Xr procfs 5 5754b88c807SRodney W. Grimes.El 5764b88c807SRodney W. Grimes.Sh SEE ALSO 5774b88c807SRodney W. Grimes.Xr kill 1 , 5784b88c807SRodney W. Grimes.Xr w 1 , 5794b88c807SRodney W. Grimes.Xr kvm 3 , 5804b88c807SRodney W. Grimes.Xr strftime 3 , 5817304f61fSBrian Feldman.Xr lomac 4 , 582b5f82180SRuslan Ermilov.Xr procfs 5 , 5839b67ac59SJohn Baldwin.Xr pstat 8 , 5846b821228SDima Dorfman.Xr sysctl 8 , 5859b67ac59SJohn Baldwin.Xr mutex 9 586a4c8a745SGarance A Drosehn.Sh STANDARDS 587a4c8a745SGarance A DrosehnFor historical reasons, 588a4c8a745SGarance A Drosehn.Nm 589a4c8a745SGarance A Drosehnutility under 590a4c8a745SGarance A Drosehn.Fx 591a4c8a745SGarance A Drosehnsupports a different set of options from what is described by 592a4c8a745SGarance A Drosehn.St -p1003.2 , 593a4c8a745SGarance A Drosehnand what is supported on non-BSD operating systems. 594a13d4e42SJuli Mallett.Sh HISTORY 595a13d4e42SJuli MallettThe 596a13d4e42SJuli Mallett.Nm 597a13d4e42SJuli Mallettcommand appeared in 5987140a0e9SJuli Mallett.At v4 . 5994b88c807SRodney W. Grimes.Sh BUGS 6004b88c807SRodney W. GrimesSince 601c9a8d1f4SPhilippe Charnier.Nm 6024b88c807SRodney W. Grimescannot run faster than the system and is run as any other scheduled 6034b88c807SRodney W. Grimesprocess, the information it displays can never be exact. 604b59ca660STim J. Robbins.Pp 605b59ca660STim J. RobbinsThe 606b59ca660STim J. Robbins.Nm 607b59ca660STim J. Robbinsutility does not correctly display argument lists containing multibyte 608b59ca660STim J. Robbinscharacters. 609