EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Memory leak?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#34048
Posted: 07/16/2015 07:07:44
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

Hi,
I'm working on a application based on FUSE.

I create and write lots of files via vdbench(a file tool), then I find the application memory leak.
Whether there is a memory leak on FUSE or it's my code cause?

CBFS version:5.1.158

Thanks for your help.
#34049
Posted: 07/16/2015 07:18:32
by Eugene Mayevski (EldoS Corp.)

Well, we have no way to know this. You can try to use some memory leak detection tool with your application and see if there are any leaks reported. If you find something in CBFS API, we'll try to reproduce them locally. But it's more likely that the leak is caused either by FUSE API (it's secondary to the rest of APIs CBFS has) or by the way it is used (some buffer is not released when it should).


Sincerely yours
Eugene Mayevski
#34062
Posted: 07/16/2015 20:23:16
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

OK,thanks.
I'll try it.
#34063
Posted: 07/16/2015 23:57:14
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

I test the sample FUSE and result as following:
When I create a large file,
FileCacheEnabled -- Memory occupancy of FUSE is large;
FileCachedisabled -- Memory occupancy of FUSE is small.

What's the Negative effect of disabling FileCache and MetaDataChche?

Thanks for your help!
#34067
Posted: 07/17/2015 11:48:08
by Volodymyr Zinin (EldoS Corp.)

CBFS allocates file data cache in the user memory. That is why you see the large memory allocation.
In the case the file data cache is disabled (i.e. FileCacheEnabled is set to false) reading and writing of the small chunks of file data usually will be slower.
MetaDataCache is used only by the CBFS driver. Memory allocation is small and only in the kernel mode space. When it's enabled it significantly minimizes number of the OnGetFileInfo callback calls.
#34073
Posted: 07/17/2015 23:35:18
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

Thanks for your answer!
#34084
Posted: 07/22/2015 02:00:52
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

Hi,
I test the sample FUSE again and it seems memory leak.
I create 5000 files and file size is 0,then delete.
Then do the same operation several times,memory allocation has been increasing.


Could you please help me analyse it?
#34085
Posted: 07/22/2015 02:58:42
by Volodymyr Zinin (EldoS Corp.)

Moved to HelpDesk for further investigation.
#34086
Posted: 07/22/2015 03:41:20
by tao yu (Standard support level)
Joined: 12/25/2014
Posts: 14

OK,thanks!
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 5019 times

Number of guests: 2, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!