[Bugs] [Bug 1653250] New: memory-leak in crypt xlator (glusterfs client)

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 26 11:27:55 UTC 2018


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

            Bug ID: 1653250
           Summary: memory-leak in crypt xlator (glusterfs client)
           Product: GlusterFS
           Version: 4.1
         Component: encryption-xlator
          Severity: high
          Assignee: bugs at gluster.org
          Reporter: vpolakis at gmail.com
                CC: bugs at gluster.org



Description of problem:
memory-leak in crypt xlator (glusterfs client)

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

How reproducible:
create/delete large amounts of files

Steps to Reproduce:
1.
2.
3.

Actual results:
I created ~70K files and memory (RSS) started up from 435208 to 1663336 then rm
and leave only 10K in the dir but RSS remained.

Expected results:
RSS should decrease after file deletion.

Additional info:
>From the client statedumps I see that inode cache is released 
[encryption/crypt.oam_enc-crypt - usage-type gf_crypt_mt_inode memusage]
size=9293896
num_allocs=11279
max_size=64594184
max_num_allocs=78391
total_allocs=78560

but local allocations seem still present...

after deletion:
[encryption/crypt.oam_enc-crypt - usage-type gf_crypt_mt_local memusage]
size=547946008
num_allocs=678151
max_size=547946008
max_num_allocs=678151
total_allocs=678151

As i have seen in crypt xlator GF_CALLOC allocates memory from
gf_crypt_mt_local pool.
local = GF_CALLOC (sizeof (*local), 1, gf_crypt_mt_local);

but in FRAME_DESTROY only mem_put(local) is called thus gf_common_mt_mem_pool
is released which results of errors like 0-mem-pool: mem-pool ptr is NULL from
glusterfs client.

-- 
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