PCP-PIDSTAT(1) | General Commands Manual | PCP-PIDSTAT(1) |
pcp-pidstat - Report statistics for Linux tasks.
pcp [pcp options] pidstat [-I] [-l] [-R] [-r] [-k] [-U [username]] [-V] [-G processname] [-p pid1,pid2..] [-t interval] [-s count] [-a archive] [-B state] [-f format] [-Z timezone] [-z] [-?]
The pcp-pidstat command is used for monitoring individual tasks running on the system. Using various options it helps user to see useful information related to the processes. This information includes CPU percentage, memory and stack usage, scheduling and priority. By default pcp-pidstat reports live data for the local host.
When invoked via the pcp(1) command, the -h/--host, -a/--archive, -O/--origin, -s/--samples, -t/--interval, -Z/--timezone and several other and several other pcp options become indirectly available; refer to PCPIntro(1) for a complete description of these options.
The additional command line options available for pcp-pidstat are:
UID
The real user identification number of the task being monitored.
USER
The name of the real user owning the task being monitored.
PID
The identification number of the task being monitored.
prio
The realtime priority of the task being monitored.
policy
The scheduling policy of the task being monitored.
Command
The command name of the task.
UID
The real user identification number of the task being monitored.
USER
The name of the real user owning the task being monitored.
PID
The identification number of the task being monitored.
minflt/s
Total number of minor faults the task has made per second, those which
have not required loading a memory page from disk.
majflt/s
Total number of major faults the task has made per second, those which
have required loading a memory page from disk.
VSZ
Virtual Size: The virtual memory usage of entire task in kilobytes.
RSS
Resident Set Size: The non-swapped physical memory used by the task in
kilobytes.
%MEM
The tasks currently used share of available physical memory.
Command
The command name of the task.
UID
The real user identification number of the task being monitored.
USER
The name of the real user owning the task being monitored.
PID
The identification number of the task being monitored.
StkSize
The amount of memory in kilobytes reserved for the task as stack, but not
necessarily used.
StkRef
The amount of memory in kilobytes used as stack, referenced by the
task.
Command
The command name of the task.
detail
Show total time processes have spent in each of the 5 different
states
all
Show total time processes spent in their current state
[R,S,T,D,Z]
A comma separated list of process states. For example, -B R,S will
report processes currently in either R or S states and not
report processes currently in any other states.
pcp-pidstat is inspired by the pidstat(1) command and aims to be command line and output compatible with it.
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
For environment variables affecting PCP tools, see pmGetOptions(3).
PCPIntro(1), pcp(1), pidstat(1), python(1), pmParseInterval(3), strftime(3) and environ(7).
PCP | Performance Co-Pilot |