| PMLOGCOMPRESS(1) | General Commands Manual | PMLOGCOMPRESS(1) |
pmlogcompress - compress and decompress PCP archive files
pmlogcompress [-dNVz?] [-A arg] [-c proglist] [-f prog] [-l limit] [-o type] [-t dir] [-Z min] archive]...
pmlogcompress supports the compression and decompression of the files that make up a Performance Co-Pilot (PCP) archive; refer to LOGARCHIVE(5) for an explanation of the various files that are components of a PCP archive.
The archive arguments may be either the name of a single file in a PCP archive or the basename of a PCP archive, as in the style generated by pmlogbasename(1). In the former case, pmlogcompress will compress or decompress just that file, but in the latter case pmlogcompress will attempt to compress or decompress all the files that are part of the associated PCP archive.
In keeping with other compression tools, the default mode for pmlogcompress is to compress, i.e. the -z option, to decompress the -d option is required.
The available command line options are:
The processing of arg is not sophisticated, so embedded shell variables, escape characters, shell ``glob'' characters and white space should be avoided.
Multiple -A options are allowed and all the arg arguments will be used.
The default value for proglist is zstd:xz:bzip2:gzip.
If archive is an archive basename then the largest of the files that are part of the associated PCP archive is selected for the test, else archive will be used for the test.
Use of this option means each of the selected archive files will be compressed multiple times, so it is likely that -o would be used in experiments with -N (and possibly -V) to determine the best compression tool for the local environment and PCP archives.
If archive is a single file, then only that file is decompressed into dir, but if archive is an archive basename then all of the files of archive will be copied, and possibly decompressed, into dir.
dir must exist before pmlogcompress is run.
When both xz and xstd are in consideration (see the -c option above), then the -Z option allows the user to tune where the xz to zstd cut-over happens; input files smaller than min (in bytes) will be compressed with xz else zstd will be used.
The default value for min is 52428800 (50MiB).
PCPIntro(1), bzip2(1), gzip(1), pmlogbasename(1), pmlogger(1), pmlogger_check(1), pmlogger_daily(1), xz(1), zstd(1) and LOGARCHIVE(5).
back reference to pmlogger_daily and friends where all the compression is done at the moment
| PCP | Performance Co-Pilot |