pcp
[Top] [All Lists]

Re: [pcp] pmda instance cache operations

To: kenj@xxxxxxxxxxxxxxxx
Subject: Re: [pcp] pmda instance cache operations
From: Max Matveev <makc@xxxxxxxxx>
Date: Mon, 25 Jan 2010 08:53:33 +1100
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1264365282.5401.3.camel@xxxxxxxxxxxxxxxx>
References: <19292.18578.486513.899049@xxxxxxxxxxxx> <1264365282.5401.3.camel@xxxxxxxxxxxxxxxx>
On Mon, 25 Jan 2010 07:34:42 +1100, Ken McDonell wrote:

 kenj> Max,
 kenj> I'd expect 2 entries (assuming the initial PMDA_CACHE_LOAD loads
 kenj> nothing), and both of these should be inactive.

 kenj> As the man page says ...
 kenj>         This operation loads the cache from the external file, and then
 kenj>         all  cache entries are marked inactive, and the additional data
 kenj>         pointer is set to NULL.  Consequently, a PMDA is only likely to
 kenj>         perform this operation once per execution.

 kenj> What are you seeing?
I'm seeing 4 entries: 2 active, 2 inactive, one for each instance ID,
i.e 0 (ook) active and inactive, 1 (eek) active and inactive.

 kenj> Is there some reason you need to call PMDA_CACHE_LOAD a second time?
It was a bug in my code, I did not want to do that but it could be
considered that other people may.

max

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