PCP-TAPESTAT(1)
π PCP-TAPESTAT β the tea on your tape drive's I/O π
okay bestie, this is the manual page for pcp-tapestat from the General Commands Manual set, and no cap, it's giving "let's spy on your tape devices" energy. pull up a chair π
β¨ NAME β¨
pcp-tapestat β report tape I/O statistics ποΈβ¨
πΈ SYNOPSIS πΈ
pcp [pcp options] tapestat [-u?] [-G method] [-P precision] [-R
pattern] [-x [t][,h][,noidle]]
π¦ DESCRIPTION π¦
pcp-tapestat reports I/O statistics for tape devices. that's it, that's the whole vibe π
π OPTIONS π
when you invoke it via the pcp(1) command, a whole lil squad of pcp options becomes indirectly available to you, bestie: -A/--align, -a/--archive, -h/--host, -O/--origin, -S/--start, -s/--samples, -t/--interval, -T/--finish, -V/--version, -Z/--timezone and -z/--hostzone. for the full description of all of those, go read PCPIntro(1) β it's the main character of this whole situation π
and here's the extra lineup that's actually specific to pcp-tapestat:
-G method,--aggregate=methodβ says "hey, aggregate the stats for the device names that match the regular expression you gave with the-Rregex option, and do it according to method". heads up though: this is aggregation based on matching device names, not temporal aggregation, okay? don't get it twisted π
when -G is used, the device name column gets reported as method(regex). so like, if you run -G sum -R 'st(0|1)$', the device column becomes sum(st(0|1)$) and the summed statistics for st0 and st1 show up in the remaining columns. slay β¨
if -G is specified but -R is not, then the default regex is .*, i.e. it matches all device names. if method is sum then the statistics are summed. if method is avg then the statistics are summed and then averaged by dividing by the number of matching device names. and if method is min or max, then the minimum or maximum statistics for matching devices are reported, respectively. math girlies stay winning π
-P N,--precision=Nβ this sets the precision, aka the number of decimal places to report. the default precision N can be set to something other than the default (2). note that theavgrq-szandavgqu-szfields are always reported withN+1decimals of precision β those fields typically have values less than 1, so they need the extra room π₯Ί-R pattern,--regex=patternβ restricts the report to device names matching a regular expression pattern. the pattern is searched as a perl style regular expression, and it'll match any portion of a device name. examples, because we love examples:'^st[0-9]+'will match all device names starting with'st'followed by one or more numbers.'^st(0|1)$'will only match'st0'and'st1'.'st0$'will match'st0'but not'st1'.
also go peek at the -G option for the aggregation options, they're besties π«Ά
-u,--no-interpolationβ okay so when you're 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 super useful when you use the-toption 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 π―
and now the fine print, bestie, read it: 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. plus,-uonly makes sense when replaying archives (see the-aoption onPCPIntro(1)), and so if-uis specified then-amust also be specified. periodt π
-V,--versionβ display the version number and exit. bye π-x comma-separated-optionsβ specifies a comma-separated list of one or more extended reporting options, as follows:tβ prefix every line in the report with a timestamp inctime(3)format,hβ omit the heading, which is otherwise reported every 24 samples,noidleβ Do not display statistics for idle devices.
-?,--helpβ display the usage message and exit π₯°
π REPORT π
the columns in the pcp-tapestat report mean the following, and yes we're going through all of them:
- Timestamp β when the
-x toption is specified, this column is the timestamp inctime(3)format β° - Device β specifies the tape device name. when
-Gis specified, this is replaced by the aggregation method and regular expression β see the-Gand-Roptions above π r/sβ the number of reads issued, expressed as the number per second averaged over the interval.w/sβ the number of writes issued, expressed as the number per second averaged over the interval.kb_r/sβ the amount of data read, expressed in kilobytes per second averaged over the interval.kb_w/sβ the amount of data written, expressed in kilobytes per second averaged over the interval.r_pctβ read percentage wait: the percentage of time over the interval spent waiting for read requests to complete. the time is measured from when the request is dispatched to the SCSI mid-layer until it signals that it completed πw_pctβ write percentage wait: the percentage of time over the interval spent waiting for write requests to complete. the time is measured from when the request is dispatched to the SCSI mid-layer until it signals that it completed πo_pctβ overall percentage wait: the percentage of time over the interval spent waiting for any I/O request to complete (read, write, and other).Rs/sβ the number of I/Os, expressed as the number per second averaged over the interval, where a non-zero residual value was encountered.o_cntβ the number of I/Os, expressed as the number per second averaged over the interval, that were included as "other". Other I/O includesioctlcalls made to the tape driver and implicit operations performed by the tape driver such as rewind on close (for tape devices that implement rewind on close). it does not include any I/O performed using methods outside of the tape driver (e.g. viasgioctls) π«
π± 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 ngl, the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users, so don't stress if it reads like a riddle π
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 π
π«Ά SEE ALSO π«Ά
PCPIntro(1), pcp(1), pmcd(1), pmchart(1), pmlogger(1), pcp.conf(5) and pcp.env(5).
and that's the whole page, bestie!! this lil masterpiece comes to you from Performance Co-Pilot β PCP, the one and only π β and it's filed under PCP-TAPESTAT(1) in the General Commands Manual. go forth and tape-stat, you've got this πβ¨π
π¦ 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