<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 1:21 AM, Olivier Le Cam <span dir="ltr">&lt;<a href="mailto:Olivier.LeCam@crdp.ac-versailles.fr">Olivier.LeCam@crdp.ac-versailles.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Olivier Le Cam wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi -<br>
<br>
Apologize for my insistance, but would it be possible to help on the stats caching? This seriously decreases performances with small files readings!<br>
<br>
I am volunteer to try to deal with stats caching by myself but I would appreciate some guidance in order to know where I could interact in the code for.<br>
</blockquote>
<br></div>
Well, as far as I understand the problem is rather that folders on the path of the targeted file are not cached at all by io-cache. </blockquote><div><br>Did you mean caching dentries, when you said &quot;caching directories&quot;? io-cache only caches file data. Also note that it is not a translator which does metadata (stats) caching.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This is why accessing a file makes (quite a lot) network traffic and can introduce bottlenecks because each folder is stated on the servers before delivering the file, even if that file is indeed cached by io-cache.<br>
</blockquote><div><br>io-cache only sends stat on the file being read not to all of its parent directories. I am not getting the reason you are concerned with too many stat calls. io-cache (during read and when file is cached) only sends a single stat call and that too if &quot;cache-timeout&quot; number of seconds have been elapsed since last validation.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m still trying to figure out how I can get this cached as well and will appreciate any pointers.<div class="im"><br>
<br>
Thanks and best regards,<br>
-- <br>
Olivier<br>
<br>
<br>
<br></div><div><div></div><div class="h5">
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>