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

Moderators: Site Moderators, FAHC Science Team

Post Reply
Xerxes_Phi
Posts: 6
Joined: Sat Mar 22, 2008 11:06 am
Hardware configuration: KRoM: AMD R9 5900 w/ RTX 3090 FE (Custom Liquid Cooled)
XERXES: AMD R7 3800X w/ RTX 3070 Ti FE (Custom Liquid Cooled)
PWDR PUFF: AMD R5 3600 w/ RTX3070-8G-EK (Custom Liquid Cooled)
Location: Montreal, QC CA
Contact:

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

Post by Xerxes_Phi »

How do I shutdown the WinSMP when I need to restart/shutdown my computer, without jeopardizing the WU?
Xerxes_Phi | Team PATCH (64512)
People and Technology Coexisting Harmoniously
Xerxes_Phi
Posts: 6
Joined: Sat Mar 22, 2008 11:06 am
Hardware configuration: KRoM: AMD R9 5900 w/ RTX 3090 FE (Custom Liquid Cooled)
XERXES: AMD R7 3800X w/ RTX 3070 Ti FE (Custom Liquid Cooled)
PWDR PUFF: AMD R5 3600 w/ RTX3070-8G-EK (Custom Liquid Cooled)
Location: Montreal, QC CA
Contact:

Re: How to properly shutdown the WinSMP client

Post 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.
Xerxes_Phi | Team PATCH (64512)
People and Technology Coexisting Harmoniously
él Mero
Posts: 49
Joined: Sun Dec 02, 2007 1:14 pm

Re: How to properly shutdown the WinSMP client

Post 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.
anandhanju
Posts: 522
Joined: Mon Dec 03, 2007 4:33 am
Location: Australia

Re: How to properly shutdown the WinSMP client

Post 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.
Xerxes_Phi
Posts: 6
Joined: Sat Mar 22, 2008 11:06 am
Hardware configuration: KRoM: AMD R9 5900 w/ RTX 3090 FE (Custom Liquid Cooled)
XERXES: AMD R7 3800X w/ RTX 3070 Ti FE (Custom Liquid Cooled)
PWDR PUFF: AMD R5 3600 w/ RTX3070-8G-EK (Custom Liquid Cooled)
Location: Montreal, QC CA
Contact:

Re: How to properly shutdown the WinSMP client

Post by Xerxes_Phi »

Thanks for the info.
That'll help a lot.

Cheers, guys~
Xerxes_Phi | Team PATCH (64512)
People and Technology Coexisting Harmoniously
DieselDragon
Posts: 3
Joined: Tue Mar 25, 2008 3:49 pm
Location: Farnborough, Hants, UK
Contact:

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

Post 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 +++
DieselDragon's points: 0 | Group: 0 (None) | Joined F@H: 25/03/2008CE - 15:30 GMT

Current F@H client: Aragorn - x86 Athlon64 2.3GHz single core, 512Mb RAM, MS WinXP SP2.
él Mero
Posts: 49
Joined: Sun Dec 02, 2007 1:14 pm

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

Post 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.
7im
Posts: 10179
Joined: Thu Nov 29, 2007 4:30 pm
Hardware configuration: Intel i7-4770K @ 4.5 GHz, 16 GB DDR3-2133 Corsair Vengence (black/red), EVGA GTX 760 @ 1200 MHz, on an Asus Maximus VI Hero MB (black/red), in a blacked out Antec P280 Tower, with a Xigmatek Night Hawk (black) HSF, Seasonic 760w Platinum (black case, sleeves, wires), 4 SilenX 120mm Case fans with silicon fan gaskets and silicon mounts (all black), a 512GB Samsung SSD (black), and a 2TB Black Western Digital HD (silver/black).
Location: Arizona
Contact:

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

Post by 7im »

Install the v5.04 console client as a service. Then stop and start the service in your scripts.
How to provide enough information to get helpful support
Tell me and I forget. Teach me and I remember. Involve me and I learn.
DieselDragon
Posts: 3
Joined: Tue Mar 25, 2008 3:49 pm
Location: Farnborough, Hants, UK
Contact:

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

Post 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 +++
DieselDragon's points: 0 | Group: 0 (None) | Joined F@H: 25/03/2008CE - 15:30 GMT

Current F@H client: Aragorn - x86 Athlon64 2.3GHz single core, 512Mb RAM, MS WinXP SP2.
Post Reply