<div dir="ltr"><div><div>Hey!!<br></div>       Hope you are doing good. I took a look at the bt. So when flush comes write-behind has to flush all the writes down. I see the following frame hung in iob_unref:<br>Thread 7 (Thread 0x7fa601a30700 (LWP 16218)):
<br>#0  0x00007fa60cc55225 in pthread_spin_lock () from /lib64/libpthread.so.0 
&lt;&lt;---- Does it always hang there?<br>#1  0x00007fa60e1f373e in iobref_unref (iobref=0x19dc7e0) at iobuf.c:907
<br>#2  0x00007fa60e246fb2 in args_wipe (args=0x19e70ec) at default-args.c:1593
<br>#3  0x00007fa60e1ea534 in call_stub_wipe_args (stub=0x19e709c) at call-stub.c:2466
<br>#4  0x00007fa60e1ea5de in call_stub_destroy (stub=0x19e709c) at call-stub.c:2482<br><br></div>Is this on top of master branch? It seems like we missed an unlock of the spin-lock or the iobref has junk value which gives the feeling that it is in locked state (May be double free?). Do you have any extra patches you have in your repo which make changes in iobuf?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 21, 2016 at 4:07 AM, Sachin Pandit <span dir="ltr">&lt;<a href="mailto:spandit@commvault.com" target="_blank">spandit@commvault.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 link="#0563C1" vlink="#954F72" lang="EN-US">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I bid adieu to you all with the hope of crossing path again, and the time has come rather quickly. It feels great to work on GlusterFS again.<u></u><u></u></p>
<p class="MsoNormal">                <u></u><u></u></p>
<p class="MsoNormal">Currently we are trying to write data backed up by Commvault Simpana to glusterfs volume (Disperse volume). To improve the performance, I have implemented the proposal put forward my Rafi  K C [1]. I have some questions regarding libgfapi
 and iobuf pool. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">To reduce an extra level of copy in glfs read and write, I have implemented few APIs to request a buffer (similar to the one represented in  [1]) from iobuf pool which can be used by the application to write data to. With this implementation,
 when I try to reuse the buffer for consecutive writes, I could see a hang in syncop_flush of glfs_close (BT of the hang can be found in [2]). I wanted to know if reusing the buffer is recommended. If not, do we need to request buffer for each writes?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Setup : Distributed-Disperse ( 4 * (2+1)). Bricks scattered over 3 nodes.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[1] <a href="http://www.gluster.org/pipermail/gluster-devel/2015-February/043966.html" target="_blank">
http://www.gluster.org/pipermail/gluster-devel/2015-February/043966.html</a><u></u><u></u></p>
<p class="MsoNormal">[2] Attached file -  bt.txt<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks &amp; Regards,<u></u><u></u></p>
<p class="MsoNormal">Sachin Pandit.<u></u><u></u></p>
</div>
</div>



<pre>
***************************Legal Disclaimer***************************
&quot;This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you.&quot;
**********************************************************************</pre>
<br>_______________________________________________<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" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div>