Feature Request: Disable Windows File Cache

FAQ, getting help, user experience about PrimoCache
Post Reply
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Feature Request: Disable Windows File Cache

Post by Jaga »

I was working on methods recently of how to force specific files into the cache using a hash calculation program (HashTools). Unfortunately, everything I fed it didn't make it into the large Primocache Cache Task I have setup, and some of it went into the Windows file cache. I understand this is normal behavior, but I'd like to find a way around it.

Using the SetSystemFileCacheSize() API, it is possible to disable and/or set the Windows file cache max size, which would have the effect of forcing greater use of the Primocache tasks.

Given that Primocache is a superior caching mechanism, it would naturally benefit any user of the software. The feature would be disabled by default, but a checkbox and reboot would enable.
User avatar
Support
Support Team
Support Team
Posts: 3623
Joined: Sun Dec 21, 2008 2:42 am

Re: Feature Request: Disable Windows File Cache

Post by Support »

This feature will be helpful to the dual caching issue. We'll study this. Thanks.
The problem is that Windows file caching is layered higher than PrimoCache. That is, if Windows finds the file in its cache, it will not go through the file system structure and then go to volume/disk sectors where PrimoCache stays. So if disable Windows File Cache, Windows has to query file's sector information each time, the performance will be affected.
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: Feature Request: Disable Windows File Cache

Post by Jaga »

Thank you for the answer Support.

Do you think with faster machines and drives (i.e. recent MB/CPU and NVMe or performance SSD) that the query time would be significant enough to slow down the disk subsystem? Or could the potential gains of using 100% Cache Task queries (and no Windows cache) be beneficial?
User avatar
Support
Support Team
Support Team
Posts: 3623
Joined: Sun Dec 21, 2008 2:42 am

Re: Feature Request: Disable Windows File Cache

Post by Support »

The query time still will be significant especially when there are lots of small files access, for eg, testing 4KB performance.
User avatar
Jaga
Contributor
Contributor
Posts: 692
Joined: Sat Jan 25, 2014 1:11 am

Re: Feature Request: Disable Windows File Cache

Post by Jaga »

Understood, thank you. I'd still like some way to test, but that's probably outside the scope of the software at this stage. All the tools I can find for managing the Windows File Cache are many years old, and designed for older editions like XP or W7.
Post Reply