[Bugs] [Bug 1522662] New: Store allocated objects in the mem_acct
bugzilla at redhat.com
bugzilla at redhat.com
Wed Dec 6 08:26:59 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1522662
Bug ID: 1522662
Summary: Store allocated objects in the mem_acct
Product: GlusterFS
Version: mainline
Component: core
Assignee: bugs at gluster.org
Reporter: nbalacha at redhat.com
CC: bugs at gluster.org
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.
--
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