Hide Forgot
open lock and close on a number of files leads to memleak. Executing attached c program causes the memleak. Taking statedump of the glusterfs server process and checking for the mem type 17 tells the huge number of allocations being done for that memory type. memusage.protocol/server.mirror-server.type.17.size=1988784 memusage.protocol/server.mirror-server.type.17.num_allocs=11838 memusage.protocol/server.mirror-server.type.17.max_size=1988784 memusage.protocol/server.mirror-server.type.17.max_num_allocs=11838
PATCH: http://patches.gluster.com/patch/7479 in master (features/locks:update the refcount while releasing a lock)
PATCH: http://patches.gluster.com/patch/7480 in release-3.1 (features/locks:update the refcount while releasing a lock)
PATCH: http://patches.gluster.com/patch/7481 in release-3.2 (features/locks: update refcount while releasing a lock)
With the patch the number of allocations in the statedump is not much after executing the attached program.