Bug 834465 - Memory leak in fuse-bridge
Summary: Memory leak in fuse-bridge
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
urgent
Target Milestone: ---
Assignee: Raghavendra Bhat
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 895528 921770
TreeView+ depends on / blocked
 
Reported: 2012-06-21 23:07 UTC by Joe Julian
Modified: 2015-12-01 16:45 UTC (History)
5 users (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 921770 (view as bug list)
Environment:
Last Closed: 2013-07-24 17:38:35 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)
Valgrind from about an hour of agonizingly slow desktop usage. :D (437.04 KB, text/x-log)
2012-06-21 23:07 UTC, Joe Julian
no flags Details
dump file from instance with 2.8g usage (11.91 MB, text/plain)
2012-06-23 20:23 UTC, Joe Julian
no flags Details

Description Joe Julian 2012-06-21 23:07:22 UTC
Created attachment 593623 [details]
Valgrind from about an hour of agonizingly slow desktop usage. :D

Description of problem:
Since upgrading to 3.3, my personal desktop machine has been oom killing the client about every 48 hours. Mine is only one of two machines that uses the home directory with an xwindows desktop and the other one logs out every night.

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


How reproducible:
About every 48 hours

Steps to Reproduce:
1. Mount the home volume
2. Leave my desktop logged in
  
Actual results:
oom killer kills glusterfs after it consumes around 6 gig

Expected results:
It shouldn't use anywhere near that much

Attached is some valgrind output. I've never really used it before, so I hope I picked the right options that would be helpful.

Comment 1 Joe Julian 2012-06-23 20:23:41 UTC
Created attachment 593942 [details]
dump file from instance with 2.8g usage

Comment 2 Amar Tumballi 2012-07-03 23:55:39 UTC
Johny, can you look at the valgrind report and come up with the fix? Looks like simple one to crack.

Comment 3 Amar Tumballi 2012-11-20 12:29:16 UTC
Joe, sorry about *long* delay about this bug. Want to check if you are seeing similar issues with 3.3.1 (or 3.4.0qa2) releases.

Anyways, will get this particular bug addressed soon.

Comment 4 Amar Tumballi 2012-12-26 05:51:36 UTC
reducing the priority (from urgent to high), as this issue is not as severe now with 3.4.0qa6 release.

Comment 5 Amar Tumballi 2013-02-01 06:30:47 UTC
not seeing much of the leak in fuse bridge now (mainly with proper fd and lock migration code in place). Also the valgrind didn't help us much on top of the recent master branch code.

Reducing the priority to 'medium' and would be closed after running this with the 3.4.0 beta releases.

Comment 6 Vijay Bellur 2013-02-18 00:55:51 UTC
CHANGE: http://review.gluster.org/4523 (Better mechanism to handle memory accounting) merged in master by Anand Avati (avati)

Comment 7 Vijay Bellur 2013-02-18 00:58:14 UTC
CHANGE: http://review.gluster.org/4524 (mount.glusterfs: Introduce mem-accounting as an option) merged in master by Anand Avati (avati)

Comment 8 Vijay Bellur 2013-02-18 01:03:54 UTC
CHANGE: http://review.gluster.org/4525 (libglusterfs: Fix memory leaks in fd_lk_insert_and_merge) merged in master by Anand Avati (avati)

Comment 9 Vijay Bellur 2013-02-18 04:49:56 UTC
CHANGE: http://review.gluster.org/4530 (libglusterfs: Fix memory leaks in fd_lk_insert_and_merge) merged in release-3.3 by Anand Avati (avati)

Comment 10 Vijay Bellur 2013-03-03 14:19:28 UTC
CHANGE: http://review.gluster.org/4527 (Better mechanism to handle memory accounting) merged in release-3.4 by Vijay Bellur (vbellur)

Comment 11 Vijay Bellur 2013-03-03 14:19:47 UTC
CHANGE: http://review.gluster.org/4528 (mount.glusterfs: Introduce mem-accounting as an option) merged in release-3.4 by Vijay Bellur (vbellur)

Comment 12 Vijay Bellur 2013-03-03 14:20:43 UTC
CHANGE: http://review.gluster.org/4529 (libglusterfs: Fix memory leaks in fd_lk_insert_and_merge) merged in release-3.4 by Vijay Bellur (vbellur)

Comment 13 Anand Avati 2013-07-19 01:28:09 UTC
REVIEW: http://review.gluster.org/5343 (glusterfsd: Cleanup memory accounting to honor argp_parse properly) posted (#1) for review on master by Harshavardhana (harsha)

Comment 14 Anand Avati 2013-07-19 01:35:01 UTC
REVIEW: http://review.gluster.org/5343 (glusterfsd: Cleanup memory accounting to honor argp_parse properly) posted (#2) for review on master by Harshavardhana (harsha)


Note You need to log in before you can comment on or make changes to this bug.