runtime status

Jim Keniston jkenisto@us.ibm.com
Thu Jun 2 22:12:00 GMT 2005


On Thu, 2005-06-02 at 00:23, Martin Hunt wrote:
...
> --- STATS ---
> %m - min
> %M - max
> %A - avg
> %S - sum
> %H - histogram
> %C - count

Consider also computing variance, which can be computed from the sum and
count (which you're already computing) and the sum of x*x (x*x = the
square of the observed value):
  variance = SS/(n - 1)
  SS = sum of x*x - ((sum*sum)/n)
Of course, you'd lose some precision due to integer arithmetic.

Standard deviation (sqrt(variance)) would be even nicer, but I don't
think sqrt() is something you want to add to the kernel.:-)

Jim



More information about the Systemtap mailing list