pcp-atoprc (5) - Linux Manuals
pcp-atoprc: pcp-atop/pcp-atopsar related resource file
NAME
atoprc - pcp-atop/pcp-atopsar related resource fileDESCRIPTION
This manual page documents the resource file of the pcp-atop and pcp-atopsar commands. These commands can be used to monitor the system and process load on a system.The pcp-atoprc file contains the default settings. These settings are read during startup, first from the system-wide rcfile /etc/atoprc and after that from the user-specific rcfile ~/.atoprc (so system-wide settings can be overruled by an individual user). The options in both rcfiles are identical.
OPTIONS
The rcfile contains keyword-value pairs, one on every line (blank lines
and lines starting with a #-sign are ignored).
The following keywords can be specified:
- flags
- A list of default flags for pcp-atop can be defined here. The flags which are allowed are 'g', 'm', 'd', 'n', 'u', 'p', 's', 'c', 'v', 'C', 'M', 'D', 'N', 'A', 'a', 'y', 'f', 'F', 'G', 'R', '1' and 'x'.
- interval
- The default interval value in seconds.
- linelen
- The length of a screen line when sending output to a file or pipe (default 80).
- username
- The default regular expression for the users for which active processes will be shown.
- procname
- The default regular expression for the process names to be shown.
- maxlinecpu
- The maximum number of active CPU's that will be shown.
- maxlinelvm
- The maximum number of active logical volumes that will be shown.
- maxlinemdd
- The maximum number of active multiple devices that will be shown.
- maxlinedisk
- The maximum number of active disks that will be shown.
- maxlinenfsm
- The maximum number of NFS mounts that will be shown on an NFS client.
- maxlineintf
- The maximum number of active network interfaces that will be shown.
- maxlinecont
- The maximum number of active containers that will be shown.
- cpucritperc
- The busy percentage considered critical for a processor (see section COLORS in the man-page of the pcp-atop command). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- dskcritperc
- The busy percentage considered critical for a disk (see section COLORS in the man-page of the pcp-atop command). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- netcritperc
- The busy percentage considered critical for a network interface (see section COLORS in the man-page of the pcp-atop command). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- memcritperc
- The percentage considered critical for memory utilization (see section COLORS in the man-page of the pcp-atop command). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- swpcritperc
- The occupation percentage considered critical for swap space (see section COLORS in the man-page of the pcp-atop command). This percentage is used to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- swoutcritsec
- The number of pages swapped out per second considered critical for for memory utilization (see section COLORS in the man-page of the pcp-atop command). This threshold is used in combination with 'memcritperc' to determine a weighted percentage for line coloring and sorting of active processes. When this value is zero, no line coloring or automatic sorting is performed for this resource.
- almostcrit
- A percentage of the critical percentage to determine if the resource is almost critical (see section COLORS in the man-page of the pcp-atop command). When this value is zero, no line coloring for `almost critical' is performed.
- colorinfo
-
Definition of color name for information messages (default: green).
Allowed colors are: red green yellow blue magenta cyan black white.
- colorthread
-
Definition of color name for thread-specific lines when using
the 'y' option (default: yellow).
Allowed colors are: red green yellow blue magenta cyan black white.
- coloralmost
-
Definition of color name for almost critical resources (default: cyan).
Allowed colors are: red green yellow blue magenta cyan black white.
- colorcritical
-
Definition of color name for critical resources (default: red).
Allowed colors are: red green yellow blue magenta cyan black white.
- pcp-atopsarflags
- A list of default flags for pcp-atopsar can be defined here. The flags that are allowed are 'S', 'x', 'C', 'M', 'H', 'a', 'A' and the flags to select one or more specific reports.
An example of the /etc/atoprc or ~/.atoprc file:
-
flagsAaf
interval5
username
procname
maxlinecpu4
maxlinedisk10
maxlineintf5
cpucritperc80
almostcrit90
pcp-atopsarflagsCMH
ownproclinePID:50 VGROW:40 RGROW:45 COMMAND-LINE:50
ownpaglinePAGSCAN:3 BLANKBOX:0 PAGSWIN:3 PAGSWOUT:7
The keywords 'ownprocline' and 'ownpagline' are explained in the subsequent section.
OWN DEFINITION OF OUTPUT LINE
Via the rcfile it is possible to define the layout of the output lines yourself, i.e. you can define the layout of one line with process information with the keyword 'ownprocline' (to be selected with the key 'o' or the flag -o) and you can redefine all lines with system information.The layout of an output-line can be defined as follows (notice that this should be specified as one line in the rcfile):
The
columnid
is the symbolic name of a column that should shown at this position
in the output line.
A special columnid for system lines is 'BLANKBOX'. This indicates
that an empty column is required at this position. Also this
special columnid is followed by a priority (usually low).
The following definition can be specified for process information:
The following definitions are used internally by
pcp-atop
as the default system lines (you can redefine each of them in the
rcfile as one line):
The lines above are shown in the order as shown by
pcp-atop
in combination with the
-f
flag (in a very wide window you should be able to see all of the columns).
The
prio
is a positive integer value that determines which columns have precedence
whenever not all specified columns fit into the current screen-width.
The higher value, the higher priority.
The column-specifications should be separated by a space. The order
in which columns have been specified is the order in which they will be
shown, with respect to their priority (columns that do not fit, will be
dropped dynamically).
An example of a user-defined process line: