Insane level statistics

From: Alex Rousskov (rousskov@ircache.net)
Date: Sat Jun 17 2000 - 17:35:30 MDT


On Wed, 31 May 2000, Alan Smithee wrote:

> What is the meaning of conn.estb.level.mean in lx output? If it is
> the number of established connections per second, the numbers seems
> to be much higher than what we would expect.

The "level" statistics meant to represent the average number of
established connections during the specified time interval (not
connections established per second, that would be "rate"). In other
words, if a "level" shows X established connections, it means that there
were, on average, X established connections at any given time during the
specified time interval.

Binary logs produced with Polygraph 2.2.9 should contain correct
information. However, lx and ltrace had a bug that led to insane levels
being reported. A not-very-much-tested patch is attached. Those who
complained about the bug, please let us know if the patch helps.

Thanks,

Alex.

Index: src/LevelStat.cc
===================================================================
RCS file: /surf1/CVS/polygraph/src/LevelStat.cc,v
retrieving revision 1.2.6.3
diff -u -r1.2.6.3 LevelStat.cc
--- LevelStat.cc 2000/01/05 06:47:21 1.2.6.3
+++ LevelStat.cc 2000/06/17 23:01:51
@@ -104,8 +104,8 @@
                 theCurStart = Max(theCurStart, s.theCurStart);
                 theSum += s.theSum;
 
- theNom = nom()*s.denom() + s.nom()*denom();
- theDenom = denom()*s.denom();
+ theNom = nom() + s.nom();
+ theDenom = denom() + s.denom();
         }
 }
 



This archive was generated by hypermail 2b29 : Tue Jul 10 2001 - 12:00:13 MDT