[Gluster-users] strange memory consumption with libgfapi

Pavel Cernohorsky pavel.cernohorsky at appeartv.com
Tue Nov 1 14:04:45 UTC 2016


For those who are interested, colleague of mine found out the problem is 
this line:

itable = inode_table_new (131072, new_subvol);

in glfs-master.c (graph_setup function). That hard-coded number is huge! 
And looking at the history of Gluster sources, it seems that this number 
used to be a number of bytes, but it became number of inodes, but 
someone forgot to change this hard-coded value!

Anybody from RedHat here interested in fixing it?

Kind regards,

Pavel


On 10/25/2016 09:28 AM, Oleksandr Natalenko wrote:
> Hello.
>
> 25.10.2016 09:11, Pavel Cernohorsky wrote:
>> Unfortunately it is not
>> possible to use valgrind properly, because libgfapi seems to leak just
>> by initializing and deinitializing (tested with different code).
>
> Use Valgrind with Massif tool. That would definitely help.



More information about the Gluster-users mailing list