Installing and using the pcp-zeroconf package for Performance Co-Pilot (PCP)

Updated -

Installation

  • pcp-zeroconf is intended to simplify the installation and configuration of the most commonly needed PCP features in customer support environments, where we need comprehensive long term logging of system level performance data with minimal overheads. The pcp-zeroconf RPM package installs a minimal set of dependencies for the server side data collection and does not include client tools. The package is part of PCP from version 3.11.10 onwards, and is also included in RHEL 7.4 and later, as well as RHEL 8. There is currently no official RHEL6 package.
  • If the system is not registered/subscribed please see: How to register and subscribe a system to the Red Hat Customer Portal using Red Hat Subscription-Manager
  • For RHEL 7 and 8, pcp-zeroconf is in the base repository and no additional repository modifications are needed:
# yum install pcp-zeroconf
  • As the name suggests, that's it - there are no further installation or configurations steps required in order to collect performance data archives. It is important to make sure there is sufficient space on the /var filesystem (or root filesystem if /var is not a submount) for on-going log collection - approximate 5GB will be required on most small servers. On large servers, at least 10GB of space on /var will be used on an on-going basis. By default, PCP archive logs are automatically culled after 14 days - see pmlogger_daily(1) for instructions on changing this if needed.

Services and configuration

  • The post-install scripts enable the pmcd, pmlogger and pmie services under the control of systemd. The performance data are captured below /var/log/pcp and the performance data logs are automatically rolled-over and compressed on a daily basis. If and when required, these logs can be tarred up and attached to a Red Hat customer support case for analysis by Red Hat support engineers.

  • The performance data archive logs captured by pcp-zeroconf include almost all of the Linux kernel metrics for CPU usage, network, filesystem, disk and memory subsystems. In addition, the optional nfs-client, XFS per-device and proc (per-process) PCP agents are enabled by the post-install script and logged by the pmlogger service.

  • The captured logs contain sufficient performance metrics to be used by most of the PCP monitoring tools (see references below).

References

White Papers, Guide Books, Case Studies and Presentations

  • Component
  • pcp

3 Comments

Users are advised to monitor initial disk space usage rates closely. See the /var/log/pcp/*/*/pmlogger.log file(s). On some sites, the pcp-zeroconf configuration has been observed to consume 10GB per day per host, or approximately 40 times (!) the data rate of pcp installations without pcp-zeroconf.

Thanks Frank++ I found that similar issues on a customer's case

Currently, pcp-zeroconf does not gather per-thread info by default. To gather per-thread info, need to run pmstore proc.control.all.threads 1. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=1775373 for more details.