<div dir="ltr">First - thanks for taking the time and providing the reply. <br><br>Due to a bad flu I was unable to verify till now but now saw we use fstream in our apps, to write the files. Assumed the buffer was large, but never tested it. <br>
<br>We have increased the fstream buffer to 100MB and will check if this helps (this specific test can only be scheduled for later as the cluster is busy).<br><br>A related question:<br>I was wondering if there is any &quot;magic number&quot; as to number of files per directory in Gluster volumes.<br>
Some of my directories contain an order of 10^5 files and I&#39;m begininng to suspect this too (when I worked in local FS I didn&#39;t see a noticable degradation, though).<br><br>Thanks again!<br>Ayelet <br><br><div class="gmail_quote">
On Thu, Jan 17, 2013 at 5:28 PM, harry mangalam <span dir="ltr">&lt;<a href="mailto:harry.mangalam@uci.edu" target="_blank">harry.mangalam@uci.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Just a guess, but how are the writes being done?  If they&#39;re being written in<br>
zillions of tiny writes, then what you may be seeing is described here:<br>
&lt;<a href="http://moo.nac.uci.edu/%7Ehjm/bduc/BDUC_USER_HOWTO.html#writeperfongl" target="_blank">http://moo.nac.uci.edu/~hjm/bduc/BDUC_USER_HOWTO.html#writeperfongl</a>&gt;<br>
and the following stanza on named pipes.<br>
<br>
This is often the case with the large files being used in NGS/HTS where the<br>
fasta/fastq files are composed of millions of short (60-100 char) lines of<br>
characters and are typically written line-by-line.<br>
<br>
hjm<br>
<div><div class="h5"><br>
<br>
<br>
On Wednesday, January 16, 2013 02:47:37 PM Ayelet Shemesh wrote:<br>
&gt; Hi to all Gluster experts,<br>
&gt;<br>
&gt; I have a cluster of 10 machines exposing a volume into which 12 other<br>
&gt; machines do many writes of large files (~100-300MB each).<br>
&gt; In general I&#39;m very happy with gluster. It&#39;s a great solution, and is quite<br>
&gt; stable (thanks for the great work!).<br>
&gt;<br>
&gt; However, I have a problem which I was unable to solve yet, nor find any<br>
&gt; solution to in the documentation or on this list archive.<br>
&gt;<br>
&gt; When the client machines write locally, and then just copy the files they<br>
&gt; created to the gluster mount - everything works great.<br>
&gt; When the client machines write directly to the gluster mounted volume I get<br>
&gt; a huge performance hit.<br>
&gt; In one specific test case the difference was 20 minutes for the copy and 8<br>
&gt; hours for the direct write.<br>
&gt;<br>
&gt; I tried to set the iocache attributes of write-behind-window and<br>
&gt; flush-behind, but to no avail.<br>
&gt;<br>
&gt; I will very much appreciate your help in solving this problem.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ayelet<br><br></div></div></blockquote></div></div>