<div dir="ltr"><div>Hi!</div><div><br></div><div>Thanks for the hint. In the meantime I found out that mounting the volume on the client with direct-io-mode=enable helps (dd with 8K block size up to 55 MB/s). I will also try the 3.7.9 release...</div><div><br></div><div>Thanks,</div><div>Andreas</div><div><br></div><div><br></div><div class="gmail_extra"><div><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial;font-size:small"><br></div><div style="font-family:arial;font-size:small"><br></div><p><br></p></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Mar 26, 2016 at 9:51 PM, Serkan Çoban <span dir="ltr">&lt;<a href="mailto:cobanserkan@gmail.com" target="_blank">cobanserkan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">3.7.8 had write performance problems. Can you try with 3.7.9?<br>
<div><div><br>
On Sat, Mar 26, 2016 at 7:52 PM, Andreas Mather &lt;<a href="mailto:andreas@allaboutapps.at" target="_blank">andreas@allaboutapps.at</a>&gt; wrote:<br>
&gt; Hello!<br>
&gt;<br>
&gt; I experience very slow performance on gluster 3.7.8 on CentOS 7.2 when using<br>
&gt; small block sizes with dd.<br>
&gt;<br>
&gt; I run 2 gluster servers with 2 bricks each (each located on separate SSDs)<br>
&gt; and 2 gluster clients (which will run virtual machines). It&#39;s a completely<br>
&gt; fresh setup, so no load on the systems. The systems are connected via 1 GBit<br>
&gt; network. iperf3 shows 940 MBit throughput, ping shows less than 1ms latency,<br>
&gt; so network should be fine.<br>
&gt;<br>
&gt; The volume is a stripe 2 replica 2 volume. I&#39;ve only set the volume options<br>
&gt; for ping-timeout and owner-uid/gid (as required by qemu). The volume is<br>
&gt; mounted via fuse client.<br>
&gt;<br>
&gt; He&#39;re my stats as seen from a client (370MB test file). &#39;storage1&#39; is one of<br>
&gt; the glusterfs servers which also has a fuse mount for these tests:<br>
&gt;<br>
&gt;<br>
&gt; # read (always done echo 3 &gt; /proc/sys/vm/drop_caches before running tests)<br>
&gt;<br>
&gt; $ dd if=/glustermount/testfile of=/localdisk/testfile bs=4K<br>
&gt; 69.7 MB/s<br>
&gt;<br>
&gt; $ dd if=/glustermount/testfile of=/localdisk/testfile bs=8K<br>
&gt; 78.8 MB/s<br>
&gt;<br>
&gt; $ scp storage1:/glustermount/testfile /localdisk/testfile<br>
&gt; 83.3 MB/s<br>
&gt;<br>
&gt; $ ssh storage1 &#39;dd if=/glustermount/testfile bs=8K&#39; | dd<br>
&gt; of=/localdisk/testfile bs=8K<br>
&gt; 93.3 MB/s<br>
&gt;<br>
&gt;<br>
&gt; # write<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile of=/glustermount/testfile bs=4K<br>
&gt; 3.8 MB/s<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile of=/glustermount/testfile bs=8K<br>
&gt; 6.9 MB/s<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile of=/glustermount/testfile bs=8M<br>
&gt; 58.8 MB/s<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile of=/glustermount/testfile bs=64M<br>
&gt; 58.8 MB/s<br>
&gt;<br>
&gt; $ scp /localdisk/testfile storage1:/localdisk/testfile<br>
&gt; 94 MB/s<br>
&gt;<br>
&gt; $ scp /localdisk/testfile storage1:/glustermount/testfile<br>
&gt; 980 KB/s<br>
&gt;<br>
&gt; # immediately ran after the previous one. what happened?!?!<br>
&gt; $ scp /localdisk/testfile storage1:/glustermount/testfile<br>
&gt; 75 MB/s<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile bs=8K | ssh storage1 &#39;dd of=/localdisk/testfile<br>
&gt; bs=8K&#39;<br>
&gt; 96.6 MB/s<br>
&gt;<br>
&gt; $ dd if=/localdisk/testfile bs=8K | ssh storage1 &#39;dd<br>
&gt; of=/glustermount/testfile bs=8K&#39;<br>
&gt; 225 KB/s<br>
&gt;<br>
&gt; Is this really as good as it gets with gluster? I&#39;ve tried the following<br>
&gt; setups in order to improve write speed for small block sizes:<br>
&gt;<br>
&gt; - tuning stripe-size. smaller (16KB) and larger (4MB) values<br>
&gt; - &#39;replica 2&#39; only setup (i.e. no striping)<br>
&gt; - write-behind on/off<br>
&gt; - larger write-behind-window-size<br>
&gt; - larger cache-size<br>
&gt; - more io-threads<br>
&gt;<br>
&gt; None of these helped or even changed the numbers much. I&#39;ve also tried a few<br>
&gt; sysctl tweaks, but still not much change.<br>
&gt;<br>
&gt; So I&#39;d like to know:<br>
&gt;<br>
&gt; - is this normal speed/behaviour?<br>
&gt; - what are the reasons for this?<br>
&gt; - can anything be done to improve performance?<br>
&gt; - is running VMs on top of gluster a supported/intended use case at all?<br>
&gt;<br>
&gt; Thanks a lot,<br>
&gt; Andreas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Gluster-users mailing list<br>
&gt; <a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a><br>
&gt; <a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br>
</blockquote></div><br></div></div>