![]() |
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.
|
Check out this thread (I found it by googling "mprime gracefully shutdown"
[url]https://www.mersenneforum.org/showthread.php?t=13298[/url] |
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. |
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.
|
mprime should create save files if you kill it (not kill -9)
|
Pkill mprime
|
mprime will respond to Ctrl +C from what I remember.
|
Run [C]top[/C] and press k (and kill the pid with SIGTERM?),
|
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.