EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 01/29/2014 14:41:15
by Olimpia Farcas (Basic support level)
Joined: 01/29/2014
Posts: 3

I'm using in my application CallbackFileSystem eval version.
From the documentation I can see that this is used to reduce the number of calls for OnGetFileInfo callback.
From my tests I cannot see any performance difference when meta cache is enabled or disabled. The number of calls for OnGetFileInfo callback is the same.
There is a way to determine if the cache is working or not?

Posted: 01/30/2014 01:19:24
by Volodymyr Zinin (Team)

CBFS when the meta-data cache is used saves meta information (file times, size, attributes) about number of the last opened files/directories that are currently already closed. So when some of these files/directories is being opened again CBFS doesn't call the OnGetFileInfo callback but uses the meta information from the cache.
Could you please describe more detailed how to get the behavior you see?
Posted: 01/31/2014 07:33:33
by Olimpia Farcas (Basic support level)
Joined: 01/29/2014
Posts: 3

The application is opening a WebDav server root folder that contains 3 folders in an explorer drive.
Then if I go in a child folder and then back to the root the number of calls of OnGetFileInfo callback is the same.
The second time I go back to root folder should not be called OnGetFileInfo callback, right?
Also if I disable(this.fileSystem.MetaDataCacheEnabled = false;) or enable the metadatacache the speed is the same.
the application is ok but is slow and I'm trying to improve the speed performance. any suggestions?
Posted: 01/31/2014 09:49:58
by Volodymyr Zinin (Team)

G_olimpia.farcas@gmail.com wrote:
The application is opening a WebDav server root folder that contains 3 folders in an explorer drive.

Does your application create a CBFS disk which "maps"/"mirrors" the WebDav server's root folder? And then you browse the CBFS virtual disk contents that causes the OnGetFileInfo callback calls?
If so then in the case MetaDataCacheEnabled is true the number of the OnGetFileInfo callbacks should be less.

G_olimpia.farcas@gmail.com wrote:
any suggestions?

It would be nice if we could reproduce it. Could you try it with the Mapper sample? Maybe it is even possible to reproduce in the simpler "environment" (i.e. without WebDav server).

Posted: 02/10/2014 09:51:56
by Olimpia Farcas (Basic support level)
Joined: 01/29/2014
Posts: 3


I noticed that a lot of OnGetFileInfo are called for: "\.svn" filename.
In my event log I have something like:

There is no such a file on my server. I tested on 2 servers and on both I have such calls in the events logs.
Do you know how this calls can appear on such files?

I could not reproduce with mapper sample.

Posted: 02/10/2014 10:04:22
by Eugene Mayevski (Team)

The fact that you don't have a file doesn't mean that it can't be searched for. Maybe some software is looking for it.

Sincerely yours
Eugene Mayevski
Posted: 02/10/2014 10:07:58
by Volodymyr Zinin (Team)

Some program tries to open/enter these directories. You can find what a program performs it by the use of Process Monitor from sysinternals.com. Set there one or more filters to minimize file I/O logs.

In CBFS there is the NonexistentFilesCacheEnabled property. You can set it to true and the number of such calls should decrease significantly.
Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.



Topic viewed 2835 times

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


Back to top

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

Got it!