Bug 1685414

Summary: glusterd memory usage grows at 98 MB/h while running "gluster v profile" in a loop
Product: [Community] GlusterFS Reporter: Mohit Agrawal <moagrawa>
Component: glusterdAssignee: Mohit Agrawal <moagrawa>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: mainlineCC: amukherj, bmekala, bugs, dahorak, mbukatov, nchilaka, rcyriac, rhs-bugs, sankarshan, storage-qa-internal, vbellur
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1684648 Environment:
Last Closed: 2019-03-05 14:56:46 UTC Type: ---
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: 1684648, 1685771    
Bug Blocks:    

Comment 1 Mohit Agrawal 2019-03-05 08:03:08 UTC
Hi,

glusterd has memory leak while "gluster v profile info" run in a loop.

To reproduce the same follow below steps
1) Setup 3 1x3 volumes and start the volume
2) Start profile for all the volume
3) Run below command
  while [ 1 ]; do pmap -x `pgrep glusterd` | grep total; gluster v profile vol1 info > /dev/null; gluster v profile vol2 info > /dev/null; gluster v profile vol3 info > /dev/null;sleep 5; done


Thanks,
Mohit Agrawal

Comment 2 Worker Ant 2019-03-05 08:13:19 UTC
REVIEW: https://review.gluster.org/22301 (glusterd: glusterd memory leak while running \"gluster v profile\" in a loop) posted (#1) for review on master by MOHIT AGRAWAL

Comment 3 Worker Ant 2019-03-05 14:56:46 UTC
REVIEW: https://review.gluster.org/22301 (glusterd: glusterd memory leak while running \"gluster v profile\" in a loop) merged (#3) on master by Atin Mukherjee