<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 2, 2016 at 11:41 AM,  <span dir="ltr">&lt;<a target="_blank" href="mailto:feihu929@sina.com">feihu929@sina.com</a>&gt;</span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div><div>Hi, <i>Pranith<br><br></i></div><div><span class="gmail-">&gt;        There was a time when all this clean up was not necessary because<br>&gt;the mount process would die anyway. Then when gfapi came in, the process<br>&gt;wouldn&#39;t die anymore :-), so we have to fix all the shortcuts we took over<br>&gt;the years to properly fix it. So lot of work :-/. It is something that<br>&gt;needs to be done properly (multi threaded nature of the workloads make it a<br>&gt;bit difficult), because the previous attempts at fixing it caused the<br></span><div><span class="gmail-">&gt;process to die because of double free etc.<br></span><div><br>When libgfapi used by libvirtd, the glfs_init and     glfs_fini will call two times with start or stop virtual machine, and with other libvirt command like virsh domblkinfo which will visit glusterfs api, SO, as long as libvirtd start and stop vm, the libvirtd process will leak large memory, about 1.5G memory consume by 100 times call  glfs_init and     glfs_fini</div></div></div></div></blockquote><div><br></div><div>Fixing it all at once is a very big effort. I thought a little about how to give smaller fixes per release so that we can fix this bug over some releases. Fortunately in the virt layer only client side xlators are loaded and in that, performance xlators are generally disabled except write-behind at least by using &#39;group-virt&#39; setting this is what will happen. So probably that should be the first set of xlators where we need to concentrate our efforts to make just this usecase better.<br></div><div>So just write-behind, shard, dht, afr, client xlators should probably a good start to address this case.<br><br></div><div>On a completely different note, I see that you used massif for doing this analysis. Oleksandr is looking for some help in using massif to provide more information in a different usecase. Could you help him?<br></div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><br>______________________________<wbr>_________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a target="_blank" rel="noreferrer" href="http://www.gluster.org/mailman/listinfo/gluster-users">http://www.gluster.org/<wbr>mailman/listinfo/gluster-users</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>