mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   Can I cleanly stop mprime on Linux? (https://www.mersenneforum.org/showthread.php?t=26505)

drkirkby 2021-02-17 21:34

Can I cleanly stop mprime on Linux?
 
Is there a way to cleanly stop mprime, such that it writes what it needs to disk, then exits? I can obviously send a kill -9 to stop it, but that's not clean.

Uncwilly 2021-02-17 22:03

Check out this thread (I found it by googling "mprime gracefully shutdown"
[url]https://www.mersenneforum.org/showthread.php?t=13298[/url]

PhilF 2021-02-18 00:36

If you start mprime with the -m option, the menu is always active, even days later and while in the middle of the test. So, just type 4 and press enter to stop the test, then type 5 and press enter to exit mprime.

EDIT: Or, if you forget the menu option numbers, you can display the menu by just pressing enter.

Happy5214 2021-02-18 04:12

I usually just use 5 alone. That stops the running workers and saves progress before exiting. 4-<Enter> doesn't work if there are workers that aren't running.

Prime95 2021-02-18 04:34

mprime should create save files if you kill it (not kill -9)

pepi37 2021-02-18 06:07

Pkill mprime

ixfd64 2021-02-22 16:04

mprime will respond to Ctrl +C from what I remember.

paulunderwood 2021-02-22 17:06

Run [C]top[/C] and press k (and kill the pid with SIGTERM?),

keisentraut 2021-03-01 20:41

Just run "killall mprime", i.e. send a SIGINT to it. It will save the progess which will take a few seconds. mprime will only lose progress, if you send the SIGTERM too fast (few seconds) after the SIGINT or if the mprime process does not have write permissions.


All times are UTC. The time now is 11:23.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.