pcp
[Top] [All Lists]

Re: sosreport and pcp

To: Michele Baldessari <michele@xxxxxxxxxx>
Subject: Re: sosreport and pcp
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Tue, 29 Apr 2014 15:28:18 -0400
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <20140429141502.GD15985@xxxxxxxxxxxxxxx> (Michele Baldessari's message of "Tue, 29 Apr 2014 15:15:02 +0100")
References: <20140429141502.GD15985@xxxxxxxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
Hi, Michele -

michele wrote:

> [...]
> I am in the process of adding support for PCP in sosreport[1]. [...]
> /var/log/pcp, /var/lib/pcp/config, /etc/pcp,
> /etc/pcp.conf, /etc/pcp.env, /etc/pcp.sh

Note that /etc/pcp.conf is an input to .env / .sh; the latter are just
non-adustable shell scripts.  The variables set inside /etc/pcp.conf
can redirect the location of many other bits.  For example, instead of
hardcoding the /var/log/pcp directory name, sosreport -might- consider
getting the PCP_LOG_DIR value out of /etc/pcp.conf.


> [...]  I'd imagine that extra carefulness needs to be taken for
> /var/log/pcp in order to avoid collecting stuff (logger data?) that
> is bigger than X unless explicitely asked for. I assume they can
> grow moderately big, although I don't have any real-world data on
> that.

The bulk archives (*.[0-9]*, .meta, .index files) certainly grow big:
10-20 MB per day per host, kept by default for 14 days.  It can blow
up multiplicatively for longer-than-default or multiple-host
logging.  OTOH, the files are highly (90%+) compressible, and provide
a good detailed performance overview of the host(s).

Other files in there are small and valuable for diagnosing problems
with pcp itself.

- FChE

<Prev in Thread] Current Thread [Next in Thread>