<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 19, 2015 at 4:26 PM, 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"><span class="">&gt; No, my suggestion was aimed at not having parallel writes. In this case quota<br>
&gt; won&#39;t even fail the writes with EDQUOT because of reasons explained above.<br>
&gt; Yes, we need to disable flush-behind along with this so that errors are<br>
&gt; delivered to application.<br>
<br>
</span>Would conv=sync help here?  That should prevent any kind of write parallelism.<br></blockquote><div><br></div><div>An strace of dd shows that<br><br></div><div>* fdatasync is issued only once at the end of all writes when conv=fdatasync<br></div><div>* for some strange reason no fsync or fdatasync is issued at all when conv=sync<br><br></div><div>So, using conv=fdatasync in the test cannot prevent write-parallelism induced by write-behind. Parallelism would&#39;ve been prevented only if dd had issued fdatasync after each write or opened the file with O_SYNC.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If it doesn&#39;t, I&#39;d say that&#39;s a true test failure somewhere in our stack.  A<br>
similar possibility would be to invoke dd multiple times with oflag=append.<br></blockquote><div><br></div><div>Yes, appending writes curb parallelism (at least in glusterfs, but not sure how nfs client behaves) and hence can be used  as an alternative solution.<br><br></div><div>On a slightly unrelated note flush-behind is immaterial in this test since fdatasync is anyways acting as a barrier.<br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-devel" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Raghavendra G<br></div>
</div></div>