Merge commit '5e2a074725cb7c16ea1c6554da11ab4d6b4e7aee'
[unleashed.git] / share / man / man1 / ps.1
blob695d4b7c2932da7916750f649c66922837010f03
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2009, Sun Microsystems, Inc. All Rights Reserved
4 .\" Copyright (c) 2017, Joyent, Inc.
5 .\" Copyright (c) 2013 Gary Mills
6 .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
7 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at  http://www.opengroup.org/bookstore/.
8 .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text
9 .\" are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical
10 .\" and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
11 .\"  This notice shall appear on any product containing this material.
12 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
13 .\"  See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with
14 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
15 .TH PS 1 "Jun 13, 2017"
16 .SH NAME
17 ps \- report process status
18 .SH SYNOPSIS
19 .LP
20 .nf
21 \fBps\fR [\fB-aAcdefjHlLPWyZ\fR] [\fB-g\fR \fIgrplist\fR] [\fB-h\fR \fIlgrplist\fR]
22      [\fB-n\fR \fInamelist\fR] [\fB-o\fR \fIformat\fR]... [\fB-p\fR \fIproclist\fR]
23      [\fB-s\fR \fIsidlist\fR] [\fB-t\fR \fIterm\fR] [\fB-u\fR \fIuidlist\fR] [\fB-U\fR \fIuidlist\fR]
24      [\fB-G\fR \fIgidlist\fR] [\fB-z\fR \fIzonelist\fR]
25 .fi
27 .SH DESCRIPTION
28 .LP
29 The \fBps\fR command prints information about active processes. Without
30 options, \fBps\fR prints information about processes that have the same
31 effective user \fBID\fR and the same controlling terminal as the invoker. The
32 output contains only the process \fBID\fR, terminal identifier, cumulative
33 execution time, and the command name. Otherwise, the information that is
34 displayed is controlled by the options.
35 .sp
36 .LP
37 Some options accept lists as arguments. Items in a list can be either separated
38 by commas or else enclosed in quotes and separated by commas or spaces. Values
39 for \fIproclist\fR and \fIgrplist\fR must be numeric.
40 .SH OPTIONS
41 .LP
42 The following options are supported:
43 .sp
44 .ne 2
45 .na
46 \fB\fB-a\fR\fR
47 .ad
48 .RS 15n
49 Lists information about \fBa\fRll processes most frequently requested: all
50 those except session leaders and processes not associated with a terminal.
51 .sp
52 This option is ignored when the \fB-e\fR option is also specified.
53 .RE
55 .sp
56 .ne 2
57 .na
58 \fB\fB-A\fR\fR
59 .ad
60 .RS 15n
61 Lists information for all processes. Identical to \fB-e\fR, below.
62 .RE
64 .sp
65 .ne 2
66 .na
67 \fB\fB-c\fR\fR
68 .ad
69 .RS 15n
70 Prints information in a format that reflects scheduler properties as described
71 in \fBpriocntl\fR(1). The \fB-c\fR option affects the output of the \fB-f\fR
72 and \fB-l\fR options, as described below.
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fB-d\fR\fR
79 .ad
80 .RS 15n
81 Lists information about all processes except session leaders.
82 .RE
84 .sp
85 .ne 2
86 .na
87 \fB\fB-e\fR\fR
88 .ad
89 .RS 15n
90 Lists information about \fBe\fRvery process now running.
91 .sp
92 When the \fB-e\fR option is specified, options \fB-z\fR, \fB-t\fR, \fB-u\fR,
93 \fB-U\fR, \fB-g\fR, \fB-G\fR, \fB-p\fR, \fB-h\fR, \fB-s\fR and \fB-a\fR
94 have no effect.
95 .RE
97 .sp
98 .ne 2
99 .na
100 \fB\fB-f\fR\fR
102 .RS 15n
103 Generates a \fBf\fRull listing. (See below for significance of columns in a
104 full listing.)
108 .ne 2
110 \fB\fB-g\fR \fIgrplist\fR\fR
112 .RS 15n
113 Lists only process data whose group leader's \fBID\fR number(s) appears in
114 \fIgrplist\fR. (A group leader is a process whose process \fBID\fR number is
115 identical to its process group \fBID\fR number.)
117 This option is ignored when the \fB-e\fR option is also specified.
121 .ne 2
123 \fB\fB-G\fR \fIgidlist\fR\fR
125 .RS 15n
126 Lists information for processes whose real group ID numbers are given in
127 \fIgidlist\fR. The \fIgidlist\fR must be a single argument in the form of a
128 blank- or comma-separated list.
130 This option is ignored when the \fB-e\fR option is also specified.
134 .ne 2
136 \fB\fB-h\fR \fIlgrplist\fR\fR
138 .RS 15n
139 Lists only the processes homed to the specified \fIlgrplist\fR. Nothing is
140 listed for any invalid group specified in \fIlgrplist\fR.
142 This option is ignored when the \fB-e\fR option is also specified.
146 .ne 2
148 \fB\fB-H\fR\fR
150 .RS 15n
151 Prints the home lgroup of the process under an additional column header, LGRP.
155 .ne 2
157 \fB\fB-j\fR\fR
159 .RS 15n
160 Prints session \fBID\fR and process group \fBID\fR.
164 .ne 2
166 \fB\fB-l\fR\fR
168 .RS 15n
169 Generates a \fBl\fRong listing. (See below.)
173 .ne 2
175 \fB\fB-L\fR\fR
177 .RS 15n
178 Prints information about each light weight process (\fIlwp\fR) in each selected
179 process. (See below.)
183 .ne 2
185 \fB\fB-n\fR \fInamelist\fR\fR
187 .RS 15n
188 Specifies the name of an alternative system \fInamelist\fR file in place of the
189 default. This option is accepted for compatibility, but is ignored.
193 .ne 2
195 \fB\fB-o\fR \fIformat\fR\fR
197 .RS 15n
198 Prints information according to the format specification given in \fIformat\fR.
199 This is fully described in \fBDISPLAY FORMATS\fR. Multiple \fB-o\fR options can
200 be specified; the format specification is interpreted as the
201 space-character-separated concatenation of all the \fIformat\fR
202 option-arguments.
206 .ne 2
208 \fB\fB-p\fR \fIproclist\fR\fR
210 .RS 15n
211 Lists only process data whose process \fBID\fR numbers are given in
212 \fIproclist\fR.
214 This option is ignored when the \fB-e\fR option is also specified.
218 .ne 2
220 \fB\fB-P\fR\fR
222 .RS 15n
223 Prints the number of the processor to which the process or lwp is bound, if
224 any, under an additional column header, \fBPSR\fR.
228 .ne 2
230 \fB\fB-s\fR \fIsidlist\fR\fR
232 .RS 15n
233 Lists information on all session leaders whose \fBID\fRs appear in
234 \fIsidlist\fR.
236 This option is ignored when the \fB-e\fR option is also specified.
240 .ne 2
242 \fB\fB-t\fR \fIterm\fR\fR
244 .RS 15n
245 Lists only process data associated with \fIterm\fR. Terminal identifiers are
246 specified as a device file name, and an identifier. For example, \fBterm/a\fR,
247 or \fBpts/0\fR.
249 This option is ignored when the \fB-e\fR option is also specified.
253 .ne 2
255 \fB\fB-u\fR \fIuidlist\fR\fR
257 .RS 15n
258 Lists only process data whose effective user \fBID\fR number or login name is
259 given in \fIuidlist\fR. In the listing, the numerical user \fBID\fR is printed
260 unless you give the \fB-f\fR option, which prints the login name.
262 This option is ignored when the \fB-e\fR option is also specified.
266 .ne 2
268 \fB\fB-U\fR \fIuidlist\fR\fR
270 .RS 15n
271 Lists information for processes whose real user \fBID\fR numbers or login names
272 are given in \fIuidlist\fR. The \fIuidlist\fR must be a single argument in the
273 form of a blank- or comma-separated list.
275 This option is ignored when the \fB-e\fR option is also specified.
279 .ne 2
281 \fB\fB-W\fR\fR
283 .RS 15n
284 Truncate long names even when \fBps\fR would normally print them
285 in full.
286 A trailing asterisk marks a long name that has been truncated
287 to fit the column.
291 .ne 2
293 \fB\fB-y\fR\fR
295 .RS 15n
296 Under a long listing (\fB-l\fR), omits the obsolete \fBF\fR and \fBADDR\fR
297 columns and includes an \fBRSS\fR column to report the resident set size of the
298 process. Under the \fB-y\fR option, both \fBRSS\fR and \fBSZ\fR (see below) is
299 reported in units of kilobytes instead of pages.
303 .ne 2
305 \fB\fB-z\fR \fIzonelist\fR\fR
307 .RS 15n
308 Lists only processes in the specified zones. Zones can be specified either by
309 name or ID. This option is only useful when executed in the global zone.
311 This option is ignored when the \fB-e\fR option is also specified.
315 .ne 2
317 \fB\fB-Z\fR\fR
319 .RS 15n
320 Prints the name of the zone with which the process is associated under an
321 additional column header, \fBZONE\fR. The \fBZONE\fR column width is limited to
322 8 characters. Use \fBps\fR \fB-eZ\fR for a quick way to see information about
323 every process now running along with the associated zone name. Use
325 .in +2
327 ps -eo zone,uid,pid,ppid,time,comm,...
329 .in -2
332 to see zone names wider than 8 characters.
337 Many of the options shown are used to select processes to list. If any are
338 specified, the default list is ignored and \fBps\fR selects the processes
339 represented by the inclusive OR of all the selection-criteria options.
340 .SH DISPLAY FORMATS
342 Under the \fB-f\fR option, \fBps\fR tries to determine the command name and
343 arguments given when the process was created by examining the user block.
344 Failing this, the command name is printed, as it would have appeared without
345 the \fB-f\fR option, in square brackets.
348 The column headings and the meaning of the columns in a \fBps\fR listing are
349 given below; the letters \fBf\fR and \fBl\fR indicate the option (f\fBull\fR or
350 \fBl\fRong, respectively) that causes the corresponding heading to appear;
351 \fBall\fR means that the heading always appears. \fBNote:\fR These two options
352 determine only what information is provided for a process; they do not
353 determine which processes are listed.
355 .ne 2
357 \fB\fBF\fR(l)\fR
359 .RS 14n
360 Flags (hexadecimal and additive) associated with the process. These flags are
361 available for historical purposes; no meaning should be currently ascribed to
362 them.
366 .ne 2
368 \fB\fBS\fR (l)\fR
370 .RS 14n
371 The state of the process:
373 .ne 2
375 \fBO\fR
377 .RS 5n
378 Process is running on a processor.
382 .ne 2
384 \fBS\fR
386 .RS 5n
387 Sleeping: process is waiting for an event to complete.
391 .ne 2
393 \fBR\fR
395 .RS 5n
396 Runnable: process is on run queue.
400 .ne 2
402 \fBT\fR
404 .RS 5n
405 Process is stopped, either by a job control signal or because it is being
406 traced.
410 .ne 2
412 \fBW\fR
414 .RS 5n
415 Waiting: process is waiting for CPU usage to drop to the CPU-caps enforced
416 limits.
420 .ne 2
422 \fBZ\fR
424 .RS 5n
425 Zombie state: process terminated and parent not waiting.
431 .ne 2
433 \fB\fBUID\fR (f,l)\fR
435 .RS 14n
436 The effective user \fBID\fR number of the process (the login name is printed
437 under the \fB-f\fR option).
438 A trailing asterisk marks a long name that has been truncated
439 to fit the column.
443 .ne 2
445 \fB\fBPID\fR(all)\fR
447 .RS 14n
448 The process \fBID\fR of the process (this datum is necessary in order to kill a
449 process).
453 .ne 2
455 \fB\fBPPID\fR(f,l)\fR
457 .RS 14n
458 The process \fBID\fR of the parent process.
462 .ne 2
464 \fB\fBC\fR(f,l)\fR
466 .RS 14n
467 Processor utilization for scheduling (obsolete). Not printed when the \fB-c\fR
468 option is used.
472 .ne 2
474 \fB\fBCLS\fR(f,l)\fR
476 .RS 14n
477 Scheduling class. Printed only when the \fB-c\fR option is used.
481 .ne 2
483 \fB\fBPRI\fR(l)\fR
485 .RS 14n
486 The priority of the process. Without the \fB-c\fR option, higher numbers mean
487 lower priority. With the \fB-c\fR option, higher numbers mean higher priority.
491 .ne 2
493 \fB\fBNI\fR(l)\fR
495 .RS 14n
496 Nice value, used in priority computation. Not printed when the \fB-c\fR option
497 is used. Only processes in the certain scheduling classes have a nice value.
501 .ne 2
503 \fB\fBADDR\fR(l)\fR
505 .RS 14n
506 The memory address of the process.
510 .ne 2
512 \fB\fBSZ\fR(l)\fR
514 .RS 14n
515 The total size of the process in virtual memory, including all mapped files and
516 devices, in pages. See \fBpagesize\fR(1).
520 .ne 2
522 \fB\fBWCHAN\fR(l)\fR
524 .RS 14n
525 The address of an event for which the process is sleeping (if blank, the
526 process is running).
530 .ne 2
532 \fB\fBSTIME\fR(f)\fR
534 .RS 14n
535 The starting time of the process, given in hours, minutes, and seconds. (A
536 process begun more than twenty-four hours before the \fBps\fR inquiry is
537 executed is given in months and days.)
541 .ne 2
543 \fB\fBTTY\fR(all)\fR
545 .RS 14n
546 The controlling terminal for the process (the message, \fB?\fR, is printed when
547 there is no controlling terminal).
551 .ne 2
553 \fB\fBTIME\fR(all)\fR
555 .RS 14n
556 The cumulative execution time for the process.
560 .ne 2
562 \fB\fBLTIME\fR(all)\fR
564 .RS 14n
565 The execution time for the lwp being reported.
569 .ne 2
571 \fB\fBCMD\fR(all)\fR
573 .RS 14n
574 The command name (the full command name and its arguments, up to a limit of 80
575 characters, are printed under the \fB-f\fR option).
580 The following two additional columns are printed when the \fB-j\fR option is
581 specified:
583 .ne 2
585 \fB\fBPGID\fR\fR
587 .RS 8n
588 The process ID of the process group leader.
592 .ne 2
594 \fB\fBSID\fR\fR
596 .RS 8n
597 The process ID of the session leader.
602 The following two additional columns are printed when the \fB-L\fR option is
603 specified:
605 .ne 2
607 \fB\fBLWP\fR\fR
609 .RS 8n
610 The lwp ID of the lwp being reported.
614 .ne 2
616 \fB\fBNLWP\fR\fR
618 .RS 8n
619 The number of lwps in the process (if \fB-f\fR is also specified).
624 Under the \fB-L\fR option, one line is printed for each lwp in the process and
625 the time-reporting fields \fBSTIME\fR and \fBLTIME\fR show the values for the
626 lwp, not the process. A traditional single-threaded process contains only one
627 lwp.
630 A process that has exited and has a parent, but has not yet been waited for by
631 the parent, is marked \fB<defunct>\fR\&.
632 .SS "\fB-o\fR format"
634 The \fB-o\fR option allows the output format to be specified under user
635 control.
638 The format specification must be a list of names presented as a single
639 argument, blank- or comma-separated. Each variable has a default header. The
640 default header can be overridden by appending an equals sign and the new text
641 of the header. The rest of the characters in the argument is used as the header
642 text. The fields specified are written in the order specified on the command
643 line, and should be arranged in columns in the output. The field widths are
644 selected by the system to be at least as wide as the header text (default or
645 overridden value). If the header text is null, such as \fB-o\fR \fIuser=,\fR
646 the field width is at least as wide as the default header text.
647 Long names are not truncated in this mode.
648 If all header text fields are null, no header line is written.
651 The following names are recognized in the POSIX locale:
653 .ne 2
655 \fB\fBuser\fR\fR
657 .RS 10n
658 The effective user \fBID\fR of the process. This is the textual user \fBID\fR,
659 if it can be obtained and the field width permits, or a decimal representation
660 otherwise.
664 .ne 2
666 \fB\fBruser\fR\fR
668 .RS 10n
669 The real user \fBID\fR of the process. This is the textual user \fBID\fR, if it
670 can be obtained and the field width permits, or a decimal representation
671 otherwise.
675 .ne 2
677 \fB\fBgroup\fR\fR
679 .RS 10n
680 The effective group \fBID\fR of the process. This is the textual group
681 \fBID,\fR if it can be obtained and the field width permits, or a decimal
682 representation otherwise.
686 .ne 2
688 \fB\fBrgroup\fR\fR
690 .RS 10n
691 The real group \fBID\fR of the process. This is the textual group \fBID,\fR if
692 it can be obtained and the field width permits, or a decimal representation
693 otherwise.
697 .ne 2
699 \fB\fBpid\fR\fR
701 .RS 10n
702 The decimal value of the process \fBID\fR.
706 .ne 2
708 \fB\fBppid\fR\fR
710 .RS 10n
711 The decimal value of the parent process \fBID\fR.
715 .ne 2
717 \fB\fBpgid\fR\fR
719 .RS 10n
720 The decimal value of the process group \fBID.\fR
724 .ne 2
726 \fB\fBpcpu\fR\fR
728 .RS 10n
729 The ratio of CPU time used recently to CPU time available in the same period,
730 expressed as a percentage. The meaning of ``recently'' in this context is
731 unspecified. The CPU time available is determined in an unspecified manner.
735 .ne 2
737 \fB\fBvsz\fR\fR
739 .RS 10n
740 The total size of the process in virtual memory, in kilobytes.
744 .ne 2
746 \fB\fBnice\fR\fR
748 .RS 10n
749 The decimal value of the system scheduling priority of the process. See
750 \fBnice\fR(1).
754 .ne 2
756 \fB\fBetime\fR\fR
758 .RS 10n
759 In the POSIX locale, the elapsed time since the process was started, in the
760 form:
762 \fB[[\fR\fIdd\fR-\fB]\fR\fIhh\fR:\fB]\fR\fImm\fR:\fIss\fR
764 where
766 .ne 2
768 \fB\fIdd\fR\fR
770 .RS 6n
771 is the number of days
775 .ne 2
777 \fB\fIhh\fR\fR
779 .RS 6n
780 is the number of hours
784 .ne 2
786 \fB\fImm\fR\fR
788 .RS 6n
789 is the number of minutes
793 .ne 2
795 \fB\fIss\fR\fR
797 .RS 6n
798 is the number of seconds
801 The \fIdd\fR field is a decimal integer. The \fIhh\fR, \fImm\fR and \fIss\fR
802 fields is two-digit decimal integers padded on the left with zeros.
806 .ne 2
808 \fB\fBtime\fR\fR
810 .RS 10n
811 In the POSIX locale, the cumulative CPU time of the process in the form:
813 \fB[\fR\fIdd\fR-\fB]\fR\fIhh\fR:\fImm\fR:\fIss\fR
815 The \fIdd\fR, \fIhh\fR, \fImm\fR, and \fIss\fR fields is as described in the
816 \fBetime\fR specifier.
820 .ne 2
822 \fB\fBtty\fR\fR
824 .RS 10n
825 The name of the controlling terminal of the process (if any) in the same format
826 used by the \fBwho\fR(1) command.
830 .ne 2
832 \fB\fBcomm\fR\fR
834 .RS 10n
835 The name of the command being executed (\fBargv[0]\fR value) as a string.
839 .ne 2
841 \fB\fBargs\fR\fR
843 .RS 10n
844 The command with all its arguments as a string. The implementation might
845 truncate this value to the field width; it is implementation-dependent whether
846 any further truncation occurs. It is unspecified whether the string represented
847 is a version of the argument list as it was passed to the command when it
848 started, or is a version of the arguments as they might have been modified by
849 the application. Applications cannot depend on being able to modify their
850 argument list and having that modification be reflected in the output of
851 \fBps\fR. The Solaris implementation limits the string to 80 bytes; the string
852 is the version of the argument list as it was passed to the command when it
853 started.
858 The following names are recognized in the Solaris implementation:
860 .ne 2
862 \fB\fBf\fR\fR
864 .RS 11n
865 Flags (hexadecimal and additive) associated with the process.
869 .ne 2
871 \fB\fBs\fR\fR
873 .RS 11n
874 The state of the process.
878 .ne 2
880 \fB\fBc\fR\fR
882 .RS 11n
883 Processor utilization for scheduling (obsolete).
887 .ne 2
889 \fB\fBuid\fR\fR
891 .RS 11n
892 The effective user \fBID\fR number of the process as a decimal integer.
896 .ne 2
898 \fB\fBruid\fR\fR
900 .RS 11n
901 The real user \fBID\fR number of the process as a decimal integer.
905 .ne 2
907 \fB\fBgid\fR\fR
909 .RS 11n
910 The effective group \fBID\fR number of the process as a decimal integer.
914 .ne 2
916 \fB\fBrgid\fR\fR
918 .RS 11n
919 The real group \fBID\fR number of the process as a decimal integer.
923 .ne 2
925 \fB\fBprojid\fR\fR
927 .RS 11n
928 The project \fBID\fR number of the process as a decimal integer.
932 .ne 2
934 \fB\fBproject\fR\fR
936 .RS 11n
937 The project \fBID\fR of the process as a textual value if that value can be
938 obtained; otherwise, as a decimal integer.
942 .ne 2
944 \fB\fBzoneid\fR\fR
946 .RS 11n
947 The zone \fBID\fR number of the process as a decimal integer.
951 .ne 2
953 \fB\fBzone\fR\fR
955 .RS 11n
956 The zone \fBID\fR of the process as a textual value if that value can be
957 obtained; otherwise, as a decimal integer.
961 .ne 2
963 \fB\fBsid\fR\fR
965 .RS 11n
966 The process ID of the session leader.
970 .ne 2
972 \fB\fBtaskid\fR\fR
974 .RS 11n
975 The task \fBID\fR of the process.
979 .ne 2
981 \fB\fBclass\fR\fR
983 .RS 11n
984 The scheduling class of the process.
988 .ne 2
990 \fB\fBpri\fR\fR
992 .RS 11n
993 The priority of the process. Higher numbers mean higher priority.
997 .ne 2
999 \fB\fBopri\fR\fR
1001 .RS 11n
1002 The obsolete priority of the process. Lower numbers mean higher priority.
1006 .ne 2
1008 \fB\fBlwp\fR\fR
1010 .RS 11n
1011 The decimal value of the lwp \fBID\fR. Requesting this formatting option causes
1012 one line to be printed for each lwp in the process.
1016 .ne 2
1018 \fB\fBnlwp\fR\fR
1020 .RS 11n
1021 The number of lwps in the process.
1025 .ne 2
1027 \fB\fBpsr\fR\fR
1029 .RS 11n
1030 The number of the processor to which the process or lwp is bound.
1034 .ne 2
1036 \fB\fBpset\fR\fR
1038 .RS 11n
1039 The \fBID\fR of the processor set to which the process or lwp is bound.
1043 .ne 2
1045 \fB\fBaddr\fR\fR
1047 .RS 11n
1048 The memory address of the process.
1052 .ne 2
1054 \fB\fBosz\fR\fR
1056 .RS 11n
1057 The total size of the process in virtual memory, in pages.
1061 .ne 2
1063 \fB\fBwchan\fR\fR
1065 .RS 11n
1066 The address of an event for which the process is sleeping (if \(mi, the process
1067 is running).
1071 .ne 2
1073 \fB\fBstime\fR\fR
1075 .RS 11n
1076 The starting time or date of the process, printed with no blanks.
1080 .ne 2
1082 \fB\fBrss\fR\fR
1084 .RS 11n
1085 The resident set size of the process, in kilobytes. The \fBrss\fR value
1086 reported by \fBps\fR is an estimate provided by \fBproc\fR(4) that might
1087 underestimate the actual resident set size. Users who wish to get more accurate
1088 usage information for capacity planning should use \fBpmap\fR(1) \fB-x\fR
1089 instead.
1093 .ne 2
1095 \fB\fBpmem\fR\fR
1097 .RS 11n
1098 The ratio of the process's resident set size to the physical memory on the
1099 machine, expressed as a percentage.
1103 .ne 2
1105 \fB\fBfname\fR\fR
1107 .RS 11n
1108 The first 8 bytes of the base name of the process's executable file.
1112 .ne 2
1114 \fB\fBctid\fR\fR
1116 .RS 11n
1117 The contract ID of the process contract the process is a member of as a decimal
1118 integer.
1122 .ne 2
1124 \fB\fBlgrp\fR\fR
1126 .RS 11n
1127 The home lgroup of the process.
1131 .ne 2
1133 \fB\fBdmodel\fR\fR
1135 .RS 11n
1136 The data model of the process, printed in the same manner as via
1137 \fBpflags\fR(1). The currently supported data models are _ILP32 and _LP64.
1142 Only \fBcomm\fR and \fBargs\fR are allowed to contain blank characters; all
1143 others, including the Solaris implementation variables, are not.
1146 The following table specifies the default header to be used in the POSIX locale
1147 corresponding to each format specifier.
1152 box;
1153 c c c c
1154 c c c c .
1155 Format  Default Format  Default
1156 Specifier       Header  Specifier       Header
1158 args    COMMAND ppid    PPID
1159 comm    COMMAND rgroup  RGROUP
1160 etime   ELAPSED ruser   RUSER
1161 group   GROUP   time    TIME
1162 nice    NI      tty     TT
1163 pcpu    %CPU    user    USER
1164 pgid    PGID    vsz     VSZ
1165 pid     PID             
1170 The following table lists the Solaris implementation format specifiers and the
1171 default header used with each.
1176 box;
1177 c c c c
1178 c c c c .
1179 Format  Default Format  Default
1180 Specifier       Header  Specifier       Header
1182 addr    ADDR    projid  PROJID
1183 c       C       project PROJECT
1184 class   CLS     psr     PSR
1185 f       F       rgid    RGID
1186 fname   COMMAND rss     RSS
1187 gid     GID     ruid    RUID
1188 lgrp    LGRP    s       S
1189 lwp     LWP     sid     SID
1190 nlwp    NLWP    stime   STIME
1191 opri    PRI     taskid  TASKID
1192 osz     SZ      uid     UID
1193 pmem    %MEM    wchan   WCHAN
1194 pri     PRI     zone    ZONE
1195 ctid    CTID    zoneid  ZONEID
1198 .SH EXAMPLES
1200 \fBExample 1 \fRUsing \fBps\fR Command
1203 The command:
1206 .in +2
1208 example% \fBps -o user,pid,ppid=MOM -o args\fR
1210 .in -2
1215 writes the following in the POSIX locale:
1218 .in +2
1220  USER  PID   MOM   COMMAND
1221 helene  34    12   ps -o uid,pid,ppid=MOM -o args
1223 .in -2
1228 The contents of the \fBCOMMAND\fR field need not be the same due to possible
1229 truncation.
1231 .SH ENVIRONMENT VARIABLES
1233 See \fBenviron\fR(5) for descriptions of the following environment variables
1234 that affect the execution of \fBps\fR: \fBLANG\fR, \fBLC_ALL\fR,
1235 \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, \fBLC_TIME\fR, and \fBNLSPATH\fR.
1237 .ne 2
1239 \fB\fBCOLUMNS\fR\fR
1241 .RS 11n
1242 Override the system-selected horizontal screen size, used to determine the
1243 number of text columns to display.
1246 .SH EXIT STATUS
1248 The following exit values are returned:
1250 .ne 2
1252 \fB\fB0\fR\fR
1254 .RS 6n
1255 Successful completion.
1259 .ne 2
1261 \fB\fB>0\fR\fR
1263 .RS 6n
1264 An error occurred.
1267 .SH FILES
1268 .ne 2
1270 \fB\fB/dev/pts/*\fR\fR
1272 .RS 15n
1277 .ne 2
1279 \fB\fB/dev/term/*\fR\fR
1281 .RS 15n
1282 terminal (``tty'') names searcher files
1286 .ne 2
1288 \fB\fB/etc/passwd\fR\fR
1290 .RS 15n
1291 \fBUID\fR information supplier
1295 .ne 2
1297 \fB\fB/proc/*\fR\fR
1299 .RS 15n
1300 process control files
1303 .SH ATTRIBUTES
1305 See \fBattributes\fR(5) for descriptions of the following attributes:
1310 box;
1311 c | c
1312 l | l .
1313 ATTRIBUTE TYPE  ATTRIBUTE VALUE
1315 CSI     Enabled (see USAGE)
1317 Interface Stability     Committed
1319 Standard        See \fBstandards\fR(5).
1322 .SH SEE ALSO
1324 \fBkill\fR(1), \fBlgrpinfo\fR(1), \fBnice\fR(1), \fBpagesize\fR(1),
1325 \fBpmap\fR(1), \fBpriocntl\fR(1), \fBwho\fR(1), \fBgetty\fR(1M), \fBproc\fR(4),
1326 \fBttysrch\fR(4), \fBattributes\fR(5), \fBenviron\fR(5),
1327 \fBresource_controls\fR(5), \fBstandards\fR(5), \fBzones\fR(5)
1328 .SH NOTES
1330 Things can change while \fBps\fR is running. The snapshot it gives is true only
1331 for a split-second, and it might not be accurate by the time you see it. Some
1332 data printed for defunct processes is irrelevant.
1335 If no options to select processes are specified, \fBps\fR reports all processes
1336 associated with the controlling terminal. If there is no controlling terminal,
1337 there is no report other than the header.
1340 \fBps\fR \fB-ef\fR or \fBps\fR \fB-o\fR \fBstime\fR might not report the actual
1341 start of a tty login session, but rather an earlier time, when a getty was last
1342 respawned on the tty line.
1345 \fBps\fR is \fBCSI\fR-enabled except for login names (usernames).