pcp
[Top] [All Lists]

Re: [pcp] high frequency metrics collection and trace

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] high frequency metrics collection and trace
From: Jun Wang <junwang123@xxxxxxxxx>
Date: Mon, 17 Dec 2012 09:22:48 -0800
Cc: PCP <pcp@xxxxxxxxxxx>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=cHAHQo0fKTbjOK/CFUz7ZzfA3bXIjpR+IYB9y/hHYR4=; b=yZ4Huw7ZBckCitgbUtc1vnrUxdDC8JnY434JdcWNJi4Zad1yC3BzavJzGc3QmSQ6zG qNenrlCykLeWi1zug0Ap/2z51UCcGME5AwggLwF/AV+CvJaUCv3gxKHUicr5r1KXpn3i reaUx8Ap/dNu6oghtRB0LmHp9J2NwRPC1msqQ1lcBNUwmXh6ZEnvQnJdcSpkzMEvZblt QkLTC/j6k5HxDKL0+JmKvpe/ZNR7Hy3WuPQzIoo6nFwK8R0HjHRP8VJSh4ae6gmjgdjq nD3Gmook8t6eRCrJWFUChS8SNENv8S0sxk/QaQldik1udJtuWyfg7bqdDuLcY/1AgHkK t8ag==
In-reply-to: <1355523024.5399.62.camel@xxxxxxxxxxxxxxxxxxxxxxx>
References: <C1D8F78C-DAEA-4ABB-A12E-D195DEE4BA6B@xxxxxxxxx> <1355523024.5399.62.camel@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Ken,

Thanks a lot for the information. Any information on the event record service?
Is it related to the "Event Logging" on the following link at all?
http://oss.sgi.com/projects/pcp/pcp-gui.git/man/html/howto.systemlog.html

Thanks,
Jun

On Fri, Dec 14, 2012 at 2:10 PM, Ken McDonell <kenj@xxxxxxxxxxxxxxxx> wrote:
On Fri, 2012-12-14 at 01:53 -0800, Jun Wang wrote:
> Folks,
>
> In terms of the add-hoc high frequency
> stats/metrics collection, do we have a known upper limit on the
> frequency to collect and display the metrics? Can we sample every 100
> milliseconds or with even higher frequency?

This is a "length of the piece of string" question ... not all metrics
have equal cost to instantiate (collect), not all fetches return the
same number of metrics and values and not all CPUs are the same speed.
Sampling in the 100's of msec range is certainly feasible for many
combinations.

> What about tracing with trace PMDA? How fast can an instrumented
> application push data through libpcp_trace? Is the PDU buffer size on
> the trace PMDA side configurable?

The trace PMDA was never intended for high frequency sampling
(annotation of bash scripts is a common use), so I would not consider
this for high throughput.  More interesting would be the relatively
recent PMAPI extensions for event records ... Nathan can probably expand
on this better than I.

> Does the PMAPI have to use fetch/pull to collect data with certain
> fixed frequency? I assume that PMCD cannot push data to the monitoring
> side via PMAPI.

There is very little client state maintained at pmcd, so clients are
free to fetch at whatever frequency they desire and indeed pmlogger and
pmie collect different groups of metrics at different frequencies.

Pushing from pmcd is nver going to happen (this is not an SNMP trap
model!).

> However, for the trace PMDA case, does it make sense to collect
> multiple samples in the buffer, each with a different timestamp, and
> have the monitoring tools on the other side, such as pmchart, to
> display multiple samples, per every fetch/pull, based on the
> timestamp? Just a thought on one option to increase the sample
> frequency without increasing the fetch/pull frequency.

The event record services address just this issue.  Individual event
records are timestamped, even though a group of them are delivered in a
batch to the PMAPI client.


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