[rrd-users] rrd tool in infinite loop when opening /etc/localtime
js
forums at emat.be
Sat Jul 16 20:36:32 MEST 2005
Hi all,
rrdtool generates 100% cpu and is in an infinite loop in some cases such as:
When I zoom in to a very small region the rrdtool process hangs with
100% cpu usage.
On my system it is allways reproducable.
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1121167317 \
--end=1121167660 \
--title="Localhost - Processes" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/07/12 13\:21\:57 To 2005/07/12 13\:27\:40\c" \
COMMENT:" \n" \
--vertical-label="processes" \
--slope-mode \
DEF:a="/var/www/localhost/htdocs/cacti/rra/localhost_proc_7.rrd":proc:AVERAGE
\
AREA:a#F51D30:"Running Processes" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"
rrdtool 1.2.10 is linked against:
linux-gate.so.1 => (0xffffe000)
librrd.so.2 => /usr/lib/librrd.so.2 (0x40017000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4005a000)
libpng.so.3 => /usr/lib/libpng.so.3 (0x400c9000)
libz.so.1 => /lib/libz.so.1 (0x400fa000)
libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x4010a000)
libm.so.6 => /lib/libm.so.6 (0x40120000)
libc.so.6 => /lib/libc.so.6 (0x40142000)
/lib/ld-linux.so.2 (0x40000000)
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
when doing a strace I see an infinite loop like this:
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
close(3) = 0
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
close(3) = 0
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
close(3) = 0
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1067, ...}) = 0
close(3) = 0
/etc/localtime is symlinked against /usr/share/zoneinfo/Europe/Brussels
I've tried symlinking to other timezones. No difference.
There are several people mentioning this behaviour on the cacti forums,.....
Any news on this?
Greetings
Jelle S.
--
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