PCP.CONF(5)

๐Ÿ“ฆ
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

๐Ÿ’– PCP.CONF ๐Ÿ’–

okay bestie, gather round, we're doing the Performance Co-Pilot configuration and environment file today and honestly? it's giving foundational. this is pcp.conf, from the File Formats Manual, and she is lowkey the backbone of the whole PCP situation. ๐ŸŽ€


โœจ NAME โœจ

pcp.conf โ€” the Performance Co-Pilot configuration and environment file ๐Ÿฆ‹


๐ŸŒธ SYNOPSIS ๐ŸŒธ

/etc/pcp.conf

๐Ÿ’… DESCRIPTION ๐Ÿ’…

so here's the tea. when you're using Performance Co-Pilot (PCP) tools and utilities, and when you're calling PCP library functions, there's a whole standard set of environment variables that get defined in /etc/pcp.conf. iconic behaviour. โœจ

these variables are generally there to specify the location of all the various PCP pieces in the file system, and they can get loaded into shell scripts by sourcing the /etc/pcp.env(5) shell script, and queried by C/C++ programs using the pmGetConfig(3) library function. versatile queen. ๐Ÿ‘‘

but here's the important bit bestie: if a variable is already defined in the environment, the values in pcp.conf do not override those values. i.e. the values in pcp.conf serve as installation defaults only. she's a fallback, not a fighter. ๐Ÿ’–

both the pcp.env and pcp.conf files are expected to be found in /etc by default. if required, the pcp.conf file may be relocated and PCP_CONF set in the environment to specify the full path to the new location. but the pcp.env file can not be relocated โ€” this is the only hard coded path required by PCP. no moving her, she's planted. ๐ŸŒฑ


๐ŸŽ€ the syntax rules for pcp.conf are as follows ๐ŸŽ€

  1. the general syntax is
PCP_VARIABLE_NAME=variable value to end of line
  1. lines that begin with # and all blank lines are ignored. (self-care lines, we love her ๐Ÿงš)
  2. all variables must be prefixed with PCP_. this is a security issue โ€” variables that do not have this prefix will be silently ignored. not a warning, not an error, just silence. ๐Ÿ’€
  3. there should be no space between the variable name and the literal = and no space between the = and the variable value (unless the value actually starts with a space). this is required because the pcp.conf file may be sourced directly by Makefiles as well as interpreted by the pcp.env script and the pmGetConfig function. everybody's reading her, so she has to be legible to all of them. ๐Ÿ”ฅ
  4. variable values may contain spaces and should not be quoted. the pcp.env script automatically quotes all variable values from the character immediately following the = through to the end of the line. she handles that for you, don't do it yourself. ๐Ÿ’…

for further details and an explanation of the use of each variable, see the comments in the /etc/pcp.conf file itself. she's annotated, she's thorough, she ate. ๐Ÿ“


๐ŸŒˆ ENVIRONMENT ๐ŸŒˆ

  • PCP_CONF โ€” specifies an alternative path to the pcp.conf file. โœจ

๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

PCPIntro(1), pmconfig(1), PCPIntro(3), PMAPI(3), pmGetConfig(3) and pcp.env(5).


and that's the whole vibe check bestie ๐Ÿ’œ this has been the Performance Co-Pilot PCP page, PCP.CONF(5), mwah, go configure something gorgeous ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from