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="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<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>