Bug 1523048

Summary: glusterd consuming high memory
Product: [Community] GlusterFS Reporter: Atin Mukherjee <amukherj>
Component: glusterdAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 3.12CC: abhishku, amukherj, bkunal, bmekala, bugs, jahernan, moagrawa, pdhange, psony, rhs-bugs, sbairagy, storage-qa-internal, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-glusterfs-3.12.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1522775 Environment:
Last Closed: 2017-12-19 07:18:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1522775, 1523050    
Bug Blocks: 1512470, 1523046, 1526365    

Comment 1 Worker Ant 2017-12-07 04:52:18 UTC
REVIEW: https://review.gluster.org/18979 (glusterd: Free up svc->conn on volume delete) posted (#1) for review on release-3.12 by Atin Mukherjee

Comment 2 Atin Mukherjee 2017-12-07 04:53:19 UTC
Problem description:

If a volume is created/started/stopped/deleted and then the same step is repeated multiple times, through the statedump output we have observed a memory leak in the following data types:

gf_common_mt_rpcclnt_t
gf_common_mt_rpcclnt_savedframe_t
gf_common_mt_rpc_trans_t

--- Additional comment from Worker Ant on 2017-12-06 23:46:57 EST ---

COMMIT: https://review.gluster.org/18957 committed in master by \"Atin Mukherjee\" <amukherj> with a commit message- glusterd: Free up svc->conn on volume delete

Daemons like snapd, tierd and gfproxyd are maintained on per volume
basis and on a volume delete we should destroy the rpc connection
established for them.

Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014
BUG: 1522775
Signed-off-by: Atin Mukherjee <amukherj>

Comment 3 Worker Ant 2017-12-12 10:01:17 UTC
COMMIT: https://review.gluster.org/18979 committed in release-3.12 by \"Atin Mukherjee\" <amukherj> with a commit message- glusterd: Free up svc->conn on volume delete

Daemons like snapd, tierd and gfproxyd are maintained on per volume
basis and on a volume delete we should destroy the rpc connection
established for them.

>mainline patch : https://review.gluster.org/#/c/18957/

Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014
BUG: 1523048
Signed-off-by: Atin Mukherjee <amukherj>
(cherry picked from commit 36ce4c614a3391043a3417aa061d0aa16e60b2d3)

Comment 4 Jiffin 2017-12-19 07:18:35 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-glusterfs-3.12.4, please open a new bug report.

glusterfs-glusterfs-3.12.4 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://lists.gluster.org/pipermail/gluster-devel/2017-December/054093.html
[2] https://www.gluster.org/pipermail/gluster-users/