mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   How to set the CPU Start Time (https://www.mersenneforum.org/showthread.php?t=21359)

hawkeyor 2016-06-07 21:26

How to set the CPU Start Time
 
I am trying to setup Prime 95 so it runs in the evening between 7pm and 7am. I have set the Options -> CPU to set Daytime begins for 7am and ends 7pm. I have the Hours per day run set to 12 hours. I have tried reversing start and end times and it still wants to run during the day.

thyw 2016-06-08 00:46

The [U]daytime begins/ends[/U] settings are for setting the maximum allocated ram amount.
(e.g. you can allocate more ram at night, since you aren't using the computer)

The [U]hours per day[/U] value is used to calculate the time left to complete the assigment (eta).
(setting it for 24h a day, but using p95 for only 12h a day will display the estimated finishing time much later than in reality...)
To get it the closest to reality, adjust the value closer to the real number of hours this program is running.

You can try a scheduler. Windows has it built in, probably Linux too.

LaurV 2016-06-08 01:42

Read the "undoc.txt" file which come with the distribution. Look inside for the "PauseWhileRunning" option, and use "*[n] during from_time-to_time" up to your convenience, where n is the number of workers to pause (all, if you don't use any n).

Edit: for your schedule passing over the midnight, you may need to split the time in two, like "PauseWhileRunning = * during 19:00-24:00 else * during 0:00-07:00", I am not sure about this, it may also work without split.

Mark Rose 2016-06-08 19:46

[QUOTE=LaurV;435758]Read the "undoc.txt" file which come with the distribution. Look inside for the "PauseWhileRunning" option, and use "*[n] during from_time-to_time" up to your convenience, where n is the number of workers to pause (all, if you don't use any n).

Edit: for your schedule passing over the midnight, you may need to split the time in two, like "PauseWhileRunning = * during 19:00-24:00 else * during 0:00-07:00", I am not sure about this, it may also work without split.[/QUOTE]

I didn't know you could do that. Maybe I will try that instead of running killall in cron lol

bgbeuning 2016-06-08 23:34

So if we have 5 Windows machines that are idle except when they start
a bash (from cygwin) script to run regression tests, and prime95 can not
be running during the tests because it would interfere with the timing tests,
we can use

PauseWhileRunning=bash

to have prime95 go to sleep during the regression tests and wake up only
when the tests are all done.

Prime95 2016-06-09 02:38

[QUOTE=bgbeuning;435862]So if we have 5 Windows machines that are idle except when they start
a bash (from cygwin) script to run regression tests, and prime95 can not
be running during the tests because it would interfere with the timing tests,
we can use

PauseWhileRunning=bash

to have prime95 go to sleep during the regression tests and wake up only
when the tests are all done.[/QUOTE]

It takes several seconds for PauseWhileRunning to kick in. So, you may run into trouble if one of your first bash scripts is doing a timing.

Xyzzy 2016-06-09 13:03

[QUOTE=Prime95;435868]It takes several seconds for PauseWhileRunning to kick in. So, you may run into trouble if one of your first bash scripts is doing a timing.[/QUOTE]So just use the "[URL="http://ss64.com/bash/sleep.html"]sleep[/URL]" command as the first part of the bash script?

bgbeuning 2016-06-09 14:36

[QUOTE=Prime95;435868]It takes several seconds for PauseWhileRunning to kick in. So, you may run into trouble if one of your first bash scripts is doing a timing.[/QUOTE]

First the script extracts the latest copy of the source code, then it compiles the code, and then it starts running the tests. The first two parts take 30 minutes before we get to the good stuff. One bash script starts all these parts.

hawkeyor 2016-06-09 19:40

[QUOTE=LaurV;435758]Read the "undoc.txt" file which come with the distribution. Look inside for the "PauseWhileRunning" option, and use "*[n] during from_time-to_time" up to your convenience, where n is the number of workers to pause (all, if you don't use any n).

Edit: for your schedule passing over the midnight, you may need to split the time in two, like "PauseWhileRunning = * during 19:00-24:00 else * during 0:00-07:00", I am not sure about this, it may also work without split.[/QUOTE]

What file do I put this command in? local.txt? prime.txt? Do i just add a new line to the end?

S485122 2016-06-10 04:42

[QUOTE=hawkeyor;435918]What file do I put this command in? local.txt? prime.txt? Do i just add a new line to the end?[/QUOTE][QUOTE=LaurV;435758]Read the "undoc.txt" file
...[/QUOTE]Jacob

hawkeyor 2016-06-10 21:19

Got it Working
 
Here is the line I put in the upper portion of the prime.txt file to get it working.

PauseWhileRunning=*[4] during 7:00-19:00
The 4 represents all 4 threads won't run during the working day so the machine fans won't annoy my co-workers.When there was a [1], only one of the four threads was "sleep," for some reason it was thread #3.


All times are UTC. The time now is 16:54.

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