Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   pcp-atop    ( 1 )

расширенный мониторинг системы и процессов (Advanced System and Process Monitor)

PCP DATA STORAGE

In order to store system and process level statistics for long- term analysis (e.g. to check the system load and the active processes running yesterday between 3:00 and 4:00 PM), pcp-atop can store the system and process level statistics in the PCP archive format, as an archive folio (see mkaf(1)). All information about processes and threads is stored in the archive. The interval (default: 10 seconds) and number of samples (default: infinite) can be passed as last arguments. Instead of the number of samples, the flag -S can be used to indicate that pcp-atop should finish anyhow before midnight.

A PCP archive can be read and visualized again with the -r option. The argument is a comma-separated list of names, each of which may be the base name of an archive or the name of a directory containing one or more archives. If no argument is specified, the file $PCP_LOG_DIR/pmlogger/HOST/YYYYMMDD is opened for input (where YYYYMMDD are digits representing the current date, and HOST is the hostname of the machine being logged). If a filename is specified in the format YYYYMMDD (representing any valid date), the file $PCP_LOG_DIR/pmlogger/HOST/YYYYMMDD is opened. If a filename with the symbolic name y is specified, yesterday's daily logfile is opened (this can be repeated so 'yyyy' indicates the logfile of four days ago). The samples from the file can be viewed interactively by using the key 't' to show the next sample, the key 'T' to show the previous sample, the key 'b' to branch to a particular time or the key 'r' to rewind to the begin of the file. When output is redirected to a file or pipe, pcp-atop prints all samples in plain ASCII. The default line length is 80 characters in that case; with the flag -L followed by an alternate line length, more (or less) columns will be shown. With the flag -b (begin time) and/or -e (end time) followed by a time argument of the form [YY-MM-DD] HH:MM, a certain time period within the archive can be selected.