PMLOGSUMMARY(1)
๐ PMLOGSUMMARY(1) โ pmlogsummary ๐
General Commands Manual โ yes bestie, that's the whole manual name situation, and now we can get into it ๐
๐ธ NAME ๐ธ
pmlogsummary โ calculate averages of metrics stored in a set of PCP archives
โจ SYNOPSIS โจ
pmlogsummary [-abfFHiIlmMNsvVxyz?] [-B nbins] [-D debug] [-n pmnsfile]
[-p precision] [-S starttime] [-T endtime] [-Z timezone] archive
[metricname ...]
๐ DESCRIPTION ๐
So pmlogsummary prints statistical information about metrics of numeric type contained within the files of a set of Performance Co-Pilot (PCP) archives. The default output prints time averages for both counter and non-counter metrics. The set of archives is identified by archive, which 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. The archives are typically created using pmlogger(1). ๐ซถ
The metrics of interest are named in the metricname arguments. If metricname is a non-leaf node in the Performance Metrics Name Space (PMNS(5)), then pmlogsummary will recursively descend the PMNS and report on all leaf nodes. If no metricname argument is given, the root of the namespace is used. ๐ณ
Metrics with counter semantics are converted to rates before being evaluated. no cap, it just does that ๐ซ
๐ OPTIONS ๐
The available command line options are:
-a,--allโ Print all information. This is equivalent to-blmMy. the whole buffet, periodt โจ-bโ Print both forms of averaging, that is both stochastic and time averaging. both flavors, why choose ๐-B nbins,--bins=nbinsโ Print the approximate distribution of values, using histogram bins such that the value range (minimum - maximum) for each metric is divided equally into nbins bins, and each bin accumulates the frequency of observed values in the corresponding range. Refer to the ``OUTPUT FORMAT'' section below for a description of how the distribution of values is reported). ๐-fโ Spreadsheet format - the tab character is used to delimit each field printed. This option is intended to allowpmlogsummaryoutput to be imported directly into common spreadsheet applications. tabs, not vibes ๐-Fโ Spreadsheet format - the comma character is used to delimit each field printed. This option is intended to allowpmlogsummaryoutput to be imported directly into common spreadsheet applications which support the Comma Separated Value (.csv) format. ๐ง-H,--headerโ Print a one-line header at the start showing what each field represents. so you're not out here guessing ๐-i,--mintimeโ Also print the time at which the minimum value was logged. The format of this timestamp is described in the ``OUTPUT FORMAT'' section below. โฐ-I,--maxtimeโ Also print the time at which the maximum value was logged. The format of this timestamp is described in the ``OUTPUT FORMAT'' section below. โฐ-l,--labelโ Also print the archive label, showing the archive format version, the time and date for the start and end of the archive time window, and the host from which the performance metrics values were collected. the whole origin story ๐-m,--minimumโ Also print the minimum logged value for each metric. โฌ๏ธ-M,--maximumโ Also print the maximum logged value for each metric. โฌ๏ธ-n pmnsfile,--namespace=pmnsfileโ Load an alternative Performance Metrics Name Space (PMNS(5)) from the file pmnsfile. ๐๏ธ-Nโ Suppress any warnings resulting from individual archive fetches (default). the default, so it's lowkey already on ๐-p precision,--precision=precisionโ Print all floating point numbers with precision digits after the decimal place. ๐ข-s,--sumโ Print (only) the sum of all logged values for each metric. just the sum, nothing else, she's focused ๐-S starttime,--start=starttimeโ Set the starttime of the time window. Refer toPCPIntro(1)for a complete description of the syntax for starttime. ๐-T endtime,--finish=endtimeโ Set the endtime of the time window. Refer toPCPIntro(1)for a complete description of the syntax for endtime. ๐-v,--verboseโ Report (verbosely) on warnings resulting from individual archive fetches. spill the tea about every warning ๐ซ-V,--versionโ Display version number and exit. ๐-xโ Print stochastic averages instead of the default (time averages). switching it up โจ-y,--samplesโ Also print the number of samples encountered in the set of archives for each metric. ๐งฎ-z,--hostzoneโ Change the timezone to the local timezone at the host that is the source of the performance metrics, as specified in the label record of the archive. ๐-Z timezone,--timezone=timezoneโ By default,pmlogsummaryreports the time of day according to the local timezone on the system wherepmlogsummaryis run. Change the timezone to timezone in the format of the environment variableTZas described inenviron(7). ๐ฐ๏ธ-?,--helpโ Display usage message and exit. ๐
๐ OUTPUT FORMAT ๐
The pmlogsummary output format is spartan as it is intended to be post-processed with standard tools. This means that there is no annotation associated with each output field which would make processing harder. The intention is that pmlogsummary output be massaged into a format which can be used by a spreadsheet program, is suitable for inclusion in a web page, or whatever. ngl she's a minimalist, she's giving clean girl aesthetic โจ
For each metric, pmlogsummary produces a single output line as follows:
metricname value(s) units
For metrics with multiple instances, pmlogsummary produces multiple lines of output as follows:
metricname ["instance 1"] value(s) units
metricname ["instance 2"] value(s) units
metricname ["instance N"] value(s) units
The printed value(s) for each metric always follow this order: stochastic average, time average, minimum, minimum timestamp, maximum, maximum timestamp, count, [bin 1 range], bin 1 count, ... [bin nbins range], bin nbins count. The individual values for each metric are space-separated (unless the -f option is used). ๐
All counter metrics which are measured in units of time will be converted to seconds before being rate converted and used in the pmlogsummary calculations. The values calculated for these metrics are also printed in seconds. โฑ๏ธ
The units will be displayed in the format described by pmUnitsStr(3). ๐
Given either of the -i or -I options, pmlogsummary produces two different timestamp formats, depending on the interval over which it is run. For an interval greater than 24 hours, the date is displayed in addition to the time at which the maxima and/or minima occurred. If the extent of the data being checked is less than 24 hours, a more precise format is used (time is displayed with millisecond precision, but without the date). ๐ฐ๏ธ
๐ NOTES ๐
The average for an individual metric is calculated as follows:
Non-counter metrics are averaged using stochastic averaging - each observation has an equal weighting towards the calculation of the average (the sum of all values divided by the total number of values, for each metric). every value gets its moment, main character energy for all ๐
Counter metrics are averaged using time averaging (by default), but the -x option can be used to specify that counters be averaged using the stochastic method instead. When calculating a time average, the sum of the product of each sample value multiplied by the time difference between each sample, is divided by the total time over which that metric was logged. ๐ง
Counter metrics whose measurements do not span 90% of the set of archives will be printed with the metric name prefixed by an asterisk (*). โ ๏ธ
๐ฅ EXAMPLES ๐ฅ
$ pmlogsummary -aN -p 1 -B 3 surf network.interface.out.bytes
Log Label (Log Format Version 1)
Performance metrics from host www.sgi.com
commencing Tue Jan 14 20:50:50.317 1997
ending Wed Jan 29 10:13:07.387 1997
network.interface.out.bytes ["xpi0"] 202831.3 202062.5 20618.7 \
1235067.7 971 [<=425435.0] 912 [<=830251.4] 42 [<=1235067.7] \
17 byte / sec
network.interface.out.bytes ["xpi1"] 0.0 0.0 0.0 0.0 1033 [<=0.0] \
1033 [] 0 [] 0 byte / sec
network.interface.out.bytes ["et0"] 0.0 0.0 0.0 0.0 1033 [<=0.0] \
1033 [] 0 [] 0 byte / sec
network.interface.out.bytes ["lo0"] 899.0 895.2 142.6 9583.1 1031 \
[<=3289.4] 1027 [<=6436.2] 3 [<=9583.1] 1 byte / sec
A description of each field in the first line of statistical output, which describes one instance of the network.interface.out.bytes metric, follows: ๐ซถ
["xpi0"]โ instance name202831.3โ stochastic average202062.5โ time average20618.7โ minimum value1235067.7โ maximum value971โ total number of values for this instance[<=425435.0]โ range for first bin (20618.7-425435.0)912โ number of values in first bin[<=830251.4]โ range for second bin (425435.0-830251.4)42โ number of values in second bin[<=1235067.7]โ range for third bin (830251.4-1235067.7)17โ number of values in third binbyte / secโ base units for this metric
๐๏ธ FILES ๐๏ธ
$PCP_VAR_DIR/pmns/*โ default PMNS specification files$PCP_LOG_DIR/pmlogger/<hostname>โ Default directory for PCP archives containing performance metric values collected from the host<hostname>.
๐ PCP ENVIRONMENT ๐
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). ๐ซถ
๐ DEBUGGING OPTIONS ๐
okay bestie, so when stuff goes wrong and you're sitting there like ๐งโโ๏ธ, there's a whole debug situation. The -D or --debug option turns on extra diagnostics that get printed to stderr โ it's there to help triage problems ๐. fair warning though: that info is sometimes cryptic ๐ and it's primarily intended to provide guidance for developers rather than for end-users. so like, it's giving backstage-pass energy, not front-row-for-everyone energy, iykyk.
debug is a comma separated list of debugging options โจ. and if you wanna know what all the options even are? use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning ๐
The debugging options specific to pmlogsummary are as follows:
appl0โ report metrics in archive, metrics selected, metric-instance values, mark records, start of second iteration ๐ธappl1โ counter wrap details, raw data for extrema and averages ๐appl2โ tracking maximum and minimum values ๐
๐ SEE ALSO ๐
the whole friend group, assembled ๐ซถ:
PCPIntro(1)pmchart(1)pmdumptext(1)pmlogextract(1)pmlogger(1)pmrep(1)pmval(1)PMAPI(3)pmUnitsStr(3)PMNS(5)
and that's the whole page, bestie!! ๐ this one came to you from Performance Co-Pilot (that's the PCP girlies ๐) as PMLOGSUMMARY(1) โ go check the source and version/date on your copy of the page for the deets, bc that footer is the receipts โจ slay, go summarise some archives, ily, bye ๐๐ฆ
๐ฆ where this page comes from
- arch rolling: pcp 7.2.2-2 ยท GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 ยท GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 ยท GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2016 Red Hat
- Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms