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 4348b8c0deSScott Long.Op Fl aCcefHhjlmrSTuvwxZ 444b88c807SRodney W. Grimes.Op Fl M Ar core 454b88c807SRodney W. Grimes.Op Fl N Ar system 464b88c807SRodney W. Grimes.Op Fl O Ar fmt 474b88c807SRodney W. Grimes.Op Fl o Ar fmt 484e8b6a6fSGarance A Drosehn.Oo Fl p Ar pid Ns Xo 494e8b6a6fSGarance A Drosehn.Op , Ns Ar pid Ns No ... 504e8b6a6fSGarance A Drosehn.Xc 514e8b6a6fSGarance A Drosehn.Oc 524b88c807SRodney W. Grimes.Op Fl t Ar tty 5312e720d7SRuslan Ermilov.Oo Fl U Ar username Ns Xo 54cf22dcfcSBrian Somers.Op , Ns Ar username Ns No ... 5512e720d7SRuslan Ermilov.Xc 56cf22dcfcSBrian Somers.Oc 57be8b1497SRuslan Ermilov.Nm 584b88c807SRodney W. Grimes.Op Fl L 594b88c807SRodney W. Grimes.Sh DESCRIPTION 60e004acc8SPhilippe CharnierThe 61e004acc8SPhilippe Charnier.Nm 62e004acc8SPhilippe Charnierutility 634b88c807SRodney W. Grimesdisplays a header line followed by lines containing information about your 644b88c807SRodney W. Grimesprocesses that have controlling terminals. 651c0c7731SJoerg WunschThis information is sorted by controlling terminal, then by process 664b88c807SRodney W. Grimes.Tn ID . 674b88c807SRodney W. Grimes.Pp 684b88c807SRodney W. GrimesThe information displayed is selected based on a set of keywords (see the 694b88c807SRodney W. Grimes.Fl L 704b88c807SRodney W. Grimes.Fl O 714b88c807SRodney W. Grimesand 724b88c807SRodney W. Grimes.Fl o 734b88c807SRodney W. Grimesoptions). 744b88c807SRodney W. GrimesThe default output format includes, for each process, the process' 754b88c807SRodney W. Grimes.Tn ID , 764b88c807SRodney W. Grimescontrolling terminal, cpu time (including both user and system time), 774b88c807SRodney W. Grimesstate, and associated command. 784b88c807SRodney W. Grimes.Pp 791c0c7731SJoerg WunschThe process file system (see 8046be34b9SKris Kennaway.Xr procfs 5 ) 8146be34b9SKris Kennawayshould be mounted when 821c0c7731SJoerg Wunsch.Nm 831c0c7731SJoerg Wunschis executed, otherwise not all information will be available. 841c0c7731SJoerg Wunsch.Pp 854b88c807SRodney W. GrimesThe options are as follows: 864b88c807SRodney W. Grimes.Bl -tag -width indent 874b88c807SRodney W. Grimes.It Fl a 884b88c807SRodney W. GrimesDisplay information about other users' processes as well as your own. 897fa34c11SDima DorfmanThis can be disabled by setting the 90d883e289SJosef Karthauser.Va security.bsd.see_other_uids 916b821228SDima Dorfmansysctl to zero. 92db91faacSPeter Wemm.It Fl c 93db91faacSPeter WemmChange the ``command'' column output to just contain the executable name, 94db91faacSPeter Wemmrather than the full command line. 954b88c807SRodney W. Grimes.It Fl C 964b88c807SRodney W. GrimesChange the way the cpu percentage is calculated by using a ``raw'' 974b88c807SRodney W. Grimescpu calculation that ignores ``resident'' time (this normally has 984b88c807SRodney W. Grimesno effect). 994b88c807SRodney W. Grimes.It Fl e 1004b88c807SRodney W. GrimesDisplay the environment as well. 101b548141bSJohn Dyson.It Fl f 10277027e30SJoseph KoshyShow commandline and environment information about swapped out processes. 10355cb6cf5SJoseph KoshyThis option is honored only if the uid of the user is 0. 10448b8c0deSScott Long.It Fl H 10548b8c0deSScott LongShow all of the 10648b8c0deSScott Long.Em kernel visible 10748b8c0deSScott Longthreads associated with each process. Depending on the threading package that 10848b8c0deSScott Longis in use, this may show only the process, only the kernel scheduled entities, 10948b8c0deSScott Longor all of the process threads. 1104b88c807SRodney W. Grimes.It Fl h 1114b88c807SRodney W. GrimesRepeat the information header as often as necessary to guarantee one 1124b88c807SRodney W. Grimesheader per page of information. 1134b88c807SRodney W. Grimes.It Fl j 1144b88c807SRodney W. GrimesPrint information associated with the following keywords: 11586aca211SBrian Somersuser, pid, ppid, pgid, jobc, state, tt, time and command. 1164b88c807SRodney W. Grimes.It Fl L 1174b88c807SRodney W. GrimesList the set of available keywords. 1184b88c807SRodney W. Grimes.It Fl l 1194b88c807SRodney W. GrimesDisplay information associated with the following keywords: 120d9a5f890SMatthew Dillonuid, pid, ppid, cpu, pri, nice, vsz, rss, mwchan, state, tt, time 1214b88c807SRodney W. Grimesand command. 1224b88c807SRodney W. Grimes.It Fl M 1234b88c807SRodney W. GrimesExtract values associated with the name list from the specified core 124cd31922fSRuslan Ermilovinstead of the currently running system. 1254b88c807SRodney W. Grimes.It Fl m 1264b88c807SRodney W. GrimesSort by memory usage, instead of by process 1274b88c807SRodney W. Grimes.Tn ID . 1284b88c807SRodney W. Grimes.It Fl N 129f9a480abSRuslan ErmilovExtract the name list from the specified system instead of the default, 130f9a480abSRuslan Ermilovwhich is the kernel image the system has booted from. 1314b88c807SRodney W. Grimes.It Fl O 1324b88c807SRodney W. GrimesAdd the information associated with the space or comma separated list 1334b88c807SRodney W. Grimesof keywords specified, after the process 1344b88c807SRodney W. Grimes.Tn ID , 1354b88c807SRodney W. Grimesin the default information 1364b88c807SRodney W. Grimesdisplay. 1374b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string. 1384b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 1394b88c807SRodney W. Grimesthe standard header. 1404b88c807SRodney W. Grimes.It Fl o 1412dda9fe9SJuli MallettDisplay information associated with the space or comma separated 1422dda9fe9SJuli Mallettlist of keywords specified. 14350355bb4SJuli MallettMultiple keywords may also be given in the form of more than one 14450355bb4SJuli Mallett.Fl o 14550355bb4SJuli Mallettoption. 1464b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string. 1474b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of 1484b88c807SRodney W. Grimesthe standard header. 1494b88c807SRodney W. Grimes.It Fl p 1504b88c807SRodney W. GrimesDisplay information associated with the specified process 1514e8b6a6fSGarance A Drosehn.Tn ID(s) . 1524b88c807SRodney W. Grimes.It Fl r 1534b88c807SRodney W. GrimesSort by current cpu usage, instead of by process 1544b88c807SRodney W. Grimes.Tn ID . 1554b88c807SRodney W. Grimes.It Fl S 1564b88c807SRodney W. GrimesChange the way the process time is calculated by summing all exited 1574b88c807SRodney W. Grimeschildren to their parent process. 1584b88c807SRodney W. Grimes.It Fl T 1594b88c807SRodney W. GrimesDisplay information about processes attached to the device associated 1604b88c807SRodney W. Grimeswith the standard input. 1614b88c807SRodney W. Grimes.It Fl t 1624b88c807SRodney W. GrimesDisplay information about processes attached to the specified terminal 1634b88c807SRodney W. Grimesdevice. 16473eb8310SPeter Wemm.It Fl U 16573eb8310SPeter WemmDisplay the processes belonging to the specified 166d0353b83SRuslan Ermilov.Ar username Ns (s) . 1674b88c807SRodney W. Grimes.It Fl u 1684b88c807SRodney W. GrimesDisplay information associated with the following keywords: 1694b88c807SRodney W. Grimesuser, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command. 1704b88c807SRodney W. GrimesThe 1714b88c807SRodney W. Grimes.Fl u 1724b88c807SRodney W. Grimesoption implies the 1734b88c807SRodney W. Grimes.Fl r 1744b88c807SRodney W. Grimesoption. 1754b88c807SRodney W. Grimes.It Fl v 1764b88c807SRodney W. GrimesDisplay information associated with the following keywords: 1774b88c807SRodney W. Grimespid, state, time, sl, re, pagein, vsz, rss, lim, tsiz, 1784b88c807SRodney W. Grimes%cpu, %mem and command. 1794b88c807SRodney W. GrimesThe 1804b88c807SRodney W. Grimes.Fl v 1814b88c807SRodney W. Grimesoption implies the 1824b88c807SRodney W. Grimes.Fl m 1834b88c807SRodney W. Grimesoption. 1844b88c807SRodney W. Grimes.It Fl w 1854b88c807SRodney W. GrimesUse 132 columns to display information, instead of the default which 1864b88c807SRodney W. Grimesis your window size. 1874b88c807SRodney W. GrimesIf the 1884b88c807SRodney W. Grimes.Fl w 1894b88c807SRodney W. Grimesoption is specified more than once, 190c9a8d1f4SPhilippe Charnier.Nm 1914b88c807SRodney W. Grimeswill use as many columns as necessary without regard for your window size. 1924b88c807SRodney W. Grimes.It Fl x 1934b88c807SRodney W. GrimesDisplay information about processes without controlling terminals. 1947304f61fSBrian Feldman.It Fl Z 1952af538ebSRobert WatsonAdd label to the list of keywords for which 1967304f61fSBrian Feldman.Nm 1977304f61fSBrian Feldmanwill display information. 1984b88c807SRodney W. Grimes.El 1994b88c807SRodney W. Grimes.Pp 2004b88c807SRodney W. GrimesA complete list of the available keywords are listed below. 2014b88c807SRodney W. GrimesSome of these keywords are further specified as follows: 2020d632649SJohn Baldwin.Bl -tag -width lockname 2034b88c807SRodney W. Grimes.It %cpu 2044b88c807SRodney W. GrimesThe cpu utilization of the process; this is a decaying average over up to 2054b88c807SRodney W. Grimesa minute of previous (real) time. 2064b88c807SRodney W. GrimesSince the time base over which this is computed varies (since processes may 2074b88c807SRodney W. Grimesbe very young) it is possible for the sum of all 2084b88c807SRodney W. Grimes.Tn \&%CPU 2094b88c807SRodney W. Grimesfields to exceed 100%. 2104b88c807SRodney W. Grimes.It %mem 2114b88c807SRodney W. GrimesThe percentage of real memory used by this process. 2124b88c807SRodney W. Grimes.It flags 213c01bf97cSSujal PatelThe flags associated with the process as in 2144b88c807SRodney W. Grimesthe include file 215fe08efe6SRuslan Ermilov.In sys/proc.h : 216bcf85d67SColin Percival.Bl -column P_STOPPED_SINGLE 0x4000000 217c01bf97cSSujal Patel.It Dv "P_ADVLOCK" Ta No "0x00001 Process may hold a POSIX advisory lock" 218c01bf97cSSujal Patel.It Dv "P_CONTROLT" Ta No "0x00002 Has a controlling terminal" 219bcf85d67SColin Percival.It Dv "P_KTHREAD" Ta No "0x00004 Kernel thread" 220bcf85d67SColin Percival.It Dv "P_NOLOAD" Ta No "0x00008 Ignore during load avg calculations" 221c01bf97cSSujal Patel.It Dv "P_PPWAIT" Ta No "0x00010 Parent is waiting for child to exec/exit" 222c01bf97cSSujal Patel.It Dv "P_PROFIL" Ta No "0x00020 Has started profiling" 223bcf85d67SColin Percival.It Dv "P_STOPPROF" Ta No "0x00040 Has thread in requesting to stop prof" 224c01bf97cSSujal Patel.It Dv "P_SUGID" Ta No "0x00100 Had set id privileges since last exec" 225c01bf97cSSujal Patel.It Dv "P_SYSTEM" Ta No "0x00200 System proc: no sigs, stats or swapping" 226bcf85d67SColin Percival.It Dv "P_SINGLE_EXIT" Ta No "0x00400 Threads suspending should exit, not wait" 227c01bf97cSSujal Patel.It Dv "P_TRACED" Ta No "0x00800 Debugged process being traced" 228bcf85d67SColin Percival.It Dv "P_WAITED" Ta No "0x01000 Someone is waiting for us" 229c01bf97cSSujal Patel.It Dv "P_WEXIT" Ta No "0x02000 Working on exiting" 230c01bf97cSSujal Patel.It Dv "P_EXEC" Ta No "0x04000 Process called exec" 231bcf85d67SColin Percival.It Dv "P_SA" Ta No "0x08000 Using scheduler activations" 232bcf85d67SColin Percival.It Dv "P_CONTINUED" Ta No "0x10000 Proc has continued from a stopped state" 233bcf85d67SColin Percival.It Dv "P_STOPPED_SIG" Ta No "0x20000 Stopped due to SIGSTOP/SIGTSTP" 234bcf85d67SColin Percival.It Dv "P_STOPPED_TRACE" Ta No "0x40000 Stopped because of tracing" 235bcf85d67SColin Percival.It Dv "P_STOPPED_SINGLE" Ta No "0x80000 Only one thread can continue" 236bcf85d67SColin Percival.It Dv "P_PROTECTED" Ta No "0x100000 Do not kill on memory overcommit" 237bcf85d67SColin Percival.It Dv "P_SIGEVENT" Ta No "0x200000 Process pending signals changed" 238bcf85d67SColin Percival.It Dv "P_JAILED" Ta No "0x1000000 Process is in jail" 239bcf85d67SColin Percival.It Dv "P_INEXEC" Ta No "0x4000000 Process is in execve()" 2404b88c807SRodney W. Grimes.El 2412af538ebSRobert Watson.It label 2422af538ebSRobert WatsonThe MAC label of the process. 2434b88c807SRodney W. Grimes.It lim 2444b88c807SRodney W. GrimesThe soft limit on memory used, specified via a call to 2454b88c807SRodney W. Grimes.Xr setrlimit 2 . 2464b88c807SRodney W. Grimes.It lstart 2477d4774d0SJonathan LemonThe exact time the command started, using the ``%c'' format described in 2484b88c807SRodney W. Grimes.Xr strftime 3 . 2490d632649SJohn Baldwin.It lockname 2500d632649SJohn BaldwinThe name of the lock that the process is currently blocked on. 2519b67ac59SJohn BaldwinIf the name is invalid or unknown, then 25212e720d7SRuslan Ermilov.Dq ???\& 2539b67ac59SJohn Baldwinis displayed. 254d9a5f890SMatthew Dillon.It mwchan 2550d632649SJohn BaldwinThe event name if the process is blocked normally, or the lock name if 2560d632649SJohn Baldwinthe process is blocked on a lock. 2570d632649SJohn BaldwinSee the wchan and lockname keywords 258d9a5f890SMatthew Dillonfor details. 2594b88c807SRodney W. Grimes.It nice 2604b88c807SRodney W. GrimesThe process scheduling increment (see 2614b88c807SRodney W. Grimes.Xr setpriority 2 ) . 2624b88c807SRodney W. Grimes.It rss 2634b88c807SRodney W. Grimesthe real memory (resident set) size of the process (in 1024 byte units). 2644b88c807SRodney W. Grimes.It start 2654b88c807SRodney W. GrimesThe time the command started. 2664b88c807SRodney W. GrimesIf the command started less than 24 hours ago, the start time is 2674b88c807SRodney W. Grimesdisplayed using the ``%l:ps.1p'' format described in 2684b88c807SRodney W. Grimes.Xr strftime 3 . 2694b88c807SRodney W. GrimesIf the command started less than 7 days ago, the start time is 2704b88c807SRodney W. Grimesdisplayed using the ``%a6.15p'' format. 2714b88c807SRodney W. GrimesOtherwise, the start time is displayed using the ``%e%b%y'' format. 2724b88c807SRodney W. Grimes.It state 273a54b88d8SChristian BruefferThe state is given by a sequence of characters, for example, 2744b88c807SRodney W. Grimes.Dq Tn RWNA . 275a54b88d8SChristian BruefferThe first character indicates the run state of the process: 2764b88c807SRodney W. Grimes.Pp 2774b88c807SRodney W. Grimes.Bl -tag -width indent -compact 2784b88c807SRodney W. Grimes.It D 2794b88c807SRodney W. GrimesMarks a process in disk (or other short term, uninterruptible) wait. 2804b88c807SRodney W. Grimes.It I 2814b88c807SRodney W. GrimesMarks a process that is idle (sleeping for longer than about 20 seconds). 2820d632649SJohn Baldwin.It L 2830d632649SJohn BaldwinMarks a process that is waiting to acquire a lock. 2844b88c807SRodney W. Grimes.It R 2854b88c807SRodney W. GrimesMarks a runnable process. 2864b88c807SRodney W. Grimes.It S 2874b88c807SRodney W. GrimesMarks a process that is sleeping for less than about 20 seconds. 2884b88c807SRodney W. Grimes.It T 2894b88c807SRodney W. GrimesMarks a stopped process. 290bcf85d67SColin Percival.It W 291bcf85d67SColin PercivalMarks an idle interrupt thread. 2924b88c807SRodney W. Grimes.It Z 2934b88c807SRodney W. GrimesMarks a dead process (a ``zombie''). 2944b88c807SRodney W. Grimes.El 2954b88c807SRodney W. Grimes.Pp 2964b88c807SRodney W. GrimesAdditional characters after these, if any, indicate additional state 2974b88c807SRodney W. Grimesinformation: 2984b88c807SRodney W. Grimes.Pp 2994b88c807SRodney W. Grimes.Bl -tag -width indent -compact 3004b88c807SRodney W. Grimes.It + 3014b88c807SRodney W. GrimesThe process is in the foreground process group of its control terminal. 3024b88c807SRodney W. Grimes.It < 3034b88c807SRodney W. GrimesThe process has raised 3044b88c807SRodney W. Grimes.Tn CPU 3054b88c807SRodney W. Grimesscheduling priority. 3064b88c807SRodney W. Grimes.It E 3074b88c807SRodney W. GrimesThe process is trying to exit. 308bcf85d67SColin Percival.It J 309bcf85d67SColin PercivalMarks a process which is in 310bcf85d67SColin Percival.Xr jail 2 . 311bcf85d67SColin PercivalThe hostname of the prison can be found in 312bcf85d67SColin Percival.Ql /proc/<pid>/status . 3134b88c807SRodney W. Grimes.It L 3144b88c807SRodney W. GrimesThe process has pages locked in core (for example, for raw 3154b88c807SRodney W. Grimes.Tn I/O ) . 3164b88c807SRodney W. Grimes.It N 3174b88c807SRodney W. GrimesThe process has reduced 3184b88c807SRodney W. Grimes.Tn CPU 3194b88c807SRodney W. Grimesscheduling priority (see 3204b88c807SRodney W. Grimes.Xr setpriority 2 ) . 3214b88c807SRodney W. Grimes.It s 3224b88c807SRodney W. GrimesThe process is a session leader. 3234b88c807SRodney W. Grimes.It V 3244b88c807SRodney W. GrimesThe process is suspended during a 325c6e69125SPhilippe Charnier.Xr vfork 2 . 3264b88c807SRodney W. Grimes.It W 3274b88c807SRodney W. GrimesThe process is swapped out. 3284b88c807SRodney W. Grimes.It X 3294b88c807SRodney W. GrimesThe process is being traced or debugged. 3304b88c807SRodney W. Grimes.El 3314b88c807SRodney W. Grimes.It tt 3324b88c807SRodney W. GrimesAn abbreviation for the pathname of the controlling terminal, if any. 33377027e30SJoseph KoshyThe abbreviation consists of the three letters following 334c9a8d1f4SPhilippe Charnier.Pa /dev/tty , 33555cb6cf5SJoseph Koshyor, for the console, ``con''. 3364b88c807SRodney W. GrimesThis is followed by a ``-'' if the process can no longer reach that 3374b88c807SRodney W. Grimescontrolling terminal (i.e., it has been revoked). 3384b88c807SRodney W. Grimes.It wchan 3394b88c807SRodney W. GrimesThe event (an address in the system) on which a process waits. 3404b88c807SRodney W. GrimesWhen printed numerically, the initial part of the address is 3414b88c807SRodney W. Grimestrimmed off and the result is printed in hex, for example, 0x80324000 prints 3424b88c807SRodney W. Grimesas 324000. 3434b88c807SRodney W. Grimes.El 3444b88c807SRodney W. Grimes.Pp 3454b88c807SRodney W. GrimesWhen printing using the command keyword, a process that has exited and 3464b88c807SRodney W. Grimeshas a parent that has not yet waited for the process (in other words, a zombie) 3474b88c807SRodney W. Grimesis listed as ``<defunct>'', and a process which is blocked while trying 3484b88c807SRodney W. Grimesto exit is listed as ``<exiting>''. 349e004acc8SPhilippe CharnierThe 350e004acc8SPhilippe Charnier.Nm 351e004acc8SPhilippe Charnierutility 3524b88c807SRodney W. Grimesmakes an educated guess as to the file name and arguments given when the 3534b88c807SRodney W. Grimesprocess was created by examining memory or the swap area. 3544b88c807SRodney W. GrimesThe method is inherently somewhat unreliable and in any event a process 3554b88c807SRodney W. Grimesis entitled to destroy this information, so the names cannot be depended 3564b88c807SRodney W. Grimeson too much. 3574b88c807SRodney W. GrimesThe ucomm (accounting) keyword can, however, be depended on. 3584b88c807SRodney W. Grimes.Sh KEYWORDS 3594b88c807SRodney W. GrimesThe following is a complete list of the available keywords and their 3604b88c807SRodney W. Grimesmeanings. 3614b88c807SRodney W. GrimesSeveral of them have aliases (keywords which are synonyms). 3624b88c807SRodney W. Grimes.Pp 3634b88c807SRodney W. Grimes.Bl -tag -width sigignore -compact 3644b88c807SRodney W. Grimes.It %cpu 3654b88c807SRodney W. Grimespercentage cpu usage (alias pcpu) 3664b88c807SRodney W. Grimes.It %mem 3674b88c807SRodney W. Grimespercentage memory usage (alias pmem) 3684b88c807SRodney W. Grimes.It acflag 3694b88c807SRodney W. Grimesaccounting flag (alias acflg) 37003334017SJuli Mallett.It args 37103334017SJuli Mallettcommand and arguments 372badfdad9SJuli Mallett.It comm 37303334017SJuli Mallettcommand 37403334017SJuli Mallett.It command 37503334017SJuli Mallettcommand and arguments 3764b88c807SRodney W. Grimes.It cpu 3774b88c807SRodney W. Grimesshort-term cpu usage factor (for scheduling) 37876e1a9feSJuli Mallett.It etime 37976e1a9feSJuli Mallettelapsed running time 3804b88c807SRodney W. Grimes.It flags 3814b88c807SRodney W. Grimesthe process flags, in hexadecimal (alias f) 3824b88c807SRodney W. Grimes.It inblk 3834b88c807SRodney W. Grimestotal blocks read (alias inblock) 3844b88c807SRodney W. Grimes.It jobc 3854b88c807SRodney W. Grimesjob control count 3864b88c807SRodney W. Grimes.It ktrace 3874b88c807SRodney W. Grimestracing flags 3882af538ebSRobert Watson.It label 3892af538ebSRobert WatsonMAC label 3904b88c807SRodney W. Grimes.It lim 3914b88c807SRodney W. Grimesmemoryuse limit 3924b88c807SRodney W. Grimes.It logname 3934b88c807SRodney W. Grimeslogin name of user who started the process 3944b88c807SRodney W. Grimes.It lstart 3954b88c807SRodney W. Grimestime started 3964b88c807SRodney W. Grimes.It majflt 3974b88c807SRodney W. Grimestotal page faults 3984b88c807SRodney W. Grimes.It minflt 3994b88c807SRodney W. Grimestotal page reclaims 4004b88c807SRodney W. Grimes.It msgrcv 4014b88c807SRodney W. Grimestotal messages received (reads from pipes/sockets) 4024b88c807SRodney W. Grimes.It msgsnd 4034b88c807SRodney W. Grimestotal messages sent (writes on pipes/sockets) 4040d632649SJohn Baldwin.It lockname 4050d632649SJohn Baldwinlock currently blocked on (as a symbolic name) 406d9a5f890SMatthew Dillon.It mwchan 4070d632649SJohn Baldwinwait channel or lock currently blocked on 4084b88c807SRodney W. Grimes.It nice 4094b88c807SRodney W. Grimesnice value (alias ni) 4104b88c807SRodney W. Grimes.It nivcsw 4114b88c807SRodney W. Grimestotal involuntary context switches 4124b88c807SRodney W. Grimes.It nsigs 4134b88c807SRodney W. Grimestotal signals taken (alias nsignals) 4144b88c807SRodney W. Grimes.It nswap 4154b88c807SRodney W. Grimestotal swaps in/out 4164b88c807SRodney W. Grimes.It nvcsw 4174b88c807SRodney W. Grimestotal voluntary context switches 4184b88c807SRodney W. Grimes.It nwchan 4194b88c807SRodney W. Grimeswait channel (as an address) 4204b88c807SRodney W. Grimes.It oublk 4214b88c807SRodney W. Grimestotal blocks written (alias oublock) 4224b88c807SRodney W. Grimes.It paddr 4234b88c807SRodney W. Grimesswap address 4244b88c807SRodney W. Grimes.It pagein 4254b88c807SRodney W. Grimespageins (same as majflt) 4264b88c807SRodney W. Grimes.It pgid 4274b88c807SRodney W. Grimesprocess group number 4284b88c807SRodney W. Grimes.It pid 4294b88c807SRodney W. Grimesprocess 4304b88c807SRodney W. Grimes.Tn ID 4314b88c807SRodney W. Grimes.It poip 4324b88c807SRodney W. Grimespageouts in progress 4334b88c807SRodney W. Grimes.It ppid 4344b88c807SRodney W. Grimesparent process 4354b88c807SRodney W. Grimes.Tn ID 4364b88c807SRodney W. Grimes.It pri 4374b88c807SRodney W. Grimesscheduling priority 4384b88c807SRodney W. Grimes.It re 4394b88c807SRodney W. Grimescore residency time (in seconds; 127 = infinity) 4404b88c807SRodney W. Grimes.It rgid 4414b88c807SRodney W. Grimesreal group 4424b88c807SRodney W. Grimes.Tn ID 443e8eef4bbSJuli Mallett.It rgroup 444e8eef4bbSJuli Mallettgroup name (from rgid) 4454b88c807SRodney W. Grimes.It rlink 4464b88c807SRodney W. Grimesreverse link on run queue, or 0 4474b88c807SRodney W. Grimes.It rss 4484b88c807SRodney W. Grimesresident set size 449a837235aSDavid Greenman.It rtprio 450a837235aSDavid Greenmanrealtime priority (101 = not a realtime process) 4514b88c807SRodney W. Grimes.It ruid 4524b88c807SRodney W. Grimesreal user 4534b88c807SRodney W. Grimes.Tn ID 4544b88c807SRodney W. Grimes.It ruser 4554b88c807SRodney W. Grimesuser name (from ruid) 456ff1b168bSBrian Somers.It sid 457cdf6f0b1SBrian Somerssession 458cdf6f0b1SBrian Somers.Tn ID 4594b88c807SRodney W. Grimes.It sig 4604b88c807SRodney W. Grimespending signals (alias pending) 4614b88c807SRodney W. Grimes.It sigcatch 4624b88c807SRodney W. Grimescaught signals (alias caught) 4634b88c807SRodney W. Grimes.It sigignore 4644b88c807SRodney W. Grimesignored signals (alias ignored) 4654b88c807SRodney W. Grimes.It sigmask 4664b88c807SRodney W. Grimesblocked signals (alias blocked) 4674b88c807SRodney W. Grimes.It sl 4684b88c807SRodney W. Grimessleep time (in seconds; 127 = infinity) 4694b88c807SRodney W. Grimes.It start 4704b88c807SRodney W. Grimestime started 4714b88c807SRodney W. Grimes.It state 4724b88c807SRodney W. Grimessymbolic process state (alias stat) 4734b88c807SRodney W. Grimes.It svgid 4744b88c807SRodney W. Grimessaved gid from a setgid executable 4754b88c807SRodney W. Grimes.It svuid 4764b88c807SRodney W. Grimessaved uid from a setuid executable 4774b88c807SRodney W. Grimes.It tdev 4784b88c807SRodney W. Grimescontrol terminal device number 4794b88c807SRodney W. Grimes.It time 4804b88c807SRodney W. Grimesaccumulated cpu time, user + system (alias cputime) 4814b88c807SRodney W. Grimes.It tpgid 4824b88c807SRodney W. Grimescontrol terminal process group 4834b88c807SRodney W. Grimes.Tn ID 4844b88c807SRodney W. Grimes.\".It trss 4854b88c807SRodney W. Grimes.\"text resident set size (in Kbytes) 486ff1b168bSBrian Somers.It tsid 487cdf6f0b1SBrian Somerscontrol terminal session 488cdf6f0b1SBrian Somers.Tn ID 4894b88c807SRodney W. Grimes.It tsiz 4904b88c807SRodney W. Grimestext size (in Kbytes) 4914b88c807SRodney W. Grimes.It tt 4924b88c807SRodney W. Grimescontrol terminal name (two letter abbreviation) 4934b88c807SRodney W. Grimes.It tty 4944b88c807SRodney W. Grimesfull name of control terminal 4954b88c807SRodney W. Grimes.It uprocp 4964b88c807SRodney W. Grimesprocess pointer 4974b88c807SRodney W. Grimes.It ucomm 4984b88c807SRodney W. Grimesname to be used for accounting 4994b88c807SRodney W. Grimes.It uid 5004b88c807SRodney W. Grimeseffective user 5014b88c807SRodney W. Grimes.Tn ID 5024b88c807SRodney W. Grimes.It upr 5034b88c807SRodney W. Grimesscheduling priority on return from system call (alias usrpri) 5044b88c807SRodney W. Grimes.It user 5054b88c807SRodney W. Grimesuser name (from uid) 5064b88c807SRodney W. Grimes.It vsz 5074b88c807SRodney W. Grimesvirtual size in Kbytes (alias vsize) 5084b88c807SRodney W. Grimes.It wchan 5094b88c807SRodney W. Grimeswait channel (as a symbolic name) 5104b88c807SRodney W. Grimes.It xstat 5114b88c807SRodney W. Grimesexit or stop status (valid only for stopped or zombie process) 5124b88c807SRodney W. Grimes.El 5134f18100dSTim J. Robbins.Sh ENVIRONMENT 5144f18100dSTim J. RobbinsThe following environment variables affect the execution of 5154f18100dSTim J. Robbins.Nm : 5164f18100dSTim J. Robbins.Bl -tag -width ".Ev COLUMNS" 5174f18100dSTim J. Robbins.It Ev COLUMNS 5184f18100dSTim J. RobbinsIf set, specifies the user's preferred output width in column positions. 5194f18100dSTim J. RobbinsBy default, 5204f18100dSTim J. Robbins.Nm 5214f18100dSTim J. Robbinsattempts to automatically determine the terminal width. 5224f18100dSTim J. Robbins.El 5234b88c807SRodney W. Grimes.Sh FILES 524cd31922fSRuslan Ermilov.Bl -tag -width ".Pa /boot/kernel/kernel" -compact 5257304f61fSBrian Feldman.It Pa /dev/lomac 526b5f82180SRuslan Ermilovinterface used to query the 527b5f82180SRuslan Ermilov.Xr lomac 4 528b5f82180SRuslan ErmilovKLD 5291063e126SJosef Karthauser.It Pa /boot/kernel/kernel 5304b88c807SRodney W. Grimesdefault system namelist 5311c0c7731SJoerg Wunsch.It Pa /proc 5321c0c7731SJoerg Wunschthe mount point of 5331c0c7731SJoerg Wunsch.Xr procfs 5 5344b88c807SRodney W. Grimes.El 5354b88c807SRodney W. Grimes.Sh SEE ALSO 5364b88c807SRodney W. Grimes.Xr kill 1 , 5374b88c807SRodney W. Grimes.Xr w 1 , 5384b88c807SRodney W. Grimes.Xr kvm 3 , 5394b88c807SRodney W. Grimes.Xr strftime 3 , 5407304f61fSBrian Feldman.Xr lomac 4 , 541b5f82180SRuslan Ermilov.Xr procfs 5 , 5429b67ac59SJohn Baldwin.Xr pstat 8 , 5436b821228SDima Dorfman.Xr sysctl 8 , 5449b67ac59SJohn Baldwin.Xr mutex 9 545a13d4e42SJuli Mallett.Sh HISTORY 546a13d4e42SJuli MallettThe 547a13d4e42SJuli Mallett.Nm 548a13d4e42SJuli Mallettcommand appeared in 5497140a0e9SJuli Mallett.At v4 . 5504b88c807SRodney W. Grimes.Sh BUGS 5514b88c807SRodney W. GrimesSince 552c9a8d1f4SPhilippe Charnier.Nm 5534b88c807SRodney W. Grimescannot run faster than the system and is run as any other scheduled 5544b88c807SRodney W. Grimesprocess, the information it displays can never be exact. 555b59ca660STim J. Robbins.Pp 556b59ca660STim J. RobbinsThe 557b59ca660STim J. Robbins.Nm 558b59ca660STim J. Robbinsutility does not correctly display argument lists containing multibyte 559b59ca660STim J. Robbinscharacters. 560