<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18385" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2> I am happy that i
was able to reproduce the issue few minutes ago on seeing your mail
.</FONT></DIV>
<DIV><FONT face=Arial size=2> I had my double on
ntp date/time and I just changed the system time to 1 day ago explcitily
using "date -s" command and my module started hogging CPU to 99% and one of the
thread (rrd_update) was doing something.</FONT></DIV>
<DIV><FONT face=Arial size=2> </FONT></DIV>
<DIV><FONT face=Arial size=2> Is it that when time
goes back in the past , rrd_update starts doing something ? If yes, what and how
can this be prevented because this is normal when you use NTP server for system
time and it could go in the past or future at times.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Any thoughts / suggestions
appreciated .</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>swami</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=kbrint@rufus.net href="mailto:kbrint@rufus.net">kevin brintnall</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=swami@infineta.com
href="mailto:swami@infineta.com">swami</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=rrd-users@lists.oetiker.ch
href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</A> ; <A
title=rrd-developers@lists.oetiker.ch
href="mailto:rrd-developers@lists.oetiker.ch">rrd-developers@lists.oetiker.ch</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, March 29, 2010 5:48
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [rrd-developers] RRDTOOL
1.3.6 (rrd_update hangs)</DIV>
<DIV><BR></DIV>Could you compile with debugging symbols (-g) and re-run the
test?<BR><BR>Are you having this problem consistently with the same
RRDs?<BR><BR>Is it possible that you are updating the same RRD concurrently in
two threads ?<BR><BR>How many updates are you passing to rrd_update_r for a
single RRD?<BR><BR>-kb<BR><BR>
<DIV class=gmail_quote>On Mon, Mar 29, 2010 at 7:12 PM, swami <SPAN
dir=ltr><<A
href="mailto:swami@infineta.com">swami@infineta.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2> Something weird i am
seeing at times with rrdtool version 1.3.6 i am using.</FONT></DIV>
<DIV><FONT face=Arial size=2>One of my module starts threads and one of the
thread updates an rrd and i find at times its </FONT><FONT face=Arial
size=2>consuming 99% of CPU vs the normal being 2-3 %(2 out of around
15 times i tried restart module).With gdb , i found one of the threads was
hung as per the gdb backtrace below</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(gdb) bt<BR>#0 0x2ca3aa14 in memcpy
()<BR> at
../ports/sysdeps/unix/sysv/linux/mips/nptl/lowlevellock.h:195<BR>#1
0x2adcfed0 in rrd_write ()<BR> from
/usr/local/third-party/rrd/lib/librrd_th.so.4<BR>#2 0x2add4378 in
write_to_rras ()<BR> from
/usr/local/third-party/rrd/lib/librrd_th.so.4<BR>#3 0x2add4ff8 in
process_arg ()<BR> from
/usr/local/third-party/rrd/lib/librrd_th.so.4<BR>#4 0x2add6408 in
_rrd_update ()<BR> from
/usr/local/third-party/rrd/lib/librrd_th.so.4<BR>#5 0x100176e8 in
data_collector_service_class_thread_func (ptr=0x0)<BR> at
<B>src/service_class_data_collector.c:832 =======================>
there is rrd_update_r happening here</B><BR>#6 0x2cc0dea0 in
start_thread (arg=<value optimized out>)<BR> at
pthread_create.c:263<BR>#7 0x2ca9639c in __thread_start () from
/lib32/libc.so.6<BR>#8 0x2ca9639c in __thread_start () from
/lib32/libc.so.6</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any idea what this is and any patch for it
already available ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial
size=2>swami</FONT></DIV></DIV><BR>_______________________________________________<BR>rrd-developers
mailing list<BR><A
href="mailto:rrd-developers@lists.oetiker.ch">rrd-developers@lists.oetiker.ch</A><BR><A
href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers"
target=_blank>https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers</A><BR><BR></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>kevin brintnall =~ /<A
href="http://kbrint@rufus.net/">kbrint@rufus.net/</A><BR><BR></BLOCKQUOTE></BODY></HTML>