SMP2 client - reboot Windows?

Soldato
Joined
25 Dec 2008
Posts
5,976
Location
Sheffield/Norwich
I was away this weekend and it seems, late on Saturday, my SMP2 client decided to stop working - an unknown error. Possibly to do with my shoddy internet connection; anyway, a reboot fixed it. So I was wondering if there's a way to check if it's working correctly and if it tries and fails five times to automatically reboot the computer?

As far as I can see, my only other option would be to do a fairly ugly script to reboot if my CPU usage drops below 25% for more than 10 minutes, or something like that - unless I perhaps set up Remote Desktop in conjunction with KE1HA's script?

Thoughts? :p
 
Many moons ago when I ran Ubuntu and SMP, it would sometimes crash after submitting a WU. It wasn't very often, but sometimes it could go for a day or two before I actually noticed! :p

I wrote a rather ugly script that periodically checked that all the smp threads were running, and if not, restart the folding clients [via the finstall stop/start scripts].

I am sure you could do something similar but have it reboot the machine rather than simply restart the clients. And written for Windows of course...
 
Last edited:
Haven't done any DOS scripting for a looooooooooong time so I wont embarrass myself. However, I did come across this: http://forums.techguy.org/software-development/529061-ms-dos-batch-file-check.html

The final bit of code is:

Code:
@ECHO off

:BEGIN

%SystemRoot%\Temp\pv.exe -d10000

%SystemRoot%\Temp\pv.exe > result.txt

FIND "notepad.exe" result.txt
IF ERRORLEVEL 1 START %SystemRoot%\system32\notepad.exe

GOTO BEGIN

This wont work for you as it is. As per the thread you will need to install the resource kit for the pv.exe. Also, you will obviously need to search for the specific SMP threads. I will assume when your SMP client crashes these threads aren't running.

Instead of START blah\blah\notepad.exe you will want shutdown -r 0. This should restart your computer if it can't find the thread. You will also need to adjust the path to the pv.exe also.

The -d10000 is a delay of 10 seconds. You aren't likely needing to check that often, so a higher number such as 900000 [15 minutes] might be better. So, the final script might look like:

Code:
@ECHO off

:BEGIN

%SystemRoot%\Temp\pv.exe -d10000

%SystemRoot%\Temp\pv.exe > result.txt

FIND "smp_a3" result.txt
IF ERRORLEVEL 1 shutdown.exe -r 0

GOTO BEGIN
 
Cheers, I'll look into that. Might have to wait until the next time it does it to see what's running, I stupidly didn't check task manager before restarting :rolleyes:
 
Hmm, it happened again this evening. Kept getting A1 cores, that might be the problem. Restarting the client (deleting old cores and work data as well) didn't help and neither did rebooting the computer - presumably last time it worked because by that time, it started downloading the A3 cores again.

There's no way to reject the A1 cores specifically, is there?

Currently I'm back on my rubbishy non-SMP Windows client :/ getting me a solid 4300 PPD between the 8 cores :rolleyes:

Unfortunately, I don't know when to start trying with the SMP2 client again :(

Edit: Up and running again :)
 
Last edited:
Maybe you need to backoff your OC a little for a while? The A1s just might be more twitchy than the others.
 
Back
Top Bottom