Page 1 of 1

How to properly shutdown the WinSMP client [ctrl+c]

Posted: Sun Mar 23, 2008 9:43 pm
by Xerxes_Phi
How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?

Re: How to properly shutdown the WinSMP client

Posted: Sun Mar 23, 2008 9:49 pm
by Xerxes_Phi
Note: Please read the license agreement (fah.exe -license). Further
use of this software requires that you have read and accepted this agreement.

If you see this twice, MPI is working
If you see this twice, MPI is working
2 cores detected
No directory settings found in registry. Using current directory...


--- Opening Log file [March 23 21:47:48]


# SMP Client ##################################################################
###############################################################################

Folding@Home Client Version 5.91beta6

http://folding.stanford.edu

###############################################################################
###############################################################################

Launch directory: C:\Program Files (x86)\Folding@Home Windows SMP Client V1.01
Executable: C:\Program Files (x86)\Folding@Home Windows SMP Client V1.01\fah.exe



[21:47:48] - Ask before connecting: No
[21:47:48] - User name: Xerxes_Phi (Team 64512)
[21:47:48] - User ID: 26BFB4697A8DDCE4
[21:47:48] - Machine ID: 1
[21:47:48]
[21:47:48] Loaded queue successfully.
[21:47:48]
[21:47:48] + Processing work unit
[21:47:48] Core required: FahCore_a1.exe
[21:47:48] Core found.
[21:47:48] Working on Unit 01 [March 23 21:47:48]
[21:47:48] + Working ...
[21:47:48]
[21:47:48] *------------------------------*
[21:47:48] Folding@Home Gromacs SMP Core
[21:47:48] Version 1.74 (March 10, 2007)
[21:47:48]
[21:47:48] Preparing to commence simulation
[21:47:48] - Ensuring status. Please wait.
[21:48:05] - User disabled assembly optimizations.
[21:48:05] Examination of work files indicates 8 consecutive improper terminatio
ns of core.
[21:48:10] - Expanded 2426518 -> 12927353 (decompressed 532.7 percent)
[21:48:11]
[21:48:11] Project: 2653 (Run 29, Clone 178, Gen 79)
[21:48:11]
[21:48:11] Entering M.D.

Re: How to properly shutdown the WinSMP client

Posted: Sun Mar 23, 2008 9:57 pm
by él Mero
Xerxes_Phi wrote:How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
Hi Xerxes_Phi, welcome to the forum!

In the console window you press Ctrl+C, then you wait for the four Fah_cores to disappear (hopefully the mpiexec and smpd will also do so). It will probably take a few minutes. Then you restart/shut down.

Re: How to properly shutdown the WinSMP client

Posted: Sun Mar 23, 2008 10:08 pm
by anandhanju
Welcome to the project Xerxes_Phi!

In addition to él Mero's response, please note that the WinSMP beta client has a known bug that prints out that the previous termination on the core was improper (#6 on the bugs list). As long as you see the message "Extra SSE boost OK." while the core starts up, you should be good. However, make sure that you use él Mero's instructions while shutting down as an improper shutdown can cause work to be lost.

Re: How to properly shutdown the WinSMP client

Posted: Mon Mar 24, 2008 12:17 am
by Xerxes_Phi
Thanks for the info.
That'll help a lot.

Cheers, guys~

Re: How to properly shutdown the WinSMP client [ctrl+c]

Posted: Tue Mar 25, 2008 4:10 pm
by DieselDragon
Hail everyone! :twisted:
First post here (Just joined Folding) and I've got another take on an earlier question:
Xerxes_Phi wrote:How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
I presume the WinSMP client is the multi-processor console version? :)

I've chosen to use the single processor console client on my own machine (Win32 Console version 5.04b) and I'd like to ask if the same solution to the above question (Pressing [Ctrl]+C) can be used on what I'm running. :)

Additionally, is there a way that I can begin a "safe" shutdown from another process, maybe by creating a "flag" file? I'm planning to control my Folding client by using a VBScript (Which manages several user-level processes) and I'd rather shut down the client properly as opposed to simply "Killing" the process in VBScript. :)

Farewell, and thanks for thy help! :cool: :twisted:
+++ DieselDragon +++

Re: How to properly shutdown the WinSMP client [ctrl+c]

Posted: Tue Mar 25, 2008 6:42 pm
by él Mero
Hi DieselDragon, welcome to the forum!
DieselDragon wrote:I presume the WinSMP client is the multi-processor console version? :)
Correct.
DieselDragon wrote:I've chosen to use the single processor console client on my own machine (Win32 Console version 5.04b) and I'd like to ask if the same solution to the above question (Pressing [Ctrl]+C) can be used on what I'm running. :)
Absolutely.
DieselDragon wrote:Additionally, is there a way that I can begin a "safe" shutdown from another process, maybe by creating a "flag" file? I'm planning to control my Folding client by using a VBScript (Which manages several user-level processes) and I'd rather shut down the client properly as opposed to simply "Killing" the process in VBScript. :)
Don't know.

Re: How to properly shutdown the WinSMP client [ctrl+c]

Posted: Tue Mar 25, 2008 7:55 pm
by 7im
Install the v5.04 console client as a service. Then stop and start the service in your scripts.

Re: How to properly shutdown the WinSMP client [ctrl+c]

Posted: Wed Mar 26, 2008 6:49 am
by DieselDragon
Hail 7im! :twisted:
7im wrote:Install the v5.04 console client as a service. Then stop and start the service in your scripts.
I suppose I could do, although I'm not currently used to starting and stopping services from scripts in such a manner. I generally prefer to deal with console level applications where I can, but mainly as a throwback to my DOS days! :lol:

Normally, I'd control a child process using an object created as a WSH.Shell object, a bit like this:

Code: Select all

Option Explicit

'Define initial vars and create the WSH.Shell object used to execute the program:
Dim objFolding
Set objFolding = CreateObject("WScript.Shell")

'To start the program, we'd use the Run command (Obviously! :-D):
Set objFolding = objFolding.Run "C:\Progra~1\Foldin~1\FaH_504b.exe"

'Then to stop the program, we could either do it nicely (Equivalent to the TERM command):
objFolding.Quit

'...Or without the above line, we could just call the following right away and destroy
' it's parent object in the blink of an eye! (Equivalent to the KILL command):
Set objFolding = Nothing
I'm not so sure about stopping a running process using this method (objFolding.Quit ought to work, I'd guess) as I only really use this sort of code to start processes and let them self-terminate. I really need to revise commands for controlling processes...But only after I've had some much needed sleep as I've been up all day and all night! :shock: :roll: :lol:

Farewell, and thanks again! :twisted:
+++ DieselDragon +++