[Bugs] [Bug 1523455] New: Store allocated objects in the mem_acct

bugzilla at redhat.com bugzilla at redhat.com
Fri Dec 8 02:41:18 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1523455

            Bug ID: 1523455
           Summary: Store allocated objects in the mem_acct
           Product: GlusterFS
           Version: 3.12
         Component: core
          Assignee: bugs at gluster.org
          Reporter: nbalacha at redhat.com
                CC: bugs at gluster.org
        Depends On: 1522662



+++ This bug was initially created as a clone of Bug #1522662 +++

Description of problem:
There is no way to get the address of objects of a particular type that are
allocated. The struct mem_acct and struct mem_acct_rec store the overall stats
but there is no easy way to track down the currently allocated objects of a
particular type. 



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:


These changes add struct list heads to the struct mem_acct_rec and struct
mem_header. Allocated objects will be added to the mem_acct_rec list in
gf_mem_set_acct_info and removed in __gf_free. 

This allows developers to examine all the allocated objects of a particular
type in memory if required and could be helpful while debugging.

This change is not compiled in by default.

--- Additional comment from Worker Ant on 2017-12-06 04:02:20 EST ---

REVIEW: https://review.gluster.org/18945 (core/memacct: save allocs in
mem_acct_rec list) posted (#1) for review on master by N Balachandran

--- Additional comment from Worker Ant on 2017-12-07 10:13:58 EST ---

COMMIT: https://review.gluster.org/18945 committed in master by \"N
Balachandran\" <nbalacha at redhat.com> with a commit message- core/memacct: save
allocs in mem_acct_rec list

With configure --enable-debug, add all object allocations
to a list in the corresponding mem_acct_rec. This
allows us to see all objects of a particular type
and allows for additional debugging in case of memory
leaks.

This is not compiled in by default and must be explicitly
enabled. It is intended to be used by developers.

Change-Id: I7cf2dbeadecf994423d7e7591e85f18d2575cce8
BUG: 1522662
Signed-off-by: N Balachandran <nbalacha at redhat.com>


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1522662
[Bug 1522662] Store allocated objects in the mem_acct
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list