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

FAQ, getting help, user experience about PrimoCache
Post Reply
Lizerd
Level 1
Level 1
Posts: 1
Joined: Mon Sep 08, 2025 5:32 am

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

Post 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.
tverweij
Level 7
Level 7
Posts: 99
Joined: Thu May 10, 2018 9:27 am

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

Post 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/
User avatar
Support
Support Team
Support Team
Posts: 3748
Joined: Sun Dec 21, 2008 2:42 am

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

Post by Support »

PrimoCache incorporates a safety mechanism that prevents Windows from shutting down until the flushing of all deferred data is complete.
TomB
Level 5
Level 5
Posts: 50
Joined: Wed Jul 29, 2020 11:15 pm

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

Post 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
User avatar
Support
Support Team
Support Team
Posts: 3748
Joined: Sun Dec 21, 2008 2:42 am

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

Post by Support »

it is deployed in restart, shutdown and sleep (if the defer-write option "Flush on Sleep" is checked).
TomB
Level 5
Level 5
Posts: 50
Joined: Wed Jul 29, 2020 11:15 pm

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

Post by TomB »

Thank you, sir.
Post Reply