PMDAZSWAP(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

πŸ’– PMDAZSWAP πŸ’–

okay so bestie, we're in the pmdazswap(1) page β€” that's the General Commands Manual, one of the Performance Co-Pilot crew β€” and it's literally all about the zswap PMDA. let's get into it πŸ¦‹

✨ NAME ✨

pmdazswap β€” the zswap (compressed swap) PMDA. that's it, that's the name, no notes πŸ’…


🌸 DESCRIPTION 🌸

so pmdazswap is a Performance Metrics Domain Agent (PMDA) β€” and what it does is export metric values about compressed swap operation, as tracked by the zswap Linux kernel module. it's giving observability, it's giving kernel-module-witness energy πŸ‘‘

now, what even is zswap? okay so zswap is a lightweight compressed cache for swap pages. what it does is take pages that are in the process of being swapped out and it attempts to compress them into a dynamically allocated RAM-based memory pool. yes, really. it trades CPU cycles for potentially reduced swap I/O 🌈 and lowkey that tradeoff can also result in a performance improvement if reads from the compressed cache are faster than reads from a swap device. main character tradeoff fr fr.

this PMDA exports metrics about:

  • pool size 🫧
  • number of pages stored πŸ“
  • and various counters for the reasons pages are rejected πŸ’€

πŸŽ€ INSTALLATION πŸŽ€

install the zswap PMDA by using the Install script as root:

# cd $PCP_PMDAS_DIR/zswap
# ./Install

to uninstall, do the following as root:

# cd $PCP_PMDAS_DIR/zswap
# ./Remove
heads up bestie: pmdazswap is launched by pmcd(1) and should never be executed directly. do not do it. i'm so serious πŸ™ˆ

the Install and Remove scripts notify pmcd(1) when the agent is installed or removed β€” so they handle the whole vibe check for you ✨


πŸ’œ FILES πŸ’œ

  • $PCP_PMDAS_DIR/zswap/Install β€” installation script for the pmdazswap agent πŸ› οΈ
  • $PCP_PMDAS_DIR/zswap/Remove β€” undo installation script for the pmdazswap agent 🧹
  • $PCP_LOG_DIR/pmcd/zswap.log β€” default log file for error messages from pmdazswap πŸ““

πŸ¦‹ 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. and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5) β€” iykyk 🌟


⭐ SEE ALSO ⭐

PCPIntro(1) and pmcd(1). that's the reading list, bestie, go read them 🫢


okay and that's the whole page! this one came from the Performance Co-Pilot peeps (that's the source β€” PCP, and the manual section is PMDAZSWAP(1) in General Commands Manual) πŸ’– slay, you now know everything about compressed swap metrics. periodt βœ¨πŸ’…

πŸ“¦ where this page comes from