<div><div>Hi, <i>Pranith<br><br></i></div><div>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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'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><div>&gt;process to die because of double free etc.<br><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>