mersenneforum.org When can I shut down, with the least wasted work?
 Register FAQ Search Today's Posts Mark Forums Read

 2021-01-11, 16:37 #1 drkirkby   Jan 2021 79 Posts 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
 2021-01-11, 17:33 #2 Uncwilly 6809 > 6502     """"""""""""""""""" Aug 2003 101×103 Posts 250216 Posts 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.
2021-01-13, 03:40   #3
LaurV
Romulan Interpreter

Jun 2011
Thailand

5×1,871 Posts

Quote:
 Originally Posted by Uncwilly Pirme95
What's that?

2021-01-13, 03:52   #4
petrw1
1976 Toyota Corona years forever!

"Wayne"
Nov 2006

2×112×19 Posts

Quote:
 Originally Posted by LaurV What's that?
A special version of Prime95 for Dyslexics?

2021-01-13, 07:48   #5
phillipsjk

Nov 2019

2·5·7 Posts

Quote:
 Originally Posted by petrw1 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.

 Similar Threads Thread Thread Starter Forum Replies Last Post ixfd64 Lounge 2 2020-03-26 21:46 cappy95833 Software 5 2019-11-21 04:24 jkingqm Software 8 2008-07-01 00:17 Regit Hardware 5 2007-09-10 22:28 flava Hardware 1 2006-03-22 01:10

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

Sat Apr 10 11:37:15 UTC 2021 up 2 days, 6:18, 1 user, load averages: 2.30, 2.28, 1.94