mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2021-01-11, 16:37   #1
drkirkby
 
Jan 2021

11102 Posts
Default When can I shut down, with the least wasted work?

I believe that if a computer crashes, or otherwise needs to be shut down, all ones work with mprime is not lost, as the data is saved every half hour. Is that correct?

I need to shut the machine down for 5 minutes to move it. I don't have any compelling reason to do it now, or in an hours time, or whatever.

When would be the best to shut the machine, wasting as little CPU time as possible? Looking at the recent files generated, I see

Code:
-rw-rw-r--. 1 drkirkby drkirkby        161 Jan 11 03:42 results.txt
-rw-rw-r--. 1 drkirkby drkirkby        356 Jan 11 03:42 results.json.txt
-rw-rw-r--. 1 drkirkby drkirkby         71 Jan 11 03:42 worktodo.txt
-rw-rw-r--. 1 drkirkby drkirkby       2746 Jan 11 03:42 prime.log
-rw-rw-r--. 1 drkirkby drkirkby       1705 Jan 11 05:14 results.bench.txt
-rw-rw-r--. 1 drkirkby drkirkby        784 Jan 11 05:14 gwnum.txt
-rw-rw-r--. 1 drkirkby drkirkby        289 Jan 11 06:48 prime.txt
-rw-rw-r--. 1 drkirkby drkirkby   27517868 Jan 11 09:47 p110068781.bu4
-rw-rw-r--. 1 drkirkby drkirkby        616 Jan 11 11:11 local.txt
-rw-rw-r--. 1 drkirkby drkirkby   27517868 Jan 11 12:46 p110068781.bu3
-rw-rw-r--. 1 drkirkby drkirkby 3522232320 Jan 11 15:23 p110068781.residues
-rw-rw-r--. 1 drkirkby drkirkby   41276472 Jan 11 15:46 p110068781.bu2
-rw-rw-r--. 1 drkirkby drkirkby   27517868 Jan 11 15:48 p110068781.bu
-rw-rw-r--. 1 drkirkby drkirkby   41276472 Jan 11 16:16 p110068781
They are not all saved at the same time, so would I be best to shut the machine down as soon as p110068781.bu2 is updated, as soon as p110068781.residues is updated, or what?

Is there a clean way to stop mprime on linux, so it stops as soon as it can, but without wasting any computer time?

Dave
drkirkby is offline   Reply With Quote
Old 2021-01-11, 17:33   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

920910 Posts
Default

If you shut down the machine normally (vs just flipping the switch or pulling the plug) Pirme95/mprime will shut down nicely. It will save what ever it is working on right then. Nothing will be lost.
Uncwilly is offline   Reply With Quote
Old 2021-01-13, 03:40   #3
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

2·23·199 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Pirme95
What's that?
LaurV is online now   Reply With Quote
Old 2021-01-13, 03:52   #4
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

13·349 Posts
Talking

Quote:
Originally Posted by LaurV View Post
What's that?
A special version of Prime95 for Dyslexics?
petrw1 is offline   Reply With Quote
Old 2021-01-13, 07:48   #5
phillipsjk
 
Nov 2019

1068 Posts
Default

Quote:
Originally Posted by petrw1 View Post
A special version of Prime95 for Dyslexics?

I resemble that remark. Had to re-read the "wrong" one 3 or 4 times to see the transposition.


Edit:
If you are using a linux distro with a "fast" shutdown script (read: uses aggressive time-outs), you can lose up to half an hour of work.


For my "white elephant" machine I worked around that by running a script that properly shutdown mprime first, THEN called the system shutdown script. ("killall mprime;" essentially.)

Last fiddled with by phillipsjk on 2021-01-13 at 07:54 Reason: Decided to answer OP's question.
phillipsjk is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
SETI@home to shut down for the time being on March 31 ixfd64 Lounge 2 2020-03-26 21:46
Best type of work for lowest exponent work? cappy95833 Software 5 2019-11-21 04:24
Changing prime.ini to shut down in heat jkingqm Software 8 2008-07-01 00:17
Shut downs and restarts Regit Hardware 5 2007-09-10 22:28
Wasted work flava Hardware 1 2006-03-22 01:10

All times are UTC. The time now is 13:39.

Sun Jan 24 13:39:30 UTC 2021 up 52 days, 9:50, 0 users, load averages: 2.94, 3.29, 3.22

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.