Change latency while keeping write cache
Posted: Thu May 10, 2012 7:01 pm
(beta 0.7.2) I typically test the FancyCache beta with a size of 28 GB (32 GB system total) on a non-system drive with a process that does a lot of temporary work with large (2+ GB) files. The temporary files are usually (but not always) deleted after the process is complete, so I gain a tremendous benefit from the amount of "trimmed blocks" that do not actually need to be written through to the physical drive. As such I use high latencies (600 seconds or more depending on how long I suspect the process will take) which essentially turns FancyCache into a virtual RAM drive (without the downside of having to pick-and-choose what files to load onto the RAM drive first manually).
So far (for the past two months or so) this has been working spectacularly (on 2008R2), with one caveat. I sometimes grossly underestimate the amount of time the process will take to complete, so the (e.g.) 600 second write cache flush is triggered in the middle of the process, which slows everything down tremendously and isn't useful in any way, since the written data is very likely to be deleted before filling the cache.
Of course, I can simply increase the latency to an absurd amount and manually flush the cache when I'm finished (which is what I do now), but what would be nice as a convenience is a way to change the latency while the cache is active in case I realize 10 minutes into the process that it will take longer than the initial latency period (I can't stop the cache, change the latency, and restart it because the write cache is still partly full and flushing it will ruin any benefit I hope to get from the trimmed data).
I understand that changing most of the parameters for the cache while caching is active is intractable at the moment for various reasons, but I am curious about the latency -- it seems to me that it might be just a time check that could be changed without resetting anything else.
(also, keeping the settings I had last time I opened the FancyCache main window would be convenient, rather than my having to re-enter the same cache size, enable the write cache, and change the latency every time I am about to run the disk-intensive process.)
Thanks for letting us try the software!
So far (for the past two months or so) this has been working spectacularly (on 2008R2), with one caveat. I sometimes grossly underestimate the amount of time the process will take to complete, so the (e.g.) 600 second write cache flush is triggered in the middle of the process, which slows everything down tremendously and isn't useful in any way, since the written data is very likely to be deleted before filling the cache.
Of course, I can simply increase the latency to an absurd amount and manually flush the cache when I'm finished (which is what I do now), but what would be nice as a convenience is a way to change the latency while the cache is active in case I realize 10 minutes into the process that it will take longer than the initial latency period (I can't stop the cache, change the latency, and restart it because the write cache is still partly full and flushing it will ruin any benefit I hope to get from the trimmed data).
I understand that changing most of the parameters for the cache while caching is active is intractable at the moment for various reasons, but I am curious about the latency -- it seems to me that it might be just a time check that could be changed without resetting anything else.
(also, keeping the settings I had last time I opened the FancyCache main window would be convenient, rather than my having to re-enter the same cache size, enable the write cache, and change the latency every time I am about to run the disk-intensive process.)
Thanks for letting us try the software!