<div dir="ltr">Hi Keith,<br><br>Comments are inlined.<br><br><div class="gmail_quote">On Mon, Sep 8, 2008 at 3:11 AM, Keith Freedman <span dir="ltr">&lt;<a href="mailto:freedman@freeformit.com">freedman@freeformit.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;">I have an application which stores old copies of files whenever new<br>
ones are uploaded.<br>
<br>
it does this by checking if file_exists in the archive folder<br>
this has roughly 30000 items in it.</blockquote><div><br>How are you checking whether a file exists or not? do you&nbsp; use&nbsp; ls? Can you make sure, that&nbsp; ls doesn&#39;t&nbsp; send a stat call on each of the files in the directory (as in ls -l )? if ls just sends readdir calls and still the performance is low, let us know about it.<br>
<br>If you need stat calls, you might need stat-prefetch, which is currently not funcitonal.<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>
<br>
I&#39;ve got an AFR configuration.<br>
<br>
so, when someone uploads 10 files, it checks for the file existing,<br>
which does a directory scan which causes afr to check the other<br>
server, however this takes a reallllly long time.<br>
and it does this for each file, which is a problem.<br>
<br>
which performance translator would help the most with this.<br>
<br>
the AFR configuration uses local read-volume.<br>
<br>
will any performance translators help given it&#39;s an AFR config? &nbsp;I<br>
understand afr wants to maintain the directory integrity, but it&#39;s<br>
kind of irritating.<br>
<br>
the directory filesize is 2.2 mb so I&#39;m not sure if it&#39;s actually<br>
moving this volume of data constantly or not, but it&#39;s painfully slow<br>
and things seem to timeout constantly.<br>
<br>
any thoughts are appreciated.<br>
<br>
Keith<br>
<br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Raghavendra G<br><br>A centipede was happy quite, until a toad in fun,<br>Said, &quot;Prey, which leg comes after which?&quot;,<br>This raised his doubts to such a pitch,<br>
He fell flat into the ditch,<br>Not knowing how to run.<br>-Anonymous<br>
</div>