pcp
[Top] [All Lists]

Re: pmlogger(1) task_t optimisations

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: pmlogger(1) task_t optimisations
From: fche@xxxxxxxxxx (Frank Ch. Eigler)
Date: Wed, 15 Jan 2014 09:52:25 -0500
Cc: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <223161620.2279579.1389740441989.JavaMail.root@xxxxxxxxxx> (Nathan Scott's message of "Tue, 14 Jan 2014 18:00:41 -0500 (EST)")
References: <1086676365.1292166.1389671284562.JavaMail.root@xxxxxxxxxx> <52D4E2C9.4010205@xxxxxxxxxxxxxxxx> <223161620.2279579.1389740441989.JavaMail.root@xxxxxxxxxx>
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)
nathans wrote:

> [...]
> An ideal outcome would have been 1 task_t matching just that
> final block - one pmFetch PDU, one sample on the server side,
> one timestamp, and one result logged.

Right.  One way to do this would be to have the parser generate one
task_t per "(permission,time)" tuple rather than build duplicates
per config-language { } group.  Then as we parse metrics, they'd get
dropped into the one-or-few distinct task_t's, duplicate-eliminated
as we go, and optfetched then or once at the end.

- FChE

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