[Gluster-users] Gfapi memleaks, all versions
feihu929 at sina.com
feihu929 at sina.com
Sat Sep 3 10:21:59 UTC 2016
Hello, Oleksandr
You can compile that simple test code posted here(http://www.gluster.org/pipermail/gluster-users/2016-August/028183.html).
Then, run the command
$>valgrind cmd: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=massif ./glfsxmp
the cmd will produce a file like massif.out.xxxx, the file is the memory leak log file , you can use ms_print tool as below command
$>ms_print massif.out.xxxx
the cmd will output the memory alloc detail.
the simple test code just call glfs_init and glfs_fini 100 times to found the memory leak, by my test, all xlator init and fini is the main memory leak function. If you can locate the simple code memory leak code, maybe, you can locate the leak code in fuse client.
please enjoy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160903/5b938cbe/attachment.html>
More information about the Gluster-users
mailing list