[Bugs] [Bug 1369364] Huge memory usage of FUSE client

bugzilla at redhat.com bugzilla at redhat.com
Mon Dec 5 10:58:55 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1369364

Mohit Agrawal <moagrawa at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |moagrawa at redhat.com



--- Comment #36 from Mohit Agrawal <moagrawa at redhat.com> ---
Hi,

  I think i have found one code path specific to memory leak in fuse xlator but
it will leak only when a user
  will run umount and mount again.As per fuse xlator code it calls eh_new
function to allocate event
  history on transatlor and max. size of this buffer is 1024,it is a circular
buffer to store the messages but 
  memory is not released for this buffer in fini function.
  Every time when a user will run command mount/umount it will have a leak of
messages in this circular buffer.

  To clean this leak need to update the code of fini in fuse xlator as below

>>>>>>>>>>>>>>>>>

@@ -5778,6 +5778,9 @@ fini (xlator_t *this_xl)
         if ((priv = this_xl->private) == NULL)
                 return;

+        if (this_xl->history)
+                eh_destroy (this_xl->history);
+


>>>>>>>>>>>>>>>>>>>>

Regards
Mohit Agrawal

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=z6GHDHKwVj&a=cc_unsubscribe


More information about the Bugs mailing list