![]() |
|
|
#1 |
|
"David Kirkby"
Jan 2021
Althorne, Essex, UK
16E16 Posts |
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.
|
|
|
|
|
|
#2 |
|
6809 > 6502
"""""""""""""""""""
Aug 2003
101×103 Posts
230708 Posts |
Check out this thread (I found it by googling "mprime gracefully shutdown"
https://www.mersenneforum.org/showthread.php?t=13298 |
|
|
|
|
|
#3 |
|
Feb 2005
Colorado
10100001002 Posts |
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. Last fiddled with by PhilF on 2021-02-18 at 00:38 |
|
|
|
|
|
#4 |
|
"Alexander"
Nov 2008
The Alamo City
24×43 Posts |
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.
|
|
|
|
|
|
#5 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
2×53×71 Posts |
mprime should create save files if you kill it (not kill -9)
|
|
|
|
|
|
#6 |
|
Dec 2011
After milion nines:)
5·172 Posts |
Pkill mprime
|
|
|
|
|
|
#7 |
|
Bemusing Prompter
"Danny"
Dec 2002
California
1001010101102 Posts |
mprime will respond to Ctrl +C from what I remember.
|
|
|
|
|
|
#8 |
|
Sep 2002
Database er0rr
373910 Posts |
Run top and press k (and kill the pid with SIGTERM?),
Last fiddled with by paulunderwood on 2021-02-22 at 17:09 |
|
|
|
|
|
#9 |
|
Jul 2020
23·3 Posts |
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.
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can I stop mprime grabbing a new workload when its finished its current task? | drkirkby | Information & Answers | 1 | 2021-01-24 14:34 |
| How to stop mprime from requesting assignments | SELROC | PrimeNet | 8 | 2018-10-15 15:48 |
| How to gracefully stop mprime under linux | odin | Software | 1 | 2010-04-15 20:45 |
| mprime: how to stop exactly one worker (out of 2) | axn | Software | 7 | 2009-03-28 10:56 |
| mprime and linux | Echoblade | Information & Answers | 3 | 2007-06-24 22:28 |