Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
   1 '\" te
   2 .\" Copyright (c) 2013 Gary Mills
   3 .\" Copyright (c) 2006, 2009 Sun Microsystems, Inc. All Rights Reserved.

   4 .\" 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.
   5 .\"  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
   6 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   7 .TH PRSTAT 1M "Nov 14, 2014"
   8 .SH NAME
   9 prstat \- report active process statistics
  10 .SH SYNOPSIS
  11 .LP
  12 .nf
  13 \fBprstat\fR [\fB-acHJLmRrtTvWZ\fR] [\fB-d\fR u | d] [\fB-C\fR \fIpsrsetlist\fR] [\fB-h\fR \fIlgrplist\fR]
  14      [\fB-j\fR \fIprojlist\fR] [\fB-k\fR \fItasklist\fR] [\fB-n\fR \fIntop\fR[,\fInbottom\fR]]
  15      [\fB-p\fR \fIpidlist\fR] [\fB-P\fR \fIcpulist\fR] [\fB-s\fR \fIkey\fR | \fB-S\fR \fIkey\fR ]
  16      [\fB-u\fR \fIeuidlist\fR] [\fB-U\fR \fIuidlist\fR] [\fB-z\fR \fIzoneidlist\fR]
  17      [\fIinterval\fR [\fIcount\fR]]
  18 .fi
  19 
  20 .SH DESCRIPTION
  21 .LP
  22 The \fBprstat\fR utility iteratively examines all active processes on the
  23 system and reports statistics based on the selected output mode and sort order.
  24 \fBprstat\fR provides options to examine only processes matching specified
  25 \fBPID\fRs, \fBUID\fRs, zone \fBID\fRs, \fBCPU\fR \fBID\fRs, and processor set
  26 \fBID\fRs.
  27 .sp


 563 .RS 4n
 564 The percentage of recent \fBCPU\fR time used by the process. If executing in a
 565 non-global \fBzone\fR and the pools facility is active, the percentage will be
 566 that of the processors in the processor set in use by the pool to which the
 567 \fBzone\fR is bound.
 568 .RE
 569 
 570 .sp
 571 .ne 2
 572 .na
 573 \fBPROCESS\fR
 574 .ad
 575 .sp .6
 576 .RS 4n
 577 The name of the process (name of executed file).
 578 .RE
 579 
 580 .sp
 581 .ne 2
 582 .na
 583 \fBLWPID\fR
 584 .ad
 585 .sp .6
 586 .RS 4n
 587 The \fBlwp\fR \fBID\fR of the \fBlwp\fR being reported.

 588 .RE
 589 
 590 .sp
 591 .ne 2
 592 .na
 593 \fBNLWP\fR
 594 .ad
 595 .sp .6
 596 .RS 4n
 597 The number of \fBlwp\fRs in the process.
 598 .RE
 599 
 600 .sp
 601 .LP
 602 With the some options, in addition to a number of the column headings shown
 603 above, there are:
 604 .sp
 605 .ne 2
 606 .na
 607 \fBNPROC\fR


   1 '\" te
   2 .\" Copyright (c) 2013 Gary Mills
   3 .\" Copyright (c) 2006, 2009 Sun Microsystems, Inc. All Rights Reserved.
   4 .\" Copyright (c) 2018, Joyent, Inc. All Rights Reserved.
   5 .\" 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.
   6 .\"  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
   7 .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   8 .TH PRSTAT 1M "September 1, 2018"
   9 .SH NAME
  10 prstat \- report active process statistics
  11 .SH SYNOPSIS
  12 .LP
  13 .nf
  14 \fBprstat\fR [\fB-acHJLmRrtTvWZ\fR] [\fB-d\fR u | d] [\fB-C\fR \fIpsrsetlist\fR] [\fB-h\fR \fIlgrplist\fR]
  15      [\fB-j\fR \fIprojlist\fR] [\fB-k\fR \fItasklist\fR] [\fB-n\fR \fIntop\fR[,\fInbottom\fR]]
  16      [\fB-p\fR \fIpidlist\fR] [\fB-P\fR \fIcpulist\fR] [\fB-s\fR \fIkey\fR | \fB-S\fR \fIkey\fR ]
  17      [\fB-u\fR \fIeuidlist\fR] [\fB-U\fR \fIuidlist\fR] [\fB-z\fR \fIzoneidlist\fR]
  18      [\fIinterval\fR [\fIcount\fR]]
  19 .fi
  20 
  21 .SH DESCRIPTION
  22 .LP
  23 The \fBprstat\fR utility iteratively examines all active processes on the
  24 system and reports statistics based on the selected output mode and sort order.
  25 \fBprstat\fR provides options to examine only processes matching specified
  26 \fBPID\fRs, \fBUID\fRs, zone \fBID\fRs, \fBCPU\fR \fBID\fRs, and processor set
  27 \fBID\fRs.
  28 .sp


 564 .RS 4n
 565 The percentage of recent \fBCPU\fR time used by the process. If executing in a
 566 non-global \fBzone\fR and the pools facility is active, the percentage will be
 567 that of the processors in the processor set in use by the pool to which the
 568 \fBzone\fR is bound.
 569 .RE
 570 
 571 .sp
 572 .ne 2
 573 .na
 574 \fBPROCESS\fR
 575 .ad
 576 .sp .6
 577 .RS 4n
 578 The name of the process (name of executed file).
 579 .RE
 580 
 581 .sp
 582 .ne 2
 583 .na
 584 \fBLWP\fR
 585 .ad
 586 .sp .6
 587 .RS 4n
 588 The \fBlwp\fR \fBID\fR of the \fBlwp\fR being reported, as well as the LWP
 589 name if any is set.
 590 .RE
 591 
 592 .sp
 593 .ne 2
 594 .na
 595 \fBNLWP\fR
 596 .ad
 597 .sp .6
 598 .RS 4n
 599 The number of \fBlwp\fRs in the process.
 600 .RE
 601 
 602 .sp
 603 .LP
 604 With the some options, in addition to a number of the column headings shown
 605 above, there are:
 606 .sp
 607 .ne 2
 608 .na
 609 \fBNPROC\fR