[rrd-users] RRD-Performance Issue - Need Help

Simone Felici s.felici at alpikom.it
Tue Jun 20 11:57:59 MEST 2006

Hello to all!

I've a little problem with our server and update rrd-files. We have 5300
rrd-files updated every 5 minutes. 4000 rrd-files of them are collected from
two devices.
These are two DSL routers. In there are configured all xDSL lines of our
customers. I've made a script do the following:

1. snmpwalk of full entry on first dsl router about all Incoming Traffic
(Inoctets) on all lines and stored into in.txt file
2. snmpwalk of full entry on first dsl router about all OUTgoing Traffic
(OutOctets) on all lines and stored into out.txt file
3. for every line configured and stored into in.txt file:
4. get uptime on router to determinate uptime and prevent spikes if router
is rebooted
5. determinate line id
6. determinate InCounter32 (cat in.txt | grep line | awk blablabla)
7. determinate OutCounter32 (cat out.txt | grep line | awk blablabla)
8. update rrd-file in and out (depends if in and/or out are equal to zero,
then skip update)

Equal script for second router.

The snmpwalk is fast, but the cicle with all grep, awk, rrdtool update needs
minimum 7 minutes on first router and 20 minutes on second router!!
It's normal that starting this script every 5 minutes it means a lot of
istances :((

Other useful infos:

RRA creation:
RRA:AVERAGE:0.5:1:2016 RRA:AVERAGE:0.5:24:390 RRA:AVERAGE:0.5:288:1830
RRA:MAX:0.5:1:2016 RRA:MAX:0.5:24:390 RRA:MAX:0.5:288:1830
RRA:MIN:0.5:1:2016 RRA:MIN:0.5:24:390 RRA:MIN:0.5:288:1830

Intel(R) Pentium(R) 4 CPU 2.80GHz (bogomips: 5583.66)
Fedora Core release 1 (Yarrow)
Linux 2.4.22-1.2115.nptlsmp
RRDtool 1.0.49
AVERAGE LOAD 20.00 (!!!!!)

Any suggesions on how improve performance or any other solution?



Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

More information about the rrd-users mailing list