how to avoid data corruption on windows shutdown if you forgot to suspend projects

Message boards : BOINC client : how to avoid data corruption on windows shutdown if you forgot to suspend projects
Message board moderation

To post messages, you must log in.

AuthorMessage
Raul Nagel Etges

Send message
Joined: 29 Aug 15
Posts: 4
Brazil
Message 63902 - Posted: 29 Aug 2015, 14:20:47 UTC
Last modified: 29 Aug 2015, 14:30:29 UTC

First you tell the Boinc manager to suspend projects on shutdown. To do this, on the boinc manager on the main menu you go to Options, choose Exclusive Applications, then on suspend cpu and network usage and also on gpu, click on Add button and go to C:\windows\system32. Choose the file "shutdown.exe" (this is the program that controls windows shutdown). If you can't find this program, it might be hidden, so follow these instructions:
http://www.howtogeek.com/howto/windows-vista/show-hidden-files-and-folders-in-windows-vista/?PageSpeed=noscript

Now we are going to tell windows NOT to auto-kill programs on shutdown, so that the programs have time to close themselves.
1. Press "Window +R" keys to start "Run" dialogue box and type "gpedit.msc" in the dialogue box.

2. Click "OK", "Local Group Policy Editor" window will pop up.

3. Navigate to "Computer Configuration" --> "Administrative Templates" --> "System" --> "Shutdown Options". Double-click "Turn off automatic termination of applications that block or cancel shutdown" on the right panel. In the new dialogue box popped up, set configuration option as "Enabled".

If the above procedure doesn't work, you can do the following to stop windows from auto-killing tasks:
(Be careful, because this is done by editing the windows registry, and if you do it wrong, your windows might not boot at all.)
http://www.eightforums.com/tutorials/37417-autoendtask-apps-not-responding-shutdown-windows.html

I tested this a few times this week by making windows (7 64bit SP1) shutdown without closing boinc and without suspending projects and it worked for me. No data corruption so far.
ID: 63902 · Report as offensive
Profile ChertseyAl
Avatar

Send message
Joined: 17 Jul 09
Posts: 107
United Kingdom
Message 63904 - Posted: 29 Aug 2015, 15:27:52 UTC

Cool story bro.

But I have to say I've never had data corruption when shutting down, BOINCing for 10 years a dozen machines at a time. But then I only use XP and Ubuntu, so maybe they are safer. Though I doubt it.
ID: 63904 · Report as offensive
Raul Nagel Etges

Send message
Joined: 29 Aug 15
Posts: 4
Brazil
Message 63906 - Posted: 29 Aug 2015, 17:20:03 UTC - in response to Message 63904.  
Last modified: 29 Aug 2015, 18:03:15 UTC

I have already had 5 recently after i started using boinc, and my computer is stable. All drivers updated, i play games and have done video editing with virtualdub, no problems with that.
ID: 63906 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 63907 - Posted: 29 Aug 2015, 17:51:11 UTC - in response to Message 63906.  

There used to be a [Vista related] BOINC registry tweak to change the seconds delay, but frankly since W7 not paid much attention. Client is shut down by OS [I only run service installs if that is the difference].

On Ubuntu 14:04 LTS a shutdown is like 5 seconds. Never see corrupted tasks.

Maybe it's something with write delays that causes you to have this, but strictly speaking, BOINC is supposed to know the last good checkpoint from which to resume.

Anyway, thanks for the tips, did not know there were other ways to influence shutdown via the GUI.
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 63907 · Report as offensive
Raul Nagel Etges

Send message
Joined: 29 Aug 15
Posts: 4
Brazil
Message 63908 - Posted: 29 Aug 2015, 18:11:04 UTC - in response to Message 63907.  
Last modified: 29 Aug 2015, 18:15:01 UTC


Maybe it's something with write delays that causes you to have this, but strictly speaking, BOINC is supposed to know the last good checkpoint from which to resume.


Almost all of my data corruption was on the longer projects :( (haddam_3p - which takes about 72hs to complete - intel i7 @ 3.2ghz) so maybe there was not a checkpoint yet, although isn't the default of boinc to save every 1 minute ? (i changed that to 15 minutes TODAY because i save on an ssd - will change to save on my only hdd(external usb) after all the current tasks complete (not receiving new tasks for now).

On a side note, people should not be using win xp anymore because of security risks, and if you have a new cpu, only win 7 and up support some new instructions - i know, sounds strange).
ID: 63908 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15478
Netherlands
Message 63910 - Posted: 29 Aug 2015, 18:45:08 UTC - in response to Message 63908.  

...so maybe there was not a checkpoint yet, although isn't the default of boinc to save every 1 minute ? .

Checkpointing is something the science application does, not BOINC. The value set in Request tasks to checkpoint at most every N seconds will be ignored by the science application if you set it to a value much lower than the one programmed into the application.

You'll have to ask at CPDN forums how long it normally takes for their haddam_3p application to checkpoint.
ID: 63910 · Report as offensive
Raul Nagel Etges

Send message
Joined: 29 Aug 15
Posts: 4
Brazil
Message 63916 - Posted: 29 Aug 2015, 19:55:17 UTC

ok, thanks Ageless and SekeRob2.
ID: 63916 · Report as offensive

Message boards : BOINC client : how to avoid data corruption on windows shutdown if you forgot to suspend projects

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.