mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Information & Answers

Reply
 
Thread Tools
Old 2019-01-10, 20:24   #1
rgirard1
 
Jan 2019

1410 Posts
Default How to stop and restart assigned Prime95 task?

I am completely new to GIMPS. I am currently an assigned Prime95 task on Ubuntu 18.04 LTS. The computations are going well. I search the forums but could not find an answer to the following question.

I would like to know the procedure to stop an assigned Prime95 task to be able to update Ubuntu 18.04 LTS that often includes a computer reboot (usually update done in less than 15 min) to then restart the assigned Prime95 task after an Ubuntu update is done.
rgirard1 is offline   Reply With Quote
Old 2019-01-11, 05:16   #2
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

2×43×109 Posts
Default

If you are using mprime, try the -m switch

Normally, at shutdown, the program will get the system message and save its work.

In fact, unless you reboot every 30 minutes, you should not care much. The work is saved at regular intervals (which you can set), and when the program crashes or is forcibly closed from the task manager, what is lost is only the last work after the last save.

Last fiddled with by LaurV on 2019-01-11 at 05:17
LaurV is online now   Reply With Quote
Old 2019-01-11, 09:32   #3
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

12CC16 Posts
Default

Quote:
Originally Posted by LaurV View Post
If you are using mprime, try the -m switch

Normally, at shutdown, the program will get the system message and save its work.

In fact, unless you reboot every 30 minutes, you should not care much. The work is saved at regular intervals (which you can set), and when the program crashes or is forcibly closed from the task manager, what is lost is only the last work after the last save.
...don't forget to restart mprime after the reboot...
ET_ is offline   Reply With Quote
Old 2019-01-11, 16:52   #4
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

3·977 Posts
Default

I usually run mprime through screen. I start it @reboot in my crontab.
Mark Rose is offline   Reply With Quote
Old 2019-01-12, 03:09   #5
rgirard1
 
Jan 2019

2×7 Posts
Default

If I understood well after a restart/reboot is completed after an update of the Ubuntu Linux OS I have to open in terminal the subdirectory where mprime and the results of the previous calculations are stored.

Then restart the calculations by typing ./mprime at the terminal prompt. What option for mprime should I use if any needed? Somehow we must tell mprime that this is a continuation run of previous calculations. Perhaps this is done automatically.
rgirard1 is offline   Reply With Quote
Old 2019-01-12, 09:25   #6
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

22×3×401 Posts
Default

Quote:
Originally Posted by rgirard1 View Post
Somehow we must tell mprime that this is a continuation run of previous calculations. Perhaps this is done automatically.
Indeed it is.

You could add a @atboot command to the cronjob list, to automatically start mprime at boot (something like the autoexec.bat file on old DOS/Windows)
ET_ is offline   Reply With Quote
Old 2019-01-12, 09:31   #7
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

2·33·67 Posts
Default

Quote:
Originally Posted by ET_ View Post
Indeed it is.

You could add a @atboot command to the cronjob list, to automatically start mprime at boot (something like the autoexec.bat file on old DOS/Windows)
I think it is @reboot

Last fiddled with by paulunderwood on 2019-01-12 at 09:32
paulunderwood is offline   Reply With Quote
Old 2019-01-12, 09:48   #8
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

22×3×401 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I think it is @reboot
I think you are right.

My memory has never been like once.
ET_ is offline   Reply With Quote
Old 2019-01-14, 15:18   #9
rgirard1
 
Jan 2019

E16 Posts
Default

Many thanks for replies and support for the newcomer to GIMPS I am.

I would like to suggest the above information be explicitly included in the available information and documentation on mprime. It may seems obvious to the experience user but for the newcomer it would very useful. I would suggest the following text:

"If at any time during mprime calculations there is a need to either shutdown or reboot the computer, mprime calculation can be resumed by manually starting again mprime with no option in the subdirectory where the previous calculations where done. For instance in Linux at the terminal prompt type:

./mprime -m (initial start of mprime calculations)

Answer the questions

After reboot, only type ./mprime. (restart and continuation of previous calculations)

or as suggested above include in the cronjob list @reboot.
rgirard1 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls Help. On one computer (Win 10), every time restart Prime95, it restarts from scratch??!!! king Information & Answers 4 2018-02-14 07:49
Prime95 v29.2 multi-task question Bananarama Software 4 2017-08-25 14:28
Does Prime95 stop when factor is found? jovada Information & Answers 13 2016-08-13 15:05
Prime95 does not start after restart of server Miszka Software 4 2013-12-18 16:33
prime95 slows computer after I stop Raterus Software 7 2006-08-14 12:42

All times are UTC. The time now is 15:25.

Sat Apr 17 15:25:23 UTC 2021 up 9 days, 10:06, 0 users, load averages: 1.63, 1.46, 1.40

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.