mersenneforum.org  

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

Reply
 
Thread Tools
Old 2009-03-11, 11:04   #1
Unregistered
 

3,517 Posts
Default Only during nights

I want mprime to run only from 5pm to 7 am. What should I do.
mprime -m does not help me
  Reply With Quote
Old 2009-03-11, 23:02   #2
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

1E0C16 Posts
Default

Which version are you running? (Recently there were changes in the way schedules are specified.)

Last fiddled with by cheesehead on 2009-03-11 at 23:05
cheesehead is offline   Reply With Quote
Old 2009-03-12, 07:20   #3
Unregistered
 

31D16 Posts
Default

The version I used is
Mersenne Prime Test Program, Version 25.7.8

Actually this is since I installed this new version I am no more able to schedule...
  Reply With Quote
Old 2009-03-12, 22:25   #4
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22·3·11·71 Posts
Default

Quote:
Originally Posted by Unregistered View Post
The version I used is
Mersenne Prime Test Program, Version 25.7.8

Actually this is since I installed this new version I am no more able to schedule...
Version 25.7 was the first to drop the time command.

As a non-linux user:
[free advice] you should be able to set up a chron job to start and kill mprime[/free advice].
Hopefully George will set-up the new while/else structure to enable a run/don't run state.

Last fiddled with by Uncwilly on 2009-03-12 at 22:26 Reason: fermatting
Uncwilly is offline   Reply With Quote
Old 2009-03-13, 00:12   #5
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

7×1,051 Posts
Default

Use PauseWhileRunning and during/else described in undoc.txt. You want to use the "*" value to match any program. I don't remember the exact syntax.
Prime95 is offline   Reply With Quote
Old 2009-03-13, 06:57   #6
Unregistered
 

50528 Posts
Default

Thank you for your replies. I am on linux and used crontab with the following table (I want mprime running all the time except between 8am and 17pm on the week days)

00 17 * * 1-5 /home/myself/mprime/mprime
00 08 * * 1-5 /home/myself/bin/kill_mp

My only difficulty was to kill mprime without knowing the job number. I made a script called kill_mp containing

#!/bin/bash
kill -9 $(ps -C mprime -o pid=)
  Reply With Quote
Old 2009-03-13, 18:59   #7
Brian-E
 
Brian-E's Avatar
 
"Brian"
Jul 2007
The Netherlands

326910 Posts
Default

Quote:
Originally Posted by Unregistered View Post
Thank you for your replies. I am on linux and used crontab with the following table (I want mprime running all the time except between 8am and 17pm on the week days)

00 17 * * 1-5 /home/myself/mprime/mprime
00 08 * * 1-5 /home/myself/bin/kill_mp

My only difficulty was to kill mprime without knowing the job number. I made a script called kill_mp containing

#!/bin/bash
kill -9 $(ps -C mprime -o pid=)
I would not advise killing mprime with signal 9. It will not write its save files for one thing, so you will lose work when it restarts, and if it is in the middle of something hefty the results could be disastrous. Just use the default (which is signal number 15, SIGTERM) with the kill statement.
Brian-E is offline   Reply With Quote
Old 2009-03-13, 19:22   #8
Unregistered
 

24·3·7·17 Posts
Default

Good, so it is sufficient then that my kill_mp file contains

#!/bin/bash
kill -15 $(ps -C mprime -o pid=)

isn't it?
  Reply With Quote
Old 2009-03-13, 23:46   #9
jrk
 
jrk's Avatar
 
May 2008

3×5×73 Posts
Default

Code:
killall mprime
should suffice.
jrk is offline   Reply With Quote
Old 2009-03-14, 02:42   #10
Kevin
 
Kevin's Avatar
 
Aug 2002
Ann Arbor, MI

433 Posts
Default

Code:
In rare cases, users have reported the program can interfere with the
performance of some programs such as disk defragmenters and some games.
You can pause prime95 automatically when these programs are running by
adding this line to prime.txt:
	PauseWhileRunning=prog1[n1],prog2[n2],etc
The [n1], [n2] values are optional and indicate the number of worker threads
to pause when prog1 and prog2 are running.  The default value for n1 and n2
is to pause all worker threads.  Note that prime95 will pause if the program
name matches any part of the running program's file name.  That is "foobar"
will match "c:\foobar.exe", "C:\FOOBAR\name.exe", and even "C:\myfoobarprog.exe".
Also, if prog1 is "*" prime95 will pause no matter what.  Examples:
	PauseWhileRunning=*[1] during 6-7/2:00-3:00
	PauseWhileRunning=* during 23:00-24:00 else decomp[1],mygame[2]
The first example pauses one worker thread on Saturday and Sunday between
2AM and 3AM.  The second example pauses all workers between 11PM and 12AM and
pauses 1 worker if decomp is running and 2 if mygame is running.
Kevin is offline   Reply With Quote
Old 2009-03-14, 06:25   #11
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

249C16 Posts
Default

Quote:
Originally Posted by Kevin View Post
Code:
In rare cases, users have reported the program can interfere with the
That modification is new since the latest help file I have.
Uncwilly is offline   Reply With Quote
Reply

Thread Tools


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

Fri Mar 5 07:25:42 UTC 2021 up 92 days, 3:37, 0 users, load averages: 1.11, 1.38, 1.39

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.