[Bugs] [Bug 1368843] New: Applications not calling glfs_h_poll_upcall() have upcall events cached for no use

bugzilla at redhat.com bugzilla at redhat.com
Sun Aug 21 19:45:14 UTC 2016


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

            Bug ID: 1368843
           Summary: Applications not calling glfs_h_poll_upcall() have
                    upcall events cached for no use
           Product: GlusterFS
           Version: 3.7.14
         Component: libgfapi
          Keywords: Triaged
          Severity: medium
          Priority: medium
          Assignee: ndevos at redhat.com
          Reporter: ndevos at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org, pgurusid at redhat.com
        Depends On: 1368842



+++ This bug was initially created as a clone of Bug #1368842 +++

Description of problem:
When a volume has upcalls (features.cache-invalidation) enabled, but does not
call glfs_h_poll_upcall(), the upcall events accumulate in a list that is toed
to the 'struct glfs'. The application might not be interested in the events,
causing the list to grow indefinitely. This manifests in some sort of memory
leak.

Version-Release number of selected component (if applicable):
3.7 and upwards

How reproducible:
100%

Steps to Reproduce:
1. install glusterfs-coreutils and open a connection like
      # gfcli glfs://localhost/test-volume
2. mount the volume over fuse
3. over fuse, create a file like
      # while sleep 0.01 ; do date >> TIME ; done
4. over the glfcli, do a regular 'tail TIME'
5. in a 3rd terminal, watch 'top -p $(pidof gfcli)' increasing memory

Actual results:
Memory of gfcli grows slowly, but constantly.

Expected results:
gfcli should have stable memory usage.

Additional info:
Reported in relation to md-cache improvements by Poornima.

--- Additional comment from Vijay Bellur on 2016-08-21 21:41:41 CEST ---

REVIEW: http://review.gluster.org/15191 (gfapi: do not cache upcalls if the
application is not interested) posted (#2) for review on master by Niels de Vos
(ndevos at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1368842
[Bug 1368842] Applications not calling glfs_h_poll_upcall() have upcall
events cached for no use
-- 
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=rMdOmOKtbv&a=cc_unsubscribe


More information about the Bugs mailing list