xref: /freebsd/bin/ps/ps.1 (revision 73eb8310a9845eb38c070bc59659fcc3ecdb2138)
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
3373eb8310SPeter Wemm.\"	$Id: ps.1,v 1.4 1994/09/24 02:56:46 davidg Exp $
344b88c807SRodney W. Grimes.\"
354b88c807SRodney W. Grimes.Dd April 18, 1994
364b88c807SRodney W. Grimes.Dt PS 1
374b88c807SRodney W. Grimes.Os BSD 4
384b88c807SRodney W. Grimes.Sh NAME
394b88c807SRodney W. Grimes.Nm \&ps
404b88c807SRodney W. Grimes.Nd process status
414b88c807SRodney W. Grimes.Sh SYNOPSIS
424b88c807SRodney W. Grimes.Nm \&ps
434b88c807SRodney W. Grimes.Op Fl aCehjlmrSTuvwx
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
484b88c807SRodney W. Grimes.Op Fl p Ar pid
494b88c807SRodney W. Grimes.Op Fl t Ar tty
5073eb8310SPeter Wemm.Op Fl U Ar username
514b88c807SRodney W. Grimes.Op Fl W Ar swap
524b88c807SRodney W. Grimes.Nm ps
534b88c807SRodney W. Grimes.Op Fl L
544b88c807SRodney W. Grimes.Sh DESCRIPTION
554b88c807SRodney W. Grimes.Nm \&Ps
564b88c807SRodney W. Grimesdisplays a header line followed by lines containing information about your
574b88c807SRodney W. Grimesprocesses that have controlling terminals.
584b88c807SRodney W. GrimesThis information is sorted by process
594b88c807SRodney W. Grimes.Tn ID .
604b88c807SRodney W. Grimes.Pp
614b88c807SRodney W. GrimesThe information displayed is selected based on a set of keywords (see the
624b88c807SRodney W. Grimes.Fl L
634b88c807SRodney W. Grimes.Fl O
644b88c807SRodney W. Grimesand
654b88c807SRodney W. Grimes.Fl o
664b88c807SRodney W. Grimesoptions).
674b88c807SRodney W. GrimesThe default output format includes, for each process, the process'
684b88c807SRodney W. Grimes.Tn ID ,
694b88c807SRodney W. Grimescontrolling terminal, cpu time (including both user and system time),
704b88c807SRodney W. Grimesstate, and associated command.
714b88c807SRodney W. Grimes.Pp
724b88c807SRodney W. GrimesThe options are as follows:
734b88c807SRodney W. Grimes.Bl -tag -width indent
744b88c807SRodney W. Grimes.It Fl a
754b88c807SRodney W. GrimesDisplay information about other users' processes as well as your own.
764b88c807SRodney W. Grimes.It Fl C
774b88c807SRodney W. GrimesChange the way the cpu percentage is calculated by using a ``raw''
784b88c807SRodney W. Grimescpu calculation that ignores ``resident'' time (this normally has
794b88c807SRodney W. Grimesno effect).
804b88c807SRodney W. Grimes.It Fl e
814b88c807SRodney W. GrimesDisplay the environment as well.
824b88c807SRodney W. Grimes.It Fl h
834b88c807SRodney W. GrimesRepeat the information header as often as necessary to guarantee one
844b88c807SRodney W. Grimesheader per page of information.
854b88c807SRodney W. Grimes.It Fl j
864b88c807SRodney W. GrimesPrint information associated with the following keywords:
874b88c807SRodney W. Grimesuser, pid, ppid, pgid, sess, jobc, state, tt, time and command.
884b88c807SRodney W. Grimes.It Fl L
894b88c807SRodney W. GrimesList the set of available keywords.
904b88c807SRodney W. Grimes.It Fl l
914b88c807SRodney W. GrimesDisplay information associated with the following keywords:
924b88c807SRodney W. Grimesuid, pid, ppid, cpu, pri, nice, vsz, rss, wchan, state, tt, time
934b88c807SRodney W. Grimesand command.
944b88c807SRodney W. Grimes.It Fl M
954b88c807SRodney W. GrimesExtract values associated with the name list from the specified core
964b88c807SRodney W. Grimesinstead of the default
974b88c807SRodney W. Grimes.Dq Pa /dev/kmem .
984b88c807SRodney W. Grimes.It Fl m
994b88c807SRodney W. GrimesSort by memory usage, instead of by process
1004b88c807SRodney W. Grimes.Tn ID .
1014b88c807SRodney W. Grimes.It Fl N
1024b88c807SRodney W. GrimesExtract the name list from the specified system instead of the default
103b3bfc719SDavid Greenman.Dq Pa /kernel .
1044b88c807SRodney W. Grimes.It Fl O
1054b88c807SRodney W. GrimesAdd the information associated with the space or comma separated list
1064b88c807SRodney W. Grimesof keywords specified, after the process
1074b88c807SRodney W. Grimes.Tn ID ,
1084b88c807SRodney W. Grimesin the default information
1094b88c807SRodney W. Grimesdisplay.
1104b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string.
1114b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of
1124b88c807SRodney W. Grimesthe standard header.
1134b88c807SRodney W. Grimes.It Fl o
1144b88c807SRodney W. GrimesDisplay information associated with the space or comma separated list
1154b88c807SRodney W. Grimesof keywords specified.
1164b88c807SRodney W. GrimesKeywords may be appended with an equals (``='') sign and a string.
1174b88c807SRodney W. GrimesThis causes the printed header to use the specified string instead of
1184b88c807SRodney W. Grimesthe standard header.
1194b88c807SRodney W. Grimes.It Fl p
1204b88c807SRodney W. GrimesDisplay information associated with the specified process
1214b88c807SRodney W. Grimes.Tn ID .
1224b88c807SRodney W. Grimes.It Fl r
1234b88c807SRodney W. GrimesSort by current cpu usage, instead of by process
1244b88c807SRodney W. Grimes.Tn ID .
1254b88c807SRodney W. Grimes.It Fl S
1264b88c807SRodney W. GrimesChange the way the process time is calculated by summing all exited
1274b88c807SRodney W. Grimeschildren to their parent process.
1284b88c807SRodney W. Grimes.It Fl T
1294b88c807SRodney W. GrimesDisplay information about processes attached to the device associated
1304b88c807SRodney W. Grimeswith the standard input.
1314b88c807SRodney W. Grimes.It Fl t
1324b88c807SRodney W. GrimesDisplay information about processes attached to the specified terminal
1334b88c807SRodney W. Grimesdevice.
13473eb8310SPeter Wemm.It Fl U
13573eb8310SPeter WemmDisplay the processes belonging to the specified
13673eb8310SPeter Wemm.Tn username .
1374b88c807SRodney W. Grimes.It Fl u
1384b88c807SRodney W. GrimesDisplay information associated with the following keywords:
1394b88c807SRodney W. Grimesuser, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command.
1404b88c807SRodney W. GrimesThe
1414b88c807SRodney W. Grimes.Fl u
1424b88c807SRodney W. Grimesoption implies the
1434b88c807SRodney W. Grimes.Fl r
1444b88c807SRodney W. Grimesoption.
1454b88c807SRodney W. Grimes.It Fl v
1464b88c807SRodney W. GrimesDisplay information associated with the following keywords:
1474b88c807SRodney W. Grimespid, state, time, sl, re, pagein, vsz, rss, lim, tsiz,
1484b88c807SRodney W. Grimes%cpu, %mem and command.
1494b88c807SRodney W. GrimesThe
1504b88c807SRodney W. Grimes.Fl v
1514b88c807SRodney W. Grimesoption implies the
1524b88c807SRodney W. Grimes.Fl m
1534b88c807SRodney W. Grimesoption.
1544b88c807SRodney W. Grimes.It Fl W
1554b88c807SRodney W. GrimesExtract swap information from the specified file instead of the
1564b88c807SRodney W. Grimesdefault
1574b88c807SRodney W. Grimes.Dq Pa /dev/swap .
1584b88c807SRodney W. Grimes.It Fl w
1594b88c807SRodney W. GrimesUse 132 columns to display information, instead of the default which
1604b88c807SRodney W. Grimesis your window size.
1614b88c807SRodney W. GrimesIf the
1624b88c807SRodney W. Grimes.Fl w
1634b88c807SRodney W. Grimesoption is specified more than once,
1644b88c807SRodney W. Grimes.Nm \&ps
1654b88c807SRodney W. Grimeswill use as many columns as necessary without regard for your window size.
1664b88c807SRodney W. Grimes.It Fl x
1674b88c807SRodney W. GrimesDisplay information about processes without controlling terminals.
1684b88c807SRodney W. Grimes.El
1694b88c807SRodney W. Grimes.Pp
1704b88c807SRodney W. GrimesA complete list of the available keywords are listed below.
1714b88c807SRodney W. GrimesSome of these keywords are further specified as follows:
1724b88c807SRodney W. Grimes.Bl -tag -width indent
1734b88c807SRodney W. Grimes.It %cpu
1744b88c807SRodney W. GrimesThe cpu utilization of the process; this is a decaying average over up to
1754b88c807SRodney W. Grimesa minute of previous (real) time.
1764b88c807SRodney W. GrimesSince the time base over which this is computed varies (since processes may
1774b88c807SRodney W. Grimesbe very young) it is possible for the sum of all
1784b88c807SRodney W. Grimes.Tn \&%CPU
1794b88c807SRodney W. Grimesfields to exceed 100%.
1804b88c807SRodney W. Grimes.It %mem
1814b88c807SRodney W. GrimesThe percentage of real memory used by this process.
1824b88c807SRodney W. Grimes.It flags
1834b88c807SRodney W. GrimesThe flags (in hexadecimal) associated with the process as in
1844b88c807SRodney W. Grimesthe include file
1854b88c807SRodney W. Grimes.Aq Pa sys/proc.h :
1864b88c807SRodney W. Grimes.Bl -column SNOCLDSTOP SNOCLDSTOP
1874b88c807SRodney W. Grimes.It Dv "SLOAD" Ta No "0x0000001	in core"
1884b88c807SRodney W. Grimes.It Dv "SSYS" Ta No "0x0000002	swapper or pager process"
1894b88c807SRodney W. Grimes.It Dv "SLOCK" Ta No "0x0000004	process being swapped out"
1904b88c807SRodney W. Grimes.It Dv "SSWAP" Ta No "0x0000008	save area flag"
1914b88c807SRodney W. Grimes.It Dv "STRC" Ta No "0x0000010	process is being traced"
1924b88c807SRodney W. Grimes.It Dv "SWTED" Ta No "0x0000020	another tracing flag"
1934b88c807SRodney W. Grimes.It Dv "SSINTR" Ta No "0x0000040	sleep is interruptible"
1944b88c807SRodney W. Grimes.It Dv "SKEEP" Ta No "0x0000100	another flag to prevent swap out"
1954b88c807SRodney W. Grimes.It Dv "SOMASK" Ta No "0x0000200	restore old mask after taking signal"
1964b88c807SRodney W. Grimes.It Dv "SWEXIT" Ta No "0x0000400	working on exiting"
1974b88c807SRodney W. Grimes.It Dv "SPHYSIO" Ta No "0x0000800	doing physical"
1984b88c807SRodney W. Grimes.Tn I/O
1994b88c807SRodney W. Grimes.It Dv "SVFORK" Ta No "0x0001000	process resulted from"
2004b88c807SRodney W. Grimes.Xr vfork 2
2014b88c807SRodney W. Grimes.It Dv "SVFDONE" Ta No "0x0002000	another"
2024b88c807SRodney W. Grimes.Xr vfork
2034b88c807SRodney W. Grimesflag
2044b88c807SRodney W. Grimes.It Dv "SNOVM" Ta No "0x0004000	no vm, parent in a"
2054b88c807SRodney W. Grimes.Xr vfork
2064b88c807SRodney W. Grimes.It Dv "SPAGV" Ta No "0x0008000	init data space on demand, from vnode"
2074b88c807SRodney W. Grimes.It Dv "SSEQL" Ta No "0x0010000	user warned of sequential vm behavior"
2084b88c807SRodney W. Grimes.It Dv "SUANOM" Ta No "0x0020000	user warned of random vm behavior"
2094b88c807SRodney W. Grimes.It Dv "STIMO" Ta No "0x0040000	timing out during sleep"
2104b88c807SRodney W. Grimes.It Dv "SNOCLDSTOP" Ta No "0x0080000	no"
2114b88c807SRodney W. Grimes.Dv SIGCHLD
2124b88c807SRodney W. Grimeswhen children stop
2134b88c807SRodney W. Grimes.It Dv "SCTTY" Ta No "0x0100000	has a controlling terminal"
2144b88c807SRodney W. Grimes.It Dv "SOWEUPC" Ta No "0x0200000	owe process an addupc() call at next ast"
2154b88c807SRodney W. Grimes.\" the routine addupc is not documented in the man pages
2164b88c807SRodney W. Grimes.It Dv "SSEL" Ta No "0x0400000	selecting; wakeup/waiting danger"
2174b88c807SRodney W. Grimes.It Dv "SEXEC" Ta No "0x0800000	process called"
2184b88c807SRodney W. Grimes.Xr exec 2
2194b88c807SRodney W. Grimes.It Dv "SHPUX" Ta No "0x1000000	\\*(tNHP-UX\\*(sP process
2204b88c807SRodney W. Grimes.Pq Dv HPUXCOMPAT
2214b88c807SRodney W. Grimes.It Dv "SULOCK" Ta No "0x2000000	locked in core after swap error"
2224b88c807SRodney W. Grimes.It Dv "SPTECHG" Ta No "0x4000000	pte's for process have changed"
2234b88c807SRodney W. Grimes.El
2244b88c807SRodney W. Grimes.It lim
2254b88c807SRodney W. GrimesThe soft limit on memory used, specified via a call to
2264b88c807SRodney W. Grimes.Xr setrlimit 2 .
2274b88c807SRodney W. Grimes.It lstart
2284b88c807SRodney W. GrimesThe exact time the command started, using the ``%C'' format described in
2294b88c807SRodney W. Grimes.Xr strftime 3 .
2304b88c807SRodney W. Grimes.It nice
2314b88c807SRodney W. GrimesThe process scheduling increment (see
2324b88c807SRodney W. Grimes.Xr setpriority 2 ) .
2334b88c807SRodney W. Grimes.It rss
2344b88c807SRodney W. Grimesthe real memory (resident set) size of the process (in 1024 byte units).
2354b88c807SRodney W. Grimes.It start
2364b88c807SRodney W. GrimesThe time the command started.
2374b88c807SRodney W. GrimesIf the command started less than 24 hours ago, the start time is
2384b88c807SRodney W. Grimesdisplayed using the ``%l:ps.1p'' format described in
2394b88c807SRodney W. Grimes.Xr strftime 3 .
2404b88c807SRodney W. GrimesIf the command started less than 7 days ago, the start time is
2414b88c807SRodney W. Grimesdisplayed using the ``%a6.15p'' format.
2424b88c807SRodney W. GrimesOtherwise, the start time is displayed using the ``%e%b%y'' format.
2434b88c807SRodney W. Grimes.It state
2444b88c807SRodney W. GrimesThe state is given by a sequence of letters, for example,
2454b88c807SRodney W. Grimes.Dq Tn RWNA .
2464b88c807SRodney W. GrimesThe first letter indicates the run state of the process:
2474b88c807SRodney W. Grimes.Pp
2484b88c807SRodney W. Grimes.Bl -tag -width indent -compact
2494b88c807SRodney W. Grimes.It D
2504b88c807SRodney W. GrimesMarks a process in disk (or other short term, uninterruptible) wait.
2514b88c807SRodney W. Grimes.It I
2524b88c807SRodney W. GrimesMarks a process that is idle (sleeping for longer than about 20 seconds).
2534b88c807SRodney W. Grimes.It R
2544b88c807SRodney W. GrimesMarks a runnable process.
2554b88c807SRodney W. Grimes.It S
2564b88c807SRodney W. GrimesMarks a process that is sleeping for less than about 20 seconds.
2574b88c807SRodney W. Grimes.It T
2584b88c807SRodney W. GrimesMarks a stopped process.
2594b88c807SRodney W. Grimes.It Z
2604b88c807SRodney W. GrimesMarks a dead process (a ``zombie'').
2614b88c807SRodney W. Grimes.El
2624b88c807SRodney W. Grimes.Pp
2634b88c807SRodney W. GrimesAdditional characters after these, if any, indicate additional state
2644b88c807SRodney W. Grimesinformation:
2654b88c807SRodney W. Grimes.Pp
2664b88c807SRodney W. Grimes.Bl -tag -width indent -compact
2674b88c807SRodney W. Grimes.It +
2684b88c807SRodney W. GrimesThe process is in the foreground process group of its control terminal.
2694b88c807SRodney W. Grimes.It <
2704b88c807SRodney W. GrimesThe process has raised
2714b88c807SRodney W. Grimes.Tn CPU
2724b88c807SRodney W. Grimesscheduling priority.
2734b88c807SRodney W. Grimes.It >
2744b88c807SRodney W. GrimesThe process has specified a soft limit on memory requirements and is
2754b88c807SRodney W. Grimescurrently exceeding that limit; such a process is (necessarily) not
2764b88c807SRodney W. Grimesswapped.
2774b88c807SRodney W. Grimes.It A
2784b88c807SRodney W. Grimesthe process has asked for random page replacement
2794b88c807SRodney W. Grimes.Pf ( Dv VA_ANOM ,
2804b88c807SRodney W. Grimesfrom
2814b88c807SRodney W. Grimes.Xr vadvise 2 ,
2824b88c807SRodney W. Grimesfor example,
2834b88c807SRodney W. Grimes.Xr lisp 1
2844b88c807SRodney W. Grimesin a garbage collect).
2854b88c807SRodney W. Grimes.It E
2864b88c807SRodney W. GrimesThe process is trying to exit.
2874b88c807SRodney W. Grimes.It L
2884b88c807SRodney W. GrimesThe process has pages locked in core (for example, for raw
2894b88c807SRodney W. Grimes.Tn I/O ) .
2904b88c807SRodney W. Grimes.It N
2914b88c807SRodney W. GrimesThe process has reduced
2924b88c807SRodney W. Grimes.Tn CPU
2934b88c807SRodney W. Grimesscheduling priority (see
2944b88c807SRodney W. Grimes.Xr setpriority 2 ) .
2954b88c807SRodney W. Grimes.It S
2964b88c807SRodney W. GrimesThe process has asked for
2974b88c807SRodney W. Grimes.Tn FIFO
2984b88c807SRodney W. Grimespage replacement
2994b88c807SRodney W. Grimes.Pf ( Dv VA_SEQL ,
3004b88c807SRodney W. Grimesfrom
3014b88c807SRodney W. Grimes.Xr vadvise 2 ,
3024b88c807SRodney W. Grimesfor example, a large image processing program using virtual memory to
3034b88c807SRodney W. Grimessequentially address voluminous data).
3044b88c807SRodney W. Grimes.It s
3054b88c807SRodney W. GrimesThe process is a session leader.
3064b88c807SRodney W. Grimes.It V
3074b88c807SRodney W. GrimesThe process is suspended during a
3084b88c807SRodney W. Grimes.Xr vfork .
3094b88c807SRodney W. Grimes.It W
3104b88c807SRodney W. GrimesThe process is swapped out.
3114b88c807SRodney W. Grimes.It X
3124b88c807SRodney W. GrimesThe process is being traced or debugged.
3134b88c807SRodney W. Grimes.El
3144b88c807SRodney W. Grimes.It tt
3154b88c807SRodney W. GrimesAn abbreviation for the pathname of the controlling terminal, if any.
3164b88c807SRodney W. GrimesThe abbreviation consists of the two letters following
3174b88c807SRodney W. Grimes.Dq Pa /dev/tty ,
3184b88c807SRodney W. Grimesor, for the console, ``co''.
3194b88c807SRodney W. GrimesThis is followed by a ``-'' if the process can no longer reach that
3204b88c807SRodney W. Grimescontrolling terminal (i.e., it has been revoked).
3214b88c807SRodney W. Grimes.It wchan
3224b88c807SRodney W. GrimesThe event (an address in the system) on which a process waits.
3234b88c807SRodney W. GrimesWhen printed numerically, the initial part of the address is
3244b88c807SRodney W. Grimestrimmed off and the result is printed in hex, for example, 0x80324000 prints
3254b88c807SRodney W. Grimesas 324000.
3264b88c807SRodney W. Grimes.El
3274b88c807SRodney W. Grimes.Pp
3284b88c807SRodney W. GrimesWhen printing using the command keyword, a process that has exited and
3294b88c807SRodney W. Grimeshas a parent that has not yet waited for the process (in other words, a zombie)
3304b88c807SRodney W. Grimesis listed as ``<defunct>'', and a process which is blocked while trying
3314b88c807SRodney W. Grimesto exit is listed as ``<exiting>''.
3324b88c807SRodney W. Grimes.Nm \&Ps
3334b88c807SRodney W. Grimesmakes an educated guess as to the file name and arguments given when the
3344b88c807SRodney W. Grimesprocess was created by examining memory or the swap area.
3354b88c807SRodney W. GrimesThe method is inherently somewhat unreliable and in any event a process
3364b88c807SRodney W. Grimesis entitled to destroy this information, so the names cannot be depended
3374b88c807SRodney W. Grimeson too much.
3384b88c807SRodney W. GrimesThe ucomm (accounting) keyword can, however, be depended on.
3394b88c807SRodney W. Grimes.Sh KEYWORDS
3404b88c807SRodney W. GrimesThe following is a complete list of the available keywords and their
3414b88c807SRodney W. Grimesmeanings.
3424b88c807SRodney W. GrimesSeveral of them have aliases (keywords which are synonyms).
3434b88c807SRodney W. Grimes.Pp
3444b88c807SRodney W. Grimes.Bl -tag -width sigignore -compact
3454b88c807SRodney W. Grimes.It %cpu
3464b88c807SRodney W. Grimespercentage cpu usage (alias pcpu)
3474b88c807SRodney W. Grimes.It %mem
3484b88c807SRodney W. Grimespercentage memory usage (alias pmem)
3494b88c807SRodney W. Grimes.It acflag
3504b88c807SRodney W. Grimesaccounting flag (alias acflg)
3514b88c807SRodney W. Grimes.It command
3524b88c807SRodney W. Grimescommand and arguments
3534b88c807SRodney W. Grimes.It cpu
3544b88c807SRodney W. Grimesshort-term cpu usage factor (for scheduling)
3554b88c807SRodney W. Grimes.It flags
3564b88c807SRodney W. Grimesthe process flags, in hexadecimal (alias f)
3574b88c807SRodney W. Grimes.It inblk
3584b88c807SRodney W. Grimestotal blocks read (alias inblock)
3594b88c807SRodney W. Grimes.It jobc
3604b88c807SRodney W. Grimesjob control count
3614b88c807SRodney W. Grimes.It ktrace
3624b88c807SRodney W. Grimestracing flags
3634b88c807SRodney W. Grimes.It ktracep
3644b88c807SRodney W. Grimestracing vnode
3654b88c807SRodney W. Grimes.It lim
3664b88c807SRodney W. Grimesmemoryuse limit
3674b88c807SRodney W. Grimes.It logname
3684b88c807SRodney W. Grimeslogin name of user who started the process
3694b88c807SRodney W. Grimes.It lstart
3704b88c807SRodney W. Grimestime started
3714b88c807SRodney W. Grimes.It majflt
3724b88c807SRodney W. Grimestotal page faults
3734b88c807SRodney W. Grimes.It minflt
3744b88c807SRodney W. Grimestotal page reclaims
3754b88c807SRodney W. Grimes.It msgrcv
3764b88c807SRodney W. Grimestotal messages received (reads from pipes/sockets)
3774b88c807SRodney W. Grimes.It msgsnd
3784b88c807SRodney W. Grimestotal messages sent (writes on pipes/sockets)
3794b88c807SRodney W. Grimes.It nice
3804b88c807SRodney W. Grimesnice value (alias ni)
3814b88c807SRodney W. Grimes.It nivcsw
3824b88c807SRodney W. Grimestotal involuntary context switches
3834b88c807SRodney W. Grimes.It nsigs
3844b88c807SRodney W. Grimestotal signals taken (alias nsignals)
3854b88c807SRodney W. Grimes.It nswap
3864b88c807SRodney W. Grimestotal swaps in/out
3874b88c807SRodney W. Grimes.It nvcsw
3884b88c807SRodney W. Grimestotal voluntary context switches
3894b88c807SRodney W. Grimes.It nwchan
3904b88c807SRodney W. Grimeswait channel (as an address)
3914b88c807SRodney W. Grimes.It oublk
3924b88c807SRodney W. Grimestotal blocks written (alias oublock)
3934b88c807SRodney W. Grimes.It p_ru
3944b88c807SRodney W. Grimesresource usage (valid only for zombie)
3954b88c807SRodney W. Grimes.It paddr
3964b88c807SRodney W. Grimesswap address
3974b88c807SRodney W. Grimes.It pagein
3984b88c807SRodney W. Grimespageins (same as majflt)
3994b88c807SRodney W. Grimes.It pgid
4004b88c807SRodney W. Grimesprocess group number
4014b88c807SRodney W. Grimes.It pid
4024b88c807SRodney W. Grimesprocess
4034b88c807SRodney W. Grimes.Tn ID
4044b88c807SRodney W. Grimes.It poip
4054b88c807SRodney W. Grimespageouts in progress
4064b88c807SRodney W. Grimes.It ppid
4074b88c807SRodney W. Grimesparent process
4084b88c807SRodney W. Grimes.Tn ID
4094b88c807SRodney W. Grimes.It pri
4104b88c807SRodney W. Grimesscheduling priority
4114b88c807SRodney W. Grimes.It re
4124b88c807SRodney W. Grimescore residency time (in seconds; 127 = infinity)
4134b88c807SRodney W. Grimes.It rgid
4144b88c807SRodney W. Grimesreal group
4154b88c807SRodney W. Grimes.Tn ID
4164b88c807SRodney W. Grimes.It rlink
4174b88c807SRodney W. Grimesreverse link on run queue, or 0
4184b88c807SRodney W. Grimes.It rss
4194b88c807SRodney W. Grimesresident set size
4204b88c807SRodney W. Grimes.It rsz
4214b88c807SRodney W. Grimesresident set size + (text size / text use count) (alias rssize)
422a837235aSDavid Greenman.It rtprio
423a837235aSDavid Greenmanrealtime priority (101 = not a realtime process)
4244b88c807SRodney W. Grimes.It ruid
4254b88c807SRodney W. Grimesreal user
4264b88c807SRodney W. Grimes.Tn ID
4274b88c807SRodney W. Grimes.It ruser
4284b88c807SRodney W. Grimesuser name (from ruid)
4294b88c807SRodney W. Grimes.It sess
4304b88c807SRodney W. Grimessession pointer
4314b88c807SRodney W. Grimes.It sig
4324b88c807SRodney W. Grimespending signals (alias pending)
4334b88c807SRodney W. Grimes.It sigcatch
4344b88c807SRodney W. Grimescaught signals (alias caught)
4354b88c807SRodney W. Grimes.It sigignore
4364b88c807SRodney W. Grimesignored signals (alias ignored)
4374b88c807SRodney W. Grimes.It sigmask
4384b88c807SRodney W. Grimesblocked signals (alias blocked)
4394b88c807SRodney W. Grimes.It sl
4404b88c807SRodney W. Grimessleep time (in seconds; 127 = infinity)
4414b88c807SRodney W. Grimes.It start
4424b88c807SRodney W. Grimestime started
4434b88c807SRodney W. Grimes.It state
4444b88c807SRodney W. Grimessymbolic process state (alias stat)
4454b88c807SRodney W. Grimes.It svgid
4464b88c807SRodney W. Grimessaved gid from a setgid executable
4474b88c807SRodney W. Grimes.It svuid
4484b88c807SRodney W. Grimessaved uid from a setuid executable
4494b88c807SRodney W. Grimes.It tdev
4504b88c807SRodney W. Grimescontrol terminal device number
4514b88c807SRodney W. Grimes.It time
4524b88c807SRodney W. Grimesaccumulated cpu time, user + system (alias cputime)
4534b88c807SRodney W. Grimes.It tpgid
4544b88c807SRodney W. Grimescontrol terminal process group
4554b88c807SRodney W. Grimes.Tn ID
4564b88c807SRodney W. Grimes.\".It trss
4574b88c807SRodney W. Grimes.\"text resident set size (in Kbytes)
4584b88c807SRodney W. Grimes.It tsess
4594b88c807SRodney W. Grimescontrol terminal session pointer
4604b88c807SRodney W. Grimes.It tsiz
4614b88c807SRodney W. Grimestext size (in Kbytes)
4624b88c807SRodney W. Grimes.It tt
4634b88c807SRodney W. Grimescontrol terminal name (two letter abbreviation)
4644b88c807SRodney W. Grimes.It tty
4654b88c807SRodney W. Grimesfull name of control terminal
4664b88c807SRodney W. Grimes.It uprocp
4674b88c807SRodney W. Grimesprocess pointer
4684b88c807SRodney W. Grimes.It ucomm
4694b88c807SRodney W. Grimesname to be used for accounting
4704b88c807SRodney W. Grimes.It uid
4714b88c807SRodney W. Grimeseffective user
4724b88c807SRodney W. Grimes.Tn ID
4734b88c807SRodney W. Grimes.It upr
4744b88c807SRodney W. Grimesscheduling priority on return from system call (alias usrpri)
4754b88c807SRodney W. Grimes.It user
4764b88c807SRodney W. Grimesuser name (from uid)
4774b88c807SRodney W. Grimes.It vsz
4784b88c807SRodney W. Grimesvirtual size in Kbytes (alias vsize)
4794b88c807SRodney W. Grimes.It wchan
4804b88c807SRodney W. Grimeswait channel (as a symbolic name)
4814b88c807SRodney W. Grimes.It xstat
4824b88c807SRodney W. Grimesexit or stop status (valid only for stopped or zombie process)
4834b88c807SRodney W. Grimes.El
4844b88c807SRodney W. Grimes.Sh FILES
485b3bfc719SDavid Greenman.Bl -tag -width /var/run/kvm_kernel.db -compact
4864b88c807SRodney W. Grimes.It Pa /dev
4874b88c807SRodney W. Grimesspecial files and device names
4884b88c807SRodney W. Grimes.It Pa /dev/drum
4894b88c807SRodney W. Grimesdefault swap device
4904b88c807SRodney W. Grimes.It Pa /dev/kmem
4914b88c807SRodney W. Grimesdefault kernel memory
4924b88c807SRodney W. Grimes.It Pa /var/run/dev.db
4934b88c807SRodney W. Grimes/dev name database
494b3bfc719SDavid Greenman.It Pa /var/run/kvm_kernel.db
4954b88c807SRodney W. Grimessystem namelist database
496b3bfc719SDavid Greenman.It Pa /kernel
4974b88c807SRodney W. Grimesdefault system namelist
4984b88c807SRodney W. Grimes.El
4994b88c807SRodney W. Grimes.Sh SEE ALSO
5004b88c807SRodney W. Grimes.Xr kill 1 ,
5014b88c807SRodney W. Grimes.Xr w 1 ,
5024b88c807SRodney W. Grimes.Xr kvm 3 ,
5034b88c807SRodney W. Grimes.Xr strftime 3 ,
5044b88c807SRodney W. Grimes.Xr pstat 8
5054b88c807SRodney W. Grimes.Sh BUGS
5064b88c807SRodney W. GrimesSince
5074b88c807SRodney W. Grimes.Nm \&ps
5084b88c807SRodney W. Grimescannot run faster than the system and is run as any other scheduled
5094b88c807SRodney W. Grimesprocess, the information it displays can never be exact.
510