[SOLARIS]prstat command
[LINK]
http://munhwan.egloos.com/1006810
http://munhwan.egloos.com/1006801
NAME
prstat - report active process statistics
SYNOPSIS
prstat [-acJLmRtTv] [-C psrsetlist] [-j projlist] [-k task-
list] [-n ntop[,nbottom]] [-p pidlist] [-P cpulist] [-s key
| -S key ] [-u euidlist] [-U uidlist] [interval [count]]
DESCRIPTION
The prstat utility iteratively examines all active processes
on the system and reports statistics based on the selected
output mode and sort order. prstat provides options to exam-
ine only processes matching specified PIDs, UIDs, CPU IDs,
and processor set IDs.
The -j, -k, -C, -p, -P, -u, and -U options accept lists as
arguments. Items in a list can be either separated by commas
or enclosed in quotes and separated by commas or spaces.
If you do not specify an option, prstat examines all
processes and reports statistics sorted by CPU usage.
OPTIONS
The following options are supported:
-a Report information about processes and users. In this
mode prstat displays separate reports about processes
and users at the same time.
-c Print new reports below previous reports instead of
overprinting them.
-C psrsetlist
Report only processes or lwps that are bound to pro-
cessor sets in the given list. Each processor set is
identified by an integer as reported by psrset(1M).
-j projlist
Report only processes or lwps whose project ID is in
the given list. Each project ID can be specified as
either a project name or a numerical project ID. See
project(4).
-J Report information about processes and projects. In
this mode prstat displays separate reports about
processes and projects at the same time.
-k tasklist
Report only processes or lwps whose task ID is in
tasklist.
-L Report statistics for each light-weight process (LWP).
By default, prstat reports only the number of LWPs for
each process.
-m Report microstate process accounting information. In
addition to all fields listed in -v mode, this mode
also includes the percentage of time the process has
spent processing system traps, text page faults, data
page faults, waiting for user locks and waiting for
CPU (latency time).
-n ntop[,nbottom]
Restrict number of output lines. The ntop argument
determines how many lines of process or lwp statistics
are reported, and the nbottom argument determines how
many lines of user, task, or projects statistics are
reported if the -a, -t, -T, or -J options are speci-
fied. By default, prstat can display as many lines of
output as will fit within a window or terminal.
-p pidlist
Report only processes whose process ID is in the
given list.
-P cpulist
Report only processes or lwps which have most recently
executed on a CPU in the given list. Each CPU is iden-
tified by an integer as reported by psrinfo(1M).
-R Put prstat in the real time scheduling class. When
this option is used, prstat is given priority over
time-sharing and interactive processes. This option is
available only for superuser.
-s key
Sort output lines (that is, processes, lwps, or users)
by key in descending order. Only one key can be used
as an argument.
There are five possible key values:
cpu Sort by process CPU usage. This is the default.
time Sort by process execution time.
size Sort by size of process image.
rss Sort by resident set size.
pri Sort by process priority.
-S key
Sort output lines by key in ascending order. Possible
key values are the same as for the -s option. See -s.
-t Report total usage summary for each user. The summary
includes the total number of processes or LWPs owned
by the user, total size of process images, total
resident set size, total cpu time, and percentages of
recent cpu time and system memory.
-T Report information about processes and tasks. In this
mode prstat displays separate reports about processes
and tasks at the same time.
-u euidlist
Report only processes whose effective user ID is in
the given list. Each user ID may be specified as
either a login name or a numerical user ID.
-U uidlist
Report only processes whose real user ID is in the
given list. Each user ID may be specified as either a
login name or a numerical user ID.
-v Report verbose process usage. This output format
includes the percentage of time the process has spent
in user mode, in system mode, and sleeping. It also
includes the number of voluntary and involuntary con-
text switches, system calls and the number of signals
received.
이 글은 스프링노트에서 작성되었습니다.


