PCP-IOSTAT(1)
π pcp-iostat β report block I/O statistics β¨
okay so bestie, this is pcp-iostat, aka pmiostat, living in section 1 of the manual (General Commands Manual). It's your little group chat for block I/O stats and it eats every single time. π«Ά
πΈ NAME πΈ
pmiostat, pcp-iostat β report block I/O statistics π
β¨ SYNOPSIS β¨
pcp [pcp options] iostat [-u?] [-G method] [-P precision] [-R pattern]
[-x [dm][,t][,h][,noidle]]
no cap, that's the whole vibe. lowercase, tidy, iconic. π
π¦ DESCRIPTION π¦
pcp-iostat reports I/O statistics for SCSI devices (that's the default, bestie) or for other devices β but only if you pass the -x option. Choose your fighter. π
π OPTIONS π
so when you invoke this via the pcp(1) command, these pcp options become indirectly available: -A/--align, -a/--archive, -h/--host, -O/--origin, -S/--start, -s/--samples, -T/--finish, -t/--interval, -v/--version, -Z/--timezone and -z/--hostzone. If you want the full rundown on those, go read PCPIntro(1) β it's giving encyclopedia but in a good way. π
The extra command line options that are just for pcp-iostat are:
-G method,--aggregate=methodβ says that stats for device names matching the regular expression you gave with the-Rregex option should be aggregated according tomethod. Just so we're clear: this is aggregation based on matching device names, not temporal aggregation. When-Gis used, the device name column is reported asmethod(regex), like fr β if you say-G sum -R 'sd(a|b)$', the device column will besum(sd(a|b)$)and the summed statistics forsdaandsdbget reported in the remaining columns. If-Gis specified but-Ris not, then the default regex is.*, i.e. it matches all device names. Ifmethodissumthen the statistics are summed β and yes that includes the%utilcolumn, which may therefore exceed 100% if more than one device name matches. π Ifmethodisavgthen the statistics are summed and then averaged by dividing by the number of matching device names. Ifmethodisminormax, the minimum or maximum statistics for matching devices are reported, respectively.-P N,--precision=Nβ this indicates the precision (number of decimal places) to report. The default precisionNmay be set to something other than the default (2). Note that theavgrq-szandavgqu-szfields are always reported withN+1decimals of precision. These fields typically have values less than 1, so it's giving tiny-numbers-need-extra-glow. β¨-R pattern,--regex=patternβ restricts the report to device names matching a regular expressionpattern. The pattern you give is searched as a perl style regular expression, and it will match any portion of a device name. e.g.'^sd[a-zA-Z]+'will match all device names starting with'sd'followed by one or more alphabetic characters. e.g.'^sd(a|b)$'will only match'sda'and'sdb'. e.g.'sda$'will match'sda'but not'sdab'. See also the-Goption for aggregation options. π-u,--no-interpolationβ when replaying a set of archives, by default values are reported according to the requested sample interval (the-toption), not according to the actual interval recorded in the archive(s). Without this option PCP interpolates the values to be reported based on the records in the set of archives, which is particularly useful when the-toption is used to replay a set of archives with a longer sampling interval than the one the archive(s) was originally recorded with. With the-uoption, uninterpolated reporting is enabled β every value is reported according to the native recording interval in the set of archives. When-uis specified, the-toption makes no sense and is incompatible, because the replay interval is always the same as the recording interval in the set of archive. In addition,-uonly makes sense when replaying archives, see the-aoption onPCPIntro(1), and so if-uis specified then-amust also be specified. no exceptions bestie, that's the rule. π-V,--versionβ display version number and exit. simple. clean. iconic. π-x comma-separated-optionsβ specifies a comma-separated list of one or more extended reporting options, as follows:dmβ report statistics for device-mapper logical devices instead of SCSI devicestβ prefix every line in the report with a timestamp inctime(3)formathβ omit the heading, which is otherwise reported every 24 samplesnoidleβ Do not display statistics for idle devices
-?,--helpβ display usage message and exit. the classic. π«Ά
π REPORT π
The columns in the pcp-iostat report have the following interpretation, and yes we're doing all of them, every single one, because you deserve the full picture:
- Timestamp β When the
-x toption is specified, this column is the timestamp inctime(3)format. - Device β Specifies the scsi device name, or if
-x dmis specified, the device-mapper logical device name. When-Gis specified, this is replaced by the aggregation method and regular expression β see the-Gand-Roptions above. rrqm/sβ The number of read requests expressed as a rate per-second that were merged during the reporting interval by the I/O scheduler.wrqm/sβ The number of write requests expressed as a rate per-second that were merged during the reporting interval by the I/O scheduler.r/sβ The number of read requests completed by the device (after merges), expressed as a rate per second during the reporting interval.w/sβ The number of write requests completed by the device (after merges), expressed as a rate per second during the reporting interval.rkB/sβ The average volume of data read from the device expressed as KBytes/second during the reporting interval.wkB/sβ The average volume of data written to the device expressed as KBytes/second during the reporting interval.avgrq-szβ The average I/O request size for both reads and writes to the device expressed as Kbytes during the reporting interval.avgqu-szβ The average queue length of read and write requests to the device during the reporting interval.awaitβ The average time in milliseconds that read and write requests were queued (and serviced) to the device during the reporting interval.r_awaitβ The average time in milliseconds that read requests were queued (and serviced) to the device during the reporting interval.w_awaitβ The average time in milliseconds that write requests were queued (and serviced) to the device during the reporting interval.%utilβ The percentage of time during the reporting interval that the device was busy processing requests. A value of100%indicates device saturation. saturated. fully booked. no notes. π₯
π§ 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 pcp option enables the output of additional diagnostics on stderr to help triage problems, although 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.
ngl bestie, this one is for the devs. if it looks cryptic that's because it is. π
π SEE ALSO π
PCPIntro(1), pcp(1), iostat2pcp(1), pmcd(1), pmchart(1), pmlogger(1), pcp.conf(5) and pcp.env(5).
go read them, they're all slay in their own way. π
and that's the whole page, bestie!! π this came to you courtesy of Performance Co-Pilot, the PCP crew, from the PCP-IOSTAT(1) era of the General Commands Manual β go forth and iostat, you absolute main character. 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) 2014-2016,2019 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms