New Defer-Write Setting

Suggestions around PrimoCache
Post Reply
TomB
Level 4
Level 4
Posts: 37
Joined: Wed Jul 29, 2020 11:15 pm

New Defer-Write Setting

Post by TomB »

I would like to request a new behavior for the Write Mode of 'Buffer' and 'Intelligent', so that they could be switchable to work whether or not the computer is idle. The switch would allow Buffer Mode or Intelligent Mode to either work like they do now, or work according to the requested new behavior.

The new behavior would not be Native Mode plus (Buffer Mode or Intelligent Mode), as it is now. Instead, the new behavior would be (Buffer Mode or Intelligent Mode) minus Native Mode, but still performing 'Buffer' flushing or 'Intelligent' flushing whether the computer is busy or idle. This behavior would be optional, so that a switch would enable either the new behavior or the current behavior as it is now.

Therefore, the new behavior of Buffer Mode / Intelligent Mode would work like this: If the switch is set to the new behavior, then these modes would not start flushing all deferred data to disk each time the specified Latency Time Interval expires. Instead, each time the Latency Interval expires, these modes would continue to do exactly what they do now, except that they would also do it even if the computer is busy. So the new behavior would be somewhat like Native Mode, since Native Mode does not consider whether the computer is busy or idle. But the behavior would also be somewhat like Buffer or Intelligent Mode, since these modes flush only a portion of deferred data to disk and they never attempt to flush all deferred data to disk. This new behavior also would never attempt to flush all deferred data to disk and also would flush only a portion of deferred data to disk in an attempt to keep some percentage of the cache available. The difference is that they would not be paired with Native Mode flushing all deferred data to disk on each Latency Interval. Instead, at each Latency Interval they would simply flush the specified percentage of deferred data to disk if the deferred data threshold amount of cache size was reached, no matter whether the computer was busy or idle.

I think this behavior would make Buffer Mode and Intelligent Mode much more useful to customers where the computer has different workloads at different times, such as sometimes it is quite often idle but other times it is rarely or never idle for 6 or 8 or 10 or 12 hours at a time. This is valuable because it would cause Buffer Mode and Intelligent Mode to automatically scale with the workload. In other words, Native Mode would not perform unnecessary writes when workload is light, but Buffer and Intelligent Modes would continue to work as designed even when workload is heavy.

Thank you for considering my request!

Tom
User avatar
Support
Support Team
Support Team
Posts: 3013
Joined: Sun Dec 21, 2008 2:42 am

Re: New Defer-Write Setting

Post by Support »

Thank you very much for your suggestion!
Primo Ramdisk | PrimoCache
Romex Software Support
User avatar
Support
Support Team
Support Team
Posts: 3013
Joined: Sun Dec 21, 2008 2:42 am

Re: New Defer-Write Setting

Post by Support »

PS. You may set the defer-write latency to INFINITE to remove the affect of Native mode.
Primo Ramdisk | PrimoCache
Romex Software Support
TomB
Level 4
Level 4
Posts: 37
Joined: Wed Jul 29, 2020 11:15 pm

Re: New Defer-Write Setting

Post by TomB »

Thank you!

Yes, I can do that. And in fact I have tried it and it works perfect, but only if the computer has some idle time sometimes.

But in the case when the computer is always busy and never idle for long time, then Buffer Mode and Intelligent Mode never flushes the percentage of deferred data to disk, even when the 'cache used' threshold has occurred. Because never idle.

So I wanted to keep the Deferred Write Latency to a smaller value, and each time Latency expires then Buffer Mode would check the percent full threshold and perform partial flush if necessary even if computer is busy. Instead of just flushing all deferred to disk every Latency time.

Thanks again,

Tom
User avatar
Support
Support Team
Support Team
Posts: 3013
Joined: Sun Dec 21, 2008 2:42 am

Re: New Defer-Write Setting

Post by Support »

You are right. Buffer/Intelligent mode is based on Windows Idle. We will give more options. Thanks.
Primo Ramdisk | PrimoCache
Romex Software Support
TomB
Level 4
Level 4
Posts: 37
Joined: Wed Jul 29, 2020 11:15 pm

Re: New Defer-Write Setting

Post by TomB »

Thank you and your team for our consideration.
Post Reply