KERNEL_PMDAS(1)
π¦ KERNEL_PMDAS(1) π¦
General Commands Manual π okay bestie, this one is all about the kernel PMDAs
β¨ NAME β¨
okay so the NAME lineup is pmdaaix, pmdadarwin, pmdafreebsd, pmdalinux, pmdanetbsd, pmdaopenbsd, pmdasolaris and pmdawindows π§ and they're all operating system kernel performance metrics domain agents. A whole squad, one for each platform π
β¨ SYNOPSIS β¨
here's how each one gets called π
$PCP_PMDAS_DIR/aix/pmdaaix [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/darwin/pmdadarwin [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/freebsd/pmdafreebsd [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/linux/pmdalinux [-A] [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/netbsd/pmdanetbsd [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/netbsd/pmdaopenbsd [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/solaris/pmdasolaris [-D debug] [-d domain] [-l logfile] [-U username]
$PCP_PMDAS_DIR/windows/pmdawindows [-D debug] [-d domain] [-l logfile] [-U username]
β¨ DESCRIPTION β¨
every supported platform has its own kernel Performance Metrics Domain Agent (PMDA), and that's the one that pulls performance metrics straight out of the kernel for that platform π The metrics are super platform-specific and so are the ways to grab them. Usually that means special system calls, or reading files from kernel virtual filesystems like the Linux sysfs and procfs filesystems π
the kernel PMDA is literally one of the most critical parts of a PCP install, so it has to be as efficient and reliable as humanly possible π In every install, the default kernel PMDA gets installed as a shared library, which means it runs directly inside the pmcd(1) process. That cuts down the overhead of querying the metadata and values for these metrics, since no message passing is required π«Ά
unlike a lot of other PMDAs, the kernel PMDA exports a bunch of metric namespace subtrees: kernel, network, swap, mem, ipc, filesys, nfs, disk and hinv (hardware inventory) π
even though they usually run as shared libraries, most installs also include a stand-alone executable for the kernel PMDA. It's there for profiling and debugging activities, like with dbpmda(1) for example π₯ In that case (but not for shared libraries), these command line options are available:
-Aβ disables the credentials that PMAPI client tools provide, so everything just runs under therootaccount π¬ Only turn this on if you really get the risks and you're sure every remote access will come from benevolent users. If it's enabled, unauthenticated remote PMAPI clients can access potentially sensitive performance metric values that an unauthenticated PMAPI client usually wouldn't be able to. Refer toCVE-2012-3419for additional details.
π Danger zone, bestie: with -A, unauthenticated remote clients can see stuff they normally couldn't. Only do this if you're 100% sure everyone is benevolent.
-dβ the performance metrics domain number you pass here has to be unique and consistent π’ Every PMDA on the one host needs its own domain number, and the same PMDA should use the same domain number on all hosts π«Ά-lβ where the log file lives π By default, a log file named[platform].loggets written in the current directory ofpmcd(1)whenpmda[platform]starts, i.e.$PCP_LOG_DIR/pmcd. If that log file can't be created or isn't writable, the output goes to standard error instead.-Uβ the user account the agent runs under π The default is either the privilegedrootaccount on some platforms (Linux, for example) or the unprivilegedpcpaccount (wherever possible).
β¨ INSTALLATION β¨
access to the names, help text and values for the kernel performance metrics is on by default π Unlike most other agents, you don't have to do anything to enable them, and they should not be removed π
β¨ FILES β¨
$PCP_PMDAS_DIR/[platform]/helpβ the default help text file for the kernel metrics π$PCP_LOG_DIR/pmcd/[platform].logβ the default log file for error messages and other information from the kernel PMDA πͺ΅
β¨ PCP ENVIRONMENT β¨
env vars with the PCP_ prefix are how PCP parameterizes the file and directory names it uses π§ On each installation, /etc/pcp.conf holds the local values for these variables. If you want a different config file, $PCP_CONF can point to it, as described in pcp.conf(5).
β¨ DEBUGGING OPTIONS β¨
-D or --debug turns on extra diagnostics on stderr to help triage problems π Heads up, the info is sometimes kinda cryptic and is mainly meant for developers rather than end-users π debug is a comma separated list of debugging options. Use pmdbg(1) with the -l option to get the list of available debugging options and what they mean.
for pmdaaix, pmdafreebsd, pmdanetbsd, pmdaopenbsd and pmdasolaris, the debugging options are:
appl0β verbose diagnostics π£οΈ
and for pmdalinux:
appl1β disk-related metrics πΏappl8β filesys metrics π
β¨ SYNOPSIS β¨
nothing to see here, this one's empty π«
β¨ SEE ALSO β¨
PCPIntro(1), dbpmda(1), pmcd(1), pcp.conf(5) and pcp.env(5) π¦
That's the tea π Brought to you by Performance Co-Pilot, version PCP, page KERNEL_PMDAS(1). Stay iconic, 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 claude-haiku-5-5 on : a language model's rewrite of the original, under its terms