cedlecomte / RTG2

Realtime Traffic Grapher 2
GNU General Public License v2.0
11 stars 9 forks source link

throughput seems lower than reality #8

Closed cedlecomte closed 10 years ago

cedlecomte commented 10 years ago

From charlie....@gmail.com on April 29, 2009 12:53:34

  1. rtg2 from April 27th SVN
  2. 64bit counters
  3. ./95.pl...

I expect my RateOut to be in line with reality. In fact, I see what looks like a constant fraction of the actual output (ie. around 20Mbps.)

Apr 29 15:30:46 monitor rtgpoll: Poll round 544 complete. Apr 29 15:30:46 monitor rtgpoll: [Polls = 200148] [DBInserts = 150788] [Wraps = 0] [OutOfRange = 0] Apr 29 15:30:46 monitor rtgpoll: [No Resp = 44] [SNMP Errs = 0] [Slow = 0] [PollTime = 0.291s]

mysql> select * from ifOutOctets_4 where id=72; +----+---------------------+---------+----------+ | id | dtime | counter | rate | +----+---------------------+---------+----------+ //snip | 76 | 2009-04-29 15:00:45 | 2234217565 | 7448252.377667 | | 76 | 2009-04-29 15:05:46 | 4016727954 | 13349768.950079 | | 76 | 2009-04-29 15:10:45 | 4256648353 | 14230461.377579 | | 76 | 2009-04-29 15:15:45 | 4662396083 | 15541852.949827 | | 76 | 2009-04-29 15:20:45 | 4925693398 | 16418940.830915 | | 76 | 2009-04-29 15:25:45 | 3557012659 | 11856698.978756 | | 76 | 2009-04-29 15:30:45 | 2322752845 | 7741577.036066 | | 76 | 2009-04-29 15:35:46 | 2084426471 | 6947494.738789 | | 76 | 2009-04-29 15:40:45 | 1487561742 | 4959382.895255 | | 76 | 2009-04-29 15:45:45 | 1956913274 | 6523249.204515 | | 76 | 2009-04-29 15:50:45 | 1937700175 | 6458907.684876 | | 76 | 2009-04-29 15:55:46 | 2309427862 | 7690286.563657 | | 76 | 2009-04-29 16:00:45 | 2078559934 | 6935383.217693 | //snip +----+---------------------+---------+----------+ 45 rows in set (0.00 sec)

monitor:~/rtg2/src# /usr/local/rtg/bin/95.pl link 04/28/2009+15:00 04/29/2009+16:00 link Traffic Period: [04/28/2009 15:00:00 to 04/29/2009 16:00:00]

                        RateIn   RateOut    MaxIn   MaxOut   95% In  95% Out

Connection Mbps Mbps Mbps Mbps Mbps Mbps

GigabitEther sw1.cll.play 0.43 21.24 2.30 131.35 1.37 70.12

Total: 0.43 21.24 2.3 131.35 1.37 70.12

rtg.php seems to be broken as well (see attached) - this may have something to do with a missing "factor=8" that I can't figure out.

Attachment: rtgplot.cgi.png

Original issue: http://code.google.com/p/rtg2/issues/detail?id=8

cedlecomte commented 10 years ago

From charlie....@gmail.com on April 29, 2009 11:46:49

ok I see now that $rateout = sprintf("%2.2f", $avgout/1000000)

so what is up with the PNGs created by rtg.php then?

cedlecomte commented 10 years ago

From adrian.c...@gmail.com on June 26, 2009 18:11:51

ok, so the database entries are correct?

cedlecomte commented 10 years ago

From charlie....@gmail.com on July 05, 2009 08:38:50

yes the db is correct - sorry never saw your comment!

this "fixes" it.

Index: src/rtgparse.c

--- src/rtgparse.c ( revision 13 ) +++ src/rtgparse.c (working copy) @@ -83,7 +83,7 @@ LO->aggr = FALSE; LO->percentile = 0; LO->filled = FALSE;

cedlecomte commented 10 years ago

From brandon....@gmail.com on July 06, 2010 13:16:07

Is it really a "fix" to force default factor to 8? There are other things that RTG monitors by default, such as packetrate, ifErrors, etc. Just make sure that if you're generating graphs for bandwidth, that factor=8 is included in the line objects.

cedlecomte commented 10 years ago

From dan...@fx.net.nz on September 14, 2011 17:47:33

I think this is the same as issue #22 merge and close?

cedlecomte commented 10 years ago

From ced.leco...@gmail.com on February 16, 2012 06:03:31

Status: Duplicate
Mergedinto: 24