PMDAJBD2(1)
π PMDAJBD2 π
okay bestie, welcome to the General Commands Manual section, page PMDAJBD2(1) β yes that's the whole title, she's long, she's iconic, she's a whole vibe π
β¨ NAME β¨
pmdajbd2 β the journal block device (JBD) performance metrics domain agent (PMDA). she watches the journal. she reports the numbers. that's the job π
πΈ SYNOPSIS πΈ
$PCP_PMDAS_DIR/jbd2/pmdajbd2 [-D debug] [-d domain] [-l logfile] [-j
path] [-U username]
π¦ DESCRIPTION π¦
so pmdajbd2 is a Performance Metrics Domain Agent (PMDA), and what she does is pull performance metrics out of the Journal Block Device subsystem (version 2) inside the Linux kernel. lowkey a big deal. the kernel hands these metrics out through procfs files, and there's like one file per block device, which is very organized of her fr fr.
the JBD2 subsystem is used by a bunch of filesystems, including ext3, ext4 and ocfs2 β so if you're running any of those, this is your girl π
the jbd2 PMDA exports metrics that measure detailed journal transaction information, like time spent waiting and locked, request rates, blocks used, and so on. it's giving very thorough. obsessed. β¨
here's the quick rundown of the pmdajbd2 command line options, and just so we're clear β these are only relevant when running the PMDA as a daemon, not as a shared library. iykyk π«Ά
-dβ the performance metrics domain number you put here has to be unique and consistent, and honestly this is absolutely crucial, no cap. what that means:domainshould be different for every PMDA on the one host, and the same domain number should be used for the same PMDA on all hosts. consistency is the moment π-lβ where the log file lives. by default, when running as a daemon, a log file namedjbd2.loggets written in the current directory from whenpmdajbd2is started, i.e.$PCP_LOG_DIR/pmcd. if the log file can't be created or isn't writable, output goes to standard error instead. and when running in shared library mode, diagnostic information gets written into the pmcd log file, namely$PCP_LOG_DIR/pmcd/pmcd.log. she adapts π-jβ lets you specify an alternate path to the jbd2 statistics files. the default path is/proc/fs/jbd2. custom paths? we love to see it π-Uβ the user account to run the agent under. the default is the unprivileged"pcp"account in current versions of PCP, but in older versions the superuser account ("root") was used by default. glow-up behavior honestly π
π INSTALLATION π
this PMDA is installed by default, and in shared library mode (rather than as a separate daemon to pmcd(1)). which means the names, help text and values for the jbd2 performance metrics should always be available. always on, always serving π
if you don't use these metrics and you want to remove this PMDA, do the following as root:
# cd $PCP_PMDAS_DIR/jbd2
# ./Remove
and if you want to enable the installation again, do the following as root:
# cd $PCP_PMDAS_DIR/jbd2
# ./Install
pmdajbd2 is launched by pmcd(1) and should never be executed directly, okay?? do not do it. main character does not walk herself onto the stage π the Install and Remove scripts notify pmcd(1) when the agent is installed or removed, so the whole system stays in the loop. periodt.
π FILES π
$PCP_PMCDCONF_PATHβ command line options used to launchpmdajbd2$PCP_PMDAS_DIR/jbd2/helpβ default help text file for the jbd2 metrics$PCP_PMDAS_DIR/jbd2/Installβ installation script for thepmdajbd2agent$PCP_PMDAS_DIR/jbd2/Removeβ undo installation script for thepmdajbd2agent$PCP_LOG_DIR/pmcd/jbd2.logβ default log file for error messages and other information frompmdajbd2
π 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). configurable, flexible, gorgeous π
π§ DEBUGGING OPTIONS π§
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems β though ngl, the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. so if you're confused, that's not a you problem, it's a feature π
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 get your list bestie, she's right there β¨
π SEE ALSO π
PCPIntro(1), pmcd(1), pcp.conf(5) and pcp.env(5).
okay that's the whole page, you ate it, no crumbs π«Ά
Performance Co-Pilot π PCP π and yes, we were on the PMDAJBD2(1) page the entire time β slay, bye bestie πβ¨
π¦ 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 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms