<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Aug 22, 2009, at 4:51 AM, Hermann Peifer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">Just to repeat my earlier observations: over the last days, I tried with all kinds of -wm and GDAL_CACHEMAX settings, and also added the options TILED=YES and SKIP_NOSOURCE=YES. I haven't documented the performance changes systematically, but my overall impression was that the changes were rather small. I also tried -multi on my dual processor machine, but I ended up with a fatal error.</font></p> </blockquote></div><div><br></div><div>In January 2009, working with GDAL version 1.6.0,&nbsp;I&nbsp;did&nbsp;some&nbsp;testing and documenting of the effect of&nbsp;<span class="Apple-style-span" style="font-family: Courier; font-size: 12px; ">GDAL_CACHEMAX<span class="Apple-style-span" style="font-family: 'Lucida Grande'; ">.&nbsp;<span class="Apple-style-span" style="font-size: medium; "><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">Using as input an uncompressed GeoTif&nbsp;15,000 x 15,000 x 3 = 675 MB, organized into 1024 x 1024 tiles,&nbsp;I found that using gdal_translate to convert this GeoTif to a GeoJP2</font><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">&nbsp;with the default&nbsp;</font><font face="Courier" size="3" style="font: 12.0px Courier">--config GDAL_CACHEMAX 40</font><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande"> took&nbsp;10473 sec (= 175 minutes), but increasing&nbsp;<span class="Apple-style-span" style="font-family: Courier; ">GDAL_CACHEMAX</span>&nbsp;by only 12.5% to&nbsp;</font><font face="Courier" size="3" style="font: 12.0px Courier">--config GDAL_CACHEMAX 45</font><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">&nbsp;the processing took only 166 sec (= 2.7 minutes), which is 63 times faster! Further tests showed that increasing&nbsp;</font><font face="Courier" size="3" style="font: 12.0px Courier">--config GDAL_CACHEMAX</font><font face="Lucida Grande" size="3" style="font: 12.0px Lucida Grande">&nbsp;to values greater than 45 (up to 1800) did not effect processing time. Greg</font></span></span></span></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal 'Lucida Grande'; min-height: 15px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">GDAL 1.6.0, released 2008/12/04</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">Input GeoTif&nbsp;15,000 x 15,000 x 3 = 675 MB</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="3" style="font: 12.0px Courier">gdal_translate -of JP2KAK&nbsp;-co QUALITY=10&nbsp;--config GDAL_CACHEMAX</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier"><div>0040 &nbsp;10473.14 sec</div><div>0041 &nbsp;10326.75 sec</div><div>0042 &nbsp;10492.85 sec</div><div>0043 &nbsp; 7081.57 sec</div><div>0044 &nbsp; 3503.33 sec</div><div>0045 &nbsp; &nbsp;166.23 sec</div><div>0050 &nbsp; &nbsp;166.31 sec</div><div>0055 &nbsp; &nbsp;165.89 sec</div><div>0060 &nbsp; &nbsp;165.78 sec</div><div>0080 &nbsp; &nbsp;165.48 sec</div><div>0100 &nbsp; &nbsp;166.53 sec</div><div>0125 &nbsp; &nbsp;165.59 sec</div><div>0150 &nbsp; &nbsp;165.72 sec</div><div>0200 &nbsp; &nbsp;165.65 sec</div><div>0250 &nbsp; &nbsp;166.58 sec</div><div>0300 &nbsp; &nbsp;166.13 sec</div><div>0350 &nbsp; &nbsp;166.59 sec</div><div>0400 &nbsp; &nbsp;166.06 sec</div><div>0600 &nbsp; &nbsp;166.00 sec</div><div>0800 &nbsp; &nbsp;165.10 sec</div><div>1000 &nbsp; &nbsp;165.25 sec</div><div>1200 &nbsp; &nbsp;165.94 sec</div><div>1400 &nbsp; &nbsp;165.43 sec</div><div>1600 &nbsp; &nbsp;165.56 sec</div><div>1800 &nbsp; &nbsp;166.31 sec</div><div><br></div></font></div></div></body></html>