PMDAZSWAP(1)
π 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:pmdazswapis launched bypmcd(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 thepmdazswapagent π οΈ$PCP_PMDAS_DIR/zswap/Removeβ undo installation script for thepmdazswapagent π§Ή$PCP_LOG_DIR/pmcd/zswap.logβ default log file for error messages frompmdazswapπ
π¦ 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
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-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.1.0-6.fc44 Β· 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 questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2014 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms