Replies inline.<br><br><div class="gmail_quote">On Tue, Dec 30, 2008 at 11:11 PM, Martin Fick <span dir="ltr">&lt;<a href="mailto:mogulguy@yahoo.com">mogulguy@yahoo.com</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;">
Hi,<br>
<br>
I would like to understand the cache translator better.<br>
<br>
1A) Is the cache a memory cache only (non-file based)?</blockquote><div>Yes, io-cache is a memory cache. <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>
1B) If memory only, are there any plans for a file based cache?<br>
</blockquote><div>Yes, we have plans for file based cache in our future release. <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>
2) Are there any downsides to making the cache very large, simply using up memory?<br>
</blockquote><div>You can make have large cache size. <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>
3) What is the page-size used for? Is it the minimum amount used per file cached?<br>
</blockquote><div>page-size is the size of cache page stored in memory by io-cache. io-cache reads from file in page-size size everytime. <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>
4A) What is the timeout used for?</blockquote><div>timeout is attribute timeout. after timeout time, revalidate is sent and the io-cache is updated if the attributes have changed. <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>
4B) Does the client check with the server to see if a file has changed before the timeout, or only after?</blockquote><div>every read call returns also returns attribute, so revalidation is done even with read calls. if no read/write activity has happened on file, then attribute validation is done after timeout.<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>
4C) Is a file flushed no matter what after the timeout?<br>
</blockquote><div>no file will be flushed only if it has changed or is not used for long time and cache needs to make space for other files. <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>
Thanks,<br>
<br>
-Martin<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org">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>
</blockquote></div><br><br clear="all"><br>-- <br>gowda<br>