Go Back > Great Internet Mersenne Prime Search > Software

Thread Tools
Old 2021-02-17, 21:34   #1
Jan 2021

23·5 Posts
Default 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.
drkirkby is offline   Reply With Quote
Old 2021-02-17, 22:03   #2
6809 > 6502
Uncwilly's Avatar
Aug 2003
101×103 Posts

13·719 Posts

Check out this thread (I found it by googling "mprime gracefully shutdown"
Uncwilly is offline   Reply With Quote
Old 2021-02-18, 00:36   #3
PhilF's Avatar
Feb 2005

2×5×59 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
PhilF is offline   Reply With Quote
Old 2021-02-18, 04:12   #4
Happy5214's Avatar
Nov 2008
The Alamo City

3×163 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.
Happy5214 is offline   Reply With Quote
Old 2021-02-18, 04:34   #5
P90 years forever!
Prime95's Avatar
Aug 2002
Yeehaw, FL

2×3×52×72 Posts

mprime should create save files if you kill it (not kill -9)
Prime95 is online now   Reply With Quote
Old 2021-02-18, 06:07   #6
pepi37's Avatar
Dec 2011
After milion nines:)

140510 Posts

Pkill mprime
pepi37 is offline   Reply With Quote
Old 2021-02-22, 16:04   #7
Bemusing Prompter
ixfd64's Avatar
Dec 2002

22×3×197 Posts

mprime will respond to Ctrl +C from what I remember.
ixfd64 is offline   Reply With Quote
Old 2021-02-22, 17:06   #8
paulunderwood's Avatar
Sep 2002
Database er0rr

1110000001012 Posts

Run top and press k (and kill the pid with SIGTERM?),

Last fiddled with by paulunderwood on 2021-02-22 at 17:09
paulunderwood is offline   Reply With Quote

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

All times are UTC. The time now is 07:02.

Fri Feb 26 07:02:45 UTC 2021 up 85 days, 3:14, 0 users, load averages: 2.42, 2.23, 1.94

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.