Maximize memory for file cache or memory-based file system on Windows? -


i have application needs create many small files in maximum performance (less 1% of them may read later), , want avoid using asynchronous file api keep simplicity of code. size of total files written cannot pre-determined, figured achieve maximum performance, need:

1.windows utilize unused ram cache (especially file writes), no regard of relibility or other issues. if have more 1gb of unused ram , create 1 million of 1kb files, expect windows report "done" immediately, if has written nothing disk yet.

or

2.a memory-based file system backed real on-disk file system. whenever write files, should first write in memory only, , update on-disk file system in background. no delay in synchronous calls unless there isn't enough free memory. note it's different tmpfs or ram disk implementations on windows, since require fixed amount of memory , utilize page file when there isn't enough ram.

for option 1, have tested vhd files - while offer high 50% increase of total performance under configurations, still flushing-to-disk , cause writing wait unnecessarily. , appears there no way can disable journaling or further tweak write caching behavior.....

for option 2, have yet found similar..... such things exist?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -