<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Apr 9, 2018 at 6:43 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Andrea,<br>
<br>
Are you speaking about the cache machanism enabled with the VSI_CACHE=YES env variable ?<br></blockquote><div><br></div><div>I read there was some caching, but was not that specific. So, memory caching is there, it's per file, </div><div>but not enabled by default, while disk caching is there, global, and enabled by default?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If so that's described at<br>
<a href="http://gdal.org/gdal_virtual_file_systems.html#gdal_virtual_file_systems_vsicache" rel="noreferrer" target="_blank">http://gdal.org/gdal_virtual_<wbr>file_systems.html#gdal_<wbr>virtual_file_systems_vsicache</a><br>
I see it lacks a bit high level details, like specifying this is RAM only, and not disk cached.<br>
I'm going to add some words about that<br>
<br>
Otherwise, the full "documentation" :-) is at:<br>
<a href="https://github.com/OSGeo/gdal/blob/master/gdal/port/cpl_vsil_cache.cpp" rel="noreferrer" target="_blank">https://github.com/OSGeo/gdal/<wbr>blob/master/gdal/port/cpl_<wbr>vsil_cache.cpp</a></blockquote><div><br></div><div>Hehehe :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The /vsicurl/ and related network file systems have also their own RAM cache mechanism<br>
described at<br>
<a href="http://gdal.org/gdal_virtual_file_systems.html#gdal_virtual_file_systems_vsicurl" rel="noreferrer" target="_blank">http://gdal.org/gdal_virtual_<wbr>file_systems.html#gdal_<wbr>virtual_file_systems_vsicurl</a></blockquote><div><br></div><div>The "detect sequential reading" part is interesting, if I'm not mistaken the logic is here,</div><div>right?</div><div><br></div><div><a href="https://github.com/OSGeo/gdal/blob/master/gdal/port/cpl_vsil_curl.cpp#L1845">https://github.com/OSGeo/gdal/blob/master/gdal/port/cpl_vsil_curl.cpp#L1845</a><br></div><div><br></div><div>Thanks a lot for the useful information, as usual :-)</div><div><br></div><div>Cheers</div><div>Andrea</div><div> </div></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><font size="2"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoServer Professional Services from the experts! Visit <a href="http://goo.gl/it488V" target="_blank">http://goo.gl/it488V</a> for more information.</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">==</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Ing. Andrea Aime </span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">@geowolf</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Technical Lead</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">GeoSolutions S.A.S.</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Via di Montramito 3/A</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">55054  Massarosa (LU)</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">phone: +39 0584 962313</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">fax: +39 0584 1660272</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">mob: +39  339 8844549</span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="http://twitter.com/geosolutions_it" target="_blank">http://twitter.com/geosolutions_it</a></span><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br><br></span></font></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">AVVERTENZE AI SENSI DEL D.Lgs. 196/2003</font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.</font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2"> </font></span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font size="2">The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility  for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.</font></span></p><div><span style="font-size:11pt;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>