PMVAL(1)
β¨ PMVAL(1) β General Commands Manual β¨
okay bestie, welcome to the iconic little manual page for pmval (and its secret twin pmevent), the tool that dumps arbitrary performance metrics values π
π NAME π
pmval, pmevent β arbitrary performance metrics value dumper π«Ά
πΈ SYNOPSIS πΈ
pmval [-dgLrvVXz?] [-a archive] [-A align] [--container=name] [-D
debug] [--derived=file] [-f N] [-h host] [-i instances] [-K spec] [-n
pmnsfile] [-O offset] [-p port] [-s samples] [-S starttime] [-t
interval] [-T endtime] [-U archive] [-w width] [-x pattern] [-Z
timezone] metricname
pmevent ...
π¦ DESCRIPTION π¦
pmval prints current or archived values for the nominated performance metric, bestie. The metric you care about is named in the metricname argument, and it can be qualified by instances with the -i flag like the section below explains π
Unless you point it somewhere else with -h, or give it a set of archives with -a or -U, pmval will go talk to the Performance Metrics Collector Daemon (PMCD) on the local host to get the info it needs. localhost core, no cap π
The metricname argument can also use the metric specification syntax from PCPIntro(1), where the source, metric, and instance can all live inside metricname, like this:
thathost:kernel.all.load["1 minute"]
When you use that format, none of the -h, -a, or -U options may be specified. periodt.
When you're using the metric specification syntax, the @ βhostnameβ is treated specially β¨ It makes pmval use a local context to collect metrics from PMDAs on the local host without PMCD. Only some metrics are available in this mode, so don't expect the whole menu, okay? π
When processing a set of archives, pmval may hand over its own timing control and operate under the control of a pmtime(1) process that uses a GUI dialog to provide timing control. In that case, either the -g option should be used to start pmval as the sole client of a new pmtime(1) instance, or -p should be used to attach pmval to an existing pmtime(1) instance via the IPC channel identified by the port argument π
The -S, -T, -O, and -A options may be used to define a time window to restrict the samples retrieved, set an initial origin within the time window, or specify a βnaturalβ alignment of the sample times. Refer to PCPIntro(1) for a complete description of these options π«
The output from pmval is directed to standard output. These symbols may occasionally show up in place of a metric value, so don't be confused, bestie:
- A question mark symbol (
?) indicates that a value is no longer available for that metric instance π - An exclamation mark (
!) indicates that a 64-bit counter wrapped during the sample π
pmevent is an alias for pmval. iconic.
β¨ OPTIONS β¨
The available command line options are:
-a archive,--archive=archiveβ Performance metric values are retrieved from the set of Performance Co-Pilot (PCP) archive files identified by thearchiveargument. That argument is a comma-separated list of names, and each name may be the base name of an archive or the name of a directory containing one or more archives. See also-Uπ-A align,--align=alignβ Force the initial sample to be aligned on the boundary of a natural time unitalign. Refer toPCPIntro(1)for a complete description of the syntax foralignβ¨--container=containerβ Specify an individualcontainerto be queried.-d,--delayβ When replaying from an archive, this option requests that the prevailing real-time delay be applied between samples (see-t) to effect a pause, rather than the default behaviour of replaying at full speed. lowkey chill mode π«Ά--derived=fileβ Load derived metric definitions fromfile.-f precision,--precision=precisionβ Numbers are reported in βfixed pointβ notation instead of the default scientific notation, usingprecisiondigits for precision. Each number will be up to the column width determined by the default heuristics, or else the-woption if specified, and will includeprecisiondigits after the decimal point. So, the options-f 3 -w 8would produce numbers of the form9999.999. A value of zero forprecisionomits the decimal point and any fractional digits π-g,--guimodeβ Startpmvalas the sole client of a newpmtime(1)server process for replay of archived performance data using thepmtime(1)graphical user interface π-h host,--host=hostβ Fetch performance metrics frompmcd(1)onhost, rather than from the default localhost πΈ-i instances,--instances=instancesβ Specify a list of one or more names of instances for the nominated performance metric β just these instances will be retrieved and reported (the default is to report all instances). The list must be a single argument, with elements of the list separated by commas and/or white space.
The instance name may be quoted with single (') or double (") quotes for those cases where the instance name contains white space or commas.
Multiple -i options are allowed as an alternative way of specifying more than one instance of interest.
As an example, the following are all equivalent:
$ pmval -i "'1 minute','5 minute'" kernel.all.load
$ pmval -i '"1 minute","5 minute"' kernel.all.load
$ pmval -i "'1 minute' '5 minute'" kernel.all.load
$ pmval -i "'1 minute'" -i "'5 minute'" kernel.all.load
$ pmval 'localhost:kernel.all.load["1 minute","5 minute"]'
-K spec,--spec-local=specβ When fetching metrics from a local context (see-L), the-Koption may be used to control the DSO PMDAs that should be made accessible. Thespecargument conforms to the syntax described inpmSpecLocalPMDA(3). More than one-Koption may be used π-L,--local-PMDAβ Use a local context to collect metrics from DSO PMDAs on the local host without PMCD. See also-K.-n pmnsfile,--namespace=pmnsfileβ Load an alternative Performance Metrics Name Space (PMNS(5)) from the filepmnsfile.-O origin,--origin=originβ When reporting archived metrics, start reporting atoriginwithin the time window (see-Sand-T). Refer toPCPIntro(1)for a complete description of the syntax fororiginβ-p port,--guiport=portβ Attachpmvalto an existingpmtime(1)time control process instance via the IPC channel identified by theportargument. This option is normally only used by other tools, e.g.pmchart(1), when they launchpmvalwith synchronized time control π«Ά-r,--rawβ Print raw values for cumulative counter metrics. Normally cumulative counter metrics are converted to rates. For example, disk transfers are reported as number of disk transfers per second during the preceding sample interval, rather than the raw value of number of disk transfers since the machine was booted. If you specify this option, the raw metric values are printed. no glow-up math, just the real numbers π-s samples,--samples=samplesβ Thesamplesargument defines the number of samples to be retrieved and reported. Ifsamplesis0or-sis not specified,pmvalwill sample and report continuously (in real time mode) or until the end of the set of PCP archives (in archive mode) π-S starttime,--start=starttimeβ When reporting archived metrics, the report will be restricted to those records logged at or afterstarttime. Refer toPCPIntro(1)for a complete description of the syntax forstarttimeπ-t interval,--interval=intervalβ Set the reporting interval to something other than the default1second. Theintervalargument follows the syntax described inPCPIntro(1), and in the simplest form may be an unsigned integer (the implied units in this case are seconds) β°-T endtime,--finish=endtimeβ When reporting archived metrics, the report will be restricted to those records logged before or atendtime. Refer toPCPIntro(1)for a complete description of the syntax forendtimeπ-U archive,--nointerp=archiveβ Performance metric values are retrieved from the Performance Co-Pilot (PCP) archive. 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. However, unlike-a, every recorded value in the archive for the selected metric and instances is reported (so no interpolation mode, and the sample interval (-toption) is ignored). See also-a.
At most one of the options-aand-Umay be specified. pick a lane, bestie π
-v,--verboseβ Enable verbose mode. spill the tea β-V,--versionβ Display version number and exit.-w width,--width=widthβ Set the width of each column of output to bewidthcolumns. If not specified, columns are wide enough to accommodate the largest value of the type being printed π-x pattern,--filter=patternβ The givenpatternis sent to the performance metric domain agent for the requestedmetricnamebefore any values are requested. This serves two purposes. Firstly, it provides a mechanism for server-side event filtering that is customisable for individual event streams. In addition, some performance metrics domain agents also use the PMCD store mechanism to provide a basic security model (e.g. for sensitive log files, only a client host withpmStore(3)access would be able to access the event stream).
As pattern may be processed by regcomp(3), it should be a non-empty string. Use . (dot) for a βmatch allβ pattern π
-X,--timestampβ When replaying from an archive, this option requests that the timestamp be reported with additional date information and increased precision (microseconds with a single-X, nanoseconds with an additional-X), for exampleSat May 22 20:32:20.971633 2021instead of the default format, for example20:32:20.971β³-z,--hostzoneβ Use the local timezone of the host that is the source of the performance metrics, as identified by either the-hor the-aor the-Uoptions. The default is to use the timezone of the local host π-Z timezone,--timezone=timezoneβ Usetimezonefor the date and time.Timezoneis in the format of the environment variableTZas described inenviron(7)π°οΈ-?,--helpβ Display usage message and exit. the classic cry for help, but make it helpful π₯Ή
π CAVEATS π
Okay so by default, pmval attempts to display non-integer numeric values in a way that does not distort the inherent precision (rarely more than 4 significant digits), and it tries to maintain a tabular format in the output. But these two goals? They're sometimes in conflict. It's giving two besties fighting over the aux cord. π
In the absence of the -f option (described above, you know the one), the following formats are used for different ranges of numeric values for any metric that is of type PM_TYPE_FLOAT or PM_TYPE_DOUBLE, or any metric that has the semantics of a counter (for which pmval reports the rate converted value):
- Format:
!β Value Range: No values available - Format:
9.999E-99β Value Range:< 0.1 - Format:
0.0β Value Range:0 - Format:
9.9999β Value Range:> 0 and <= 0.9999 - Format:
9.999β Value Range:> 0.9999 and < 9.999 - Format:
99.99β Value Range:> 9.999 and < 99.99 - Format:
999.9β Value Range:> 99.99 and < 999.9 - Format:
9999.β Value Range:> 999.9 and < 9999 - Format:
9.999E+99β Value Range:> 9999
π 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).
For environment variables affecting PCP tools, see pmGetOptions(3).
π«Ά DEBUGGING OPTIONS π«Ά
The -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although ngl, the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning.
Debugging options specific to pmval are as follows:
appl0β initial timeline positioning when-aused
π SEE ALSO π
PCPIntro(1)pmcd(1)pmchart(1)pmdumptext(1)pminfo(1)pmlogdump(1)pmlogger(1)pmrep(1)pmtime(1)PMAPI(3)pmSpecLocalPMDA(3)pmStore(3)pcp.conf(5)pcp.env(5)PMNS(5)
This page is brought to you by Performance Co-Pilot, PCP, and it's PMVAL(1). That's the footer, bestie β slay, periodt. πβ¨
π¦ 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) 2015-2018,2022 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