<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 17, 2013 at 5:20 AM, Jeff Darcy <span dir="ltr">&lt;<a href="mailto:jdarcy@redhat.com" target="_blank">jdarcy@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 08/16/2013 11:21 PM, Alexey Shalin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I wrote small script :<br>
#!/bin/bash<br>
<br>
for i in {1..1000}; do<br>
size=$((RANDOM%5+1))<br>
dd if=/dev/zero of=/storage/test/bigfile${i} count=1024 bs=${size}k<br>
done<br>
<br>
This script creates files with different size on volume<br>
<br>
here is output:<br>
2097152 bytes (2.1 MB) copied, 0.120632 s, 17.4 MB/s<br>
1024+0 records in<br>
1024+0 records out<br>
1048576 bytes (1.0 MB) copied, 0.14548 s, 7.2 MB/s<br>
1024+0 records in<br>
1024+0 records out<br>
</blockquote>
<br></div>
It looks like you&#39;re doing small writes (1-6KB) from a single thread.  That means network latency is going to be your primary limiting factor.  20MB/s at 4KB is 5000 IOPS or 0.2ms per network round trip.  You don&#39;t say what kind of network you&#39;re using, but if it&#39;s Plain Old GigE that doesn&#39;t seem too surprising.  BTW, the NFS numbers are likely to be better because the NFS client does more caching and you&#39;re not writing enough to fill memory, so you&#39;re actually getting less durability than in the native-protocol test and therefore the numbers aren&#39;t directly comparable.<br>

<br>
I suggest trying larger block sizes and higher I/O thread counts (with iozone you can do this in a single command instead of a script).  You should see a pretty marked improvement.<div class="HOEnZb"><div class="h5"><br>
</div></div></blockquote><div><br></div><div>Also, small block size writes kill performance on FUSE because of the context switches (and lack of write caching in FUSE). Larger block size (&gt;= 64KB) should start showing good performance.</div>
<div><br></div><div>Avati</div></div></div></div>