pcp
[Top] [All Lists]

Re: MMV questions

To: Nathan Scott <nscott@xxxxxxxxxx>
Subject: Re: MMV questions
From: Max Matveev <makc@xxxxxxxxx>
Date: Sun, 14 Jun 2009 23:09:06 +1000
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1724715007.6285861244781302936.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <1724715007.6285861244781302936.JavaMail.root@xxxxxxxxxxxxxxxxxx>
>>>>> "nscott" == Nathan Scott <nscott@xxxxxxxxxx> writes:

 nscott> - how does one create an instantaneous value?  (like, number
 nscott>   of users, length of a queue, etc).
You can use DISCRETE and never change the extra value from 0.

 nscott> - what is the MMV_ENTRY_DISCRETE type?  (seems to become a
 nscott>   PM_SEM_DISCRETE metric that changes and has some state
 nscott>   associated with it?)
It's sort of a rate - I think I've used it for time sampling or some
sort of rate: it's basically a difference between two samples - old
and new.

There is also INTEGRAL which is used to calculate the sum of samples
over time - sort of like calculating the integral of a function on a
particular interval.

 nscott> - was there are pmdammv(1) man page at any point?
No, the only "documentation" was the README file.

 nscott> - did you consider string values?  (no support currently, afaict,
 nscott>   but did you have a design in mind for implementing that?)
Did not even think about them - did not need them.

The way it was written the content of the file is fixed after it has
been opened, it's not going to change. If I was adding support for
strings, I'd probably create yet another section in the file to store
the strings and do some sort of rudumentary allocator or just fix the
maximum size for each string.

 nscott> More will follow as we dig deeper.
I see you've already cleaned up a lot of crud I've put in back in the
old days.

max

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