Page 1 of 1

Set up a delay for windows restart so that defer writes can be completed

Posted: Mon Sep 08, 2025 5:42 am
by Lizerd
As the title said, is there any way I can set up a delay during windows restart so that any deferred writes can finish first? I've tried searching here and across the internet and can't seem to find an answer. Only thing related was a a search AI answer that said that any deferred writes will not be finished upon hitting windows restart, which I think is true.

If the power goes out, I understand it could still be an issue.

But I have read only (L1) cache on my windows drive.

And a L1 cache 75/25 read write mix on my separate drive, with the 10 sec latency defer, that is mostly just steam games, because it wouldn't a huge issue if it didn't finish writes. But a little prevention for even this small potential problem, would be if I could set something up in windows to delay a restart until it was done.

If no way to set up a delay for a time, and.or for it to check this software specifically, is there any way I could create my own .bat file or something that would tell it to finish, and then restart? Then have this shortcut on my desktop to use as my new restart button? I know I could open the software and tell it to finish and then hit restart, but just looking for another alternative in case I forget to do it every time.

Re: Set up a delay for windows restart so that defer writes can be completed

Posted: Mon Sep 08, 2025 5:29 pm
by tverweij
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
"WaitToKillServiceTimeout"="120000"

see: https://www.coretechnologies.com/blog/w ... down-time/

Re: Set up a delay for windows restart so that defer writes can be completed

Posted: Wed Sep 10, 2025 3:11 pm
by Support
PrimoCache incorporates a safety mechanism that prevents Windows from shutting down until the flushing of all deferred data is complete.

Re: Set up a delay for windows restart so that defer writes can be completed

Posted: Wed Sep 10, 2025 3:34 pm
by TomB
Hello, Support.
Is the PrimoCache 'wait until all deferred data is flushed' safety mechanism true only for restarts, or does the mechanism work for any and all Windows shutdown?
Thank you!
Tom

Re: Set up a delay for windows restart so that defer writes can be completed

Posted: Thu Sep 11, 2025 5:21 am
by Support
it is deployed in restart, shutdown and sleep (if the defer-write option "Flush on Sleep" is checked).

Re: Set up a delay for windows restart so that defer writes can be completed

Posted: Thu Sep 11, 2025 2:30 pm
by TomB
Thank you, sir.