PMDABTRFS(1)
π PMDABTRFS π
okay bestie, buckle up, we're talking about pmdabtrfs β the btrfs filesystem performance metrics domain agent, aka a PMDA. It lives in section 1 of the General Commands Manual. She's giving very "quietly keeping your filesystem's receipts" energy and honestly? obsessed. π«Ά
β¨ SYNOPSIS β¨
$PCP_PMDAS_DIR/btrfs/pmdabtrfs [-D debug] [-d domain] [-l logfile]
that's it. that's the whole entrance. π
πΈ DESCRIPTION πΈ
So pmdabtrfs is a Performance Metrics Domain Agent (PMDA, say it with me) and what she does is extract performance metrics from the btrfs filesystem via sysfs β specifically by peeking at /sys/fs/btrfs. nosy in the best way, no cap.
Here's the tea on what she exports, and she does NOT skimp:
- filesystem information (label, sizes, generation, checksum algorithm)
- transaction commit statistics
- space allocation for data, metadata and system block groups
- per-device error statistics
- async discard statistics
All of that. Every crumb. β¨
The metrics are organized into two instance domains:
- one for btrfs filesystems β keyed by UUID
- one for devices β keyed by UUID::devid
And because she's thoughtful like that, labels are provided for each instance, including the filesystem UUID, label, and device ID where applicable. π
ok now, a brief description of the pmdabtrfs command line options, because yes there are more than the synopsis showed you:
-dβ the performance metrics domain number, and it must be set to a unique value. unique. don't be out here reusing numbers, that's not the vibe. π«-lβ location of the log file. By default, a log file namedbtrfs.logis written in the current directory ofpmcd(1)whenpmdabtrfsis started, i.e.$PCP_LOG_DIR/pmcd. And if the log file cannot be created or is not writable? Then output is written to the standard error instead. she adapts. π
π INSTALLATION π
The btrfs PMDA requires a Linux system with one or more mounted btrfs filesystems. That's the prerequisite, that's the whole thing. The PMDA reads statistics from sysfs and β good news bestie β does not require root privileges. no sudo, no drama. π§
Install the PMDA using the Install script:
# cd $PCP_PMDAS_DIR/btrfs
# ./Install
To remove the PMDA use the Remove script:
# cd $PCP_PMDAS_DIR/btrfs
# ./Remove
install, uninstall, iconic either way. β¨
π₯ DEBUGGING OPTIONS π₯
The -D or --debug option enables the output of additional diagnostics on stderr to help triage problems. Fair warning though: the information is sometimes cryptic and is primarily intended to provide guidance for developers rather than for end-users. so like, it's giving secret dev handshake, iykyk. π
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. go look, she left you a whole menu.
Debugging options specific to pmdabtrfs are as follows:
appl0β warn if the btrfs sysfs directory cannot be found π
π¦ ENVIRONMENT π¦
The BTRFS_PATH environment variable can be set to override the default sysfs path (/sys/fs/btrfs) for testing purposes. for testing purposes. we see you. π
π SEE ALSO π
and that's the whole page, bestie!! π this manual came to you straight from Performance Co-Pilot (PCP) β she's a PCP girlie through and through, section 1, and she ate. 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) 2026 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms