Bug 1781543 - Avoid memory leak during inode ctx free
Summary: Avoid memory leak during inode ctx free
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: core
Version: rhgs-3.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: RHGS 3.5.z Batch Update 2
Assignee: Mohit Agrawal
QA Contact: Arun Kumar
URL:
Whiteboard:
Depends On: 1711240
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-10 09:04 UTC by hari gowtham
Modified: 2020-06-16 06:19 UTC (History)
20 users (show)

Fixed In Version: glusterfs-6.0-32
Doc Type: No Doc Update
Doc Text:
Clone Of: 1711240
Environment:
Last Closed: 2020-06-16 06:19:37 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:2572 0 None None None 2020-06-16 06:19:58 UTC

Description hari gowtham 2019-12-10 09:04:56 UTC
+++ This bug was initially created as a clone of Bug #1711240 +++

Description of problem:

gf_nfs_mt_inode_ctx leak

[nfs/server.nfs-server - usage-type gf_nfs_mt_inode_ctx memusage]
size=2628907920
num_allocs=109537830
max_size=2628907920
max_num_allocs=109537830
total_allocs=109537830

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

latest master branch

How reproducible:

high read or write activities


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from INVALID USER on 2019-05-17 10:18:54 UTC ---

This bug is automatically being proposed for the next minor release of Red Hat Gluster Storage by setting the release flag 'rhgs‑3.5.0' to '?'. 

If this bug should be proposed for a different release, please manually change the proposed release flag.

--- Additional comment from Xie Changlong on 2019-05-17 10:20:17 UTC ---

unlink file nerver invoke nfs_forget

--- Additional comment from Amar Tumballi on 2019-05-17 10:35:53 UTC ---

Which version of Gluster Release is it?

--- Additional comment from Worker Ant on 2019-05-17 10:57:54 UTC ---

REVIEW: https://review.gluster.org/22738 (inode: fix wrong loop count in __inode_ctx_free) posted (#1) for review on master by Xie Changlong

--- Additional comment from Xie Changlong on 2019-05-17 11:03:41 UTC ---

@Amar Tumballi  test gnfs with master branch 836e5b6b, nfs_forget never call. It seems glusterfs-3.12.2-47.el7 also has this problem.

--- Additional comment from Worker Ant on 2019-05-23 08:49:54 UTC ---

REVIEW: https://review.gluster.org/22738 (inode: fix wrong loop count in __inode_ctx_free) merged (#4) on master by Xavi Hernandez

Comment 1 Yaniv Kaul 2020-01-02 11:28:26 UTC
Since we plan to move from gNFS to Ganesha, can we close this one? Although looking at the fix - https://review.gluster.org/#/c/glusterfs/+/22738/ - sounds serious and important enough if we have not backported it yet?

Comment 4 shortj 2020-01-21 22:41:49 UTC
Will this be backported to 6?  We are seeing similar leaks in several hundred 6.7 and 4.0.2 clusters, but aren’t ready to pull the trigger on 7.x just yet.

Comment 20 errata-xmlrpc 2020-06-16 06:19:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:2572


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