PCP-DMCACHE(1)

πŸ“¦
version 7.2.2 Β· 2 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… PCP-DMCACHE β€” report on logical storage device caches

okay bestie, welcome to the pcp-dmcache page πŸ’– (it lives in the General Commands Manual section of the PCP docs, iykyk). also known as pcp-lvmcache, and we're gonna talk about why they're literally the same thing. buckle up πŸŽ€


✨ NAME ✨

pcp-dmcache, pcp-lvmcache β€” report on logical storage device caches 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

pcp [pcp options] dmcache [-iRV?] [device ...]

πŸ‘‘ DESCRIPTION πŸ‘‘

pcp-dmcache spills the tea on what any configured Device Mapper Cache targets are up to. the info it reports includes:

  • device IOPs πŸ’«
  • cache and metadata device utilization
  • hit and miss rates and ratios β€” for both reads and writes β€” for each cache device

pcp-lvmcache (that's Logical Volume Manager cache, for the uninitiated) is an exact synonym for pcp-dmcache (Device Mapper cache). same tool, different name, iconic behavior honestly 🫢

by default, pcp-dmcache reports on all available cache target devices β€” one line each, per sample 🧚 but no cap, you can restrict it to specific devices by listing them on the command line.


🌈 OPTIONS 🌈

so when you invoke this through the pcp(1) command, a whole squad of pcp options becomes indirectly available:

  • -h/--host
  • -a/--archive
  • -O/--origin
  • -s/--samples
  • -t/--interval
  • -Z/--timezone

…and several other pcp options too πŸ‘€. for a complete description of all of those, go read PCPIntro(1) β€” it's giving reference material, bestie.

now the additional command line options that are special to pcp-dmcache:

  • -i, --iops β€” displays total read and write operations instead of the default cache hit ratio πŸ”₯
  • -R, --repeat β€” changes the frequency at which the column heading is displayed. by default, a header shows up after every tenth sample ✨
  • -V, --version β€” display version number and exit. short and sweet πŸ’…
  • -?, --help β€” display usage message and exit. she's helpful like that πŸ™ˆ

πŸ“ PCP ENVIRONMENT πŸ“

environment variables with the prefix PCP_ are used to parameterize the file and directory names that PCP uses. 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) β€” that's the one you want, fr fr πŸ’œ

🌸 SEE ALSO 🌸

PCPIntro(1), pcp(1), pmdadm(1), dmsetup(1) and lvmcache(7). go read them, they slay too ⭐


okay that's the whole page, bestie!! πŸ’– this was brought to you by Performance Co-Pilot β€” the PCP girlies β€” and it's the PCP-DMCACHE(1) era, periodt πŸ‘‘πŸ¦‹ no date stamp on this one but you know the vibe, mwah πŸ’‹

πŸ“¦ where this page comes from