<HTML>
<HEAD>
<TITLE>Re: [rrd-users] Rrd Resize Generated a very Big File on MAX OS X (10.5)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
Rows=66400 and step=60<BR>
<BR>
Look to me no problem with GROW but SHRINK. SHRINK any number of rows will create a big resize.rrd.<BR>
<BR>
See below as well – the output from rrdtool info.<BR>
<BR>
Jeffrey ( sorry for the big previous email. I removed the log in this reply)<BR>
<BR>
-------<BR>
<BR>
<BR>
rrd_version = "0003"<BR>
step = 60<BR>
last_update = 1224136140<BR>
ds[Delta].type = "GAUGE"<BR>
ds[Delta].minimal_heartbeat = 7200<BR>
ds[Delta].min = NaN<BR>
ds[Delta].max = NaN<BR>
ds[Delta].last_ds = "0"<BR>
ds[Delta].value = 0.0000000000e+00<BR>
ds[Delta].unknown_sec = 0<BR>
rra[0].cf = "AVERAGE"<BR>
rra[0].rows = 66400<BR>
rra[0].cur_row = 1594<BR>
rra[0].pdp_per_row = 1<BR>
rra[0].xff = 5.0000000000e-01<BR>
rra[0].cdp_prep[0].value = NaN<BR>
rra[0].cdp_prep[0].unknown_datapoints = 0<BR>
<BR>
<BR>
On 10/15/08 10:27 PM, "Tobias Oetiker" <<a href="tobi@oetiker.ch">tobi@oetiker.ch</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Xiu,<BR>
<BR>
question, how many rows does your RRA 0 have ?<BR>
<BR>
cheers<BR>
tobi<BR>
<BR>
Yesterday Xiu Yan Zhang wrote:<BR>
<BR>
> Tobias , I trid rrdtool 1.3.4 with macport. Same behavior for resizing as I stated in the initial email.<BR>
><BR>
> Then I recompiling it by disabling mmap per your recommendation. And I m still getting 4GB rrd file for the 2MB orginal file if resized.<BR>
><BR>
> Plus, I m getting the following error this time<BR>
><BR>
> /usr/local/rrdtool-1.3.4/bin/rrdtool resize $YstDATA/Rrd/YstRrd_DbInst4_SortsDisk.rrd 0 SHRINK 60000<BR>
> rrdtool(72564) malloc: *** error for object 0x809940: double free<BR>
> *** set a breakpoint in malloc_error_break to debug<BR>
><BR>
><BR>
> The attached is the complete log for me to recompile with disable-mmap, make and make install.<BR>
> Pls advice. Appreciated.<BR>
><BR>
( see previous email)<BR>
><BR>
><BR>
><BR>
><BR>
><BR>
> On 10/14/08 10:58 PM, "Tobias Oetiker" <<a href="tobi@oetiker.ch">tobi@oetiker.ch</a>> wrote:<BR>
><BR>
> Yesterday Xiu Yan Zhang wrote:<BR>
><BR>
> > Hi Tobi thanks for your reply. I downloaded rrdtool with " port rrdtool ".<BR>
> ><BR>
> > Questions -<BR>
> ><BR>
> > - How to get rrdtool 1.3.4 ?<BR>
> ><BR>
> > - How to compile ?<BR>
><BR>
> you can find some hints in<BR>
><BR>
> <a href="http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html">http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html</a><BR>
><BR>
> cheers<BR>
> tobi<BR>
><BR>
> ><BR>
> > Pls point me where I should read .<BR>
> ><BR>
> > Thanks<BR>
> ><BR>
> > Jeffrey<BR>
> ><BR>
> ><BR>
> > On 10/14/08 10:34 PM, "Tobias Oetiker" <<a href="tobi@oetiker.ch">tobi@oetiker.ch</a>> wrote:<BR>
> ><BR>
> > Hi Jeffrey,<BR>
> ><BR>
> > there are two things:<BR>
> ><BR>
> > a) the latest stable release is 1.3.4 please try this<BR>
> ><BR>
> > b) try compiling with --diable-mmap<BR>
> ><BR>
> > cheers<BR>
> > tobi<BR>
> ><BR>
> ><BR>
> ><BR>
> > Yesterday Xiu Yan Zhang wrote:<BR>
> ><BR>
> > > Hi<BR>
> > > I m encountering the following issue and need your insight<BR>
> > ><BR>
> > > (1) MAC OS X 10.5<BR>
> > > (2) RRD 1.3.3<BR>
> > > (3) for a rrd file with 2M, when I GROW or SHRINK the file with any number of rows, I finally get a resize.rrd with 4GB file size.<BR>
> > ><BR>
> > > Questions : is there any bug involved ? How to fix it?<BR>
> > ><BR>
> > > Thanks for your help.<BR>
> > ><BR>
> > > Jeffrey<BR>
> > ><BR>
> ><BR>
> > --<BR>
> > Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<BR>
> > <a href="http://it.oetiker.ch">http://it.oetiker.ch</a> <a href="tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<BR>
> ><BR>
> > _______________________________________________<BR>
> > rrd-users mailing list<BR>
> > <a href="rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><BR>
> > <a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><BR>
> ><BR>
> ><BR>
><BR>
> --<BR>
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<BR>
> <a href="http://it.oetiker.ch">http://it.oetiker.ch</a> <a href="tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<BR>
><BR>
><BR>
<BR>
--<BR>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland<BR>
<a href="http://it.oetiker.ch">http://it.oetiker.ch</a> <a href="tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775 9902 / sb: -9900<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>