mersenneforum.org  

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

Reply
 
Thread Tools
Old 2016-06-07, 21:26   #1
hawkeyor
 
Jun 2016

3 Posts
Default 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.
hawkeyor is offline   Reply With Quote
Old 2016-06-08, 00:46   #2
thyw
 
Feb 2016
! North_America

23·11 Posts
Default

The daytime begins/ends 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 hours per day 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.

Last fiddled with by thyw on 2016-06-08 at 00:50
thyw is offline   Reply With Quote
Old 2016-06-08, 01:42   #3
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

41×251 Posts
Default

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.

Last fiddled with by LaurV on 2016-06-08 at 01:50
LaurV is offline   Reply With Quote
Old 2016-06-08, 19:46   #4
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013
https://pedan.tech/

318410 Posts
Default

Quote:
Originally Posted by LaurV View Post
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.
I didn't know you could do that. Maybe I will try that instead of running killall in cron lol
Mark Rose is offline   Reply With Quote
Old 2016-06-08, 23:34   #5
bgbeuning
 
Dec 2014

3·5·17 Posts
Default

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.
bgbeuning is offline   Reply With Quote
Old 2016-06-09, 02:38   #6
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

827910 Posts
Default

Quote:
Originally Posted by bgbeuning View Post
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.
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.
Prime95 is offline   Reply With Quote
Old 2016-06-09, 13:03   #7
Xyzzy
 
Xyzzy's Avatar
 
Aug 2002

2·32·13·37 Posts
Default

Quote:
Originally Posted by Prime95 View Post
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.
So just use the "sleep" command as the first part of the bash script?
Xyzzy is offline   Reply With Quote
Old 2016-06-09, 14:36   #8
bgbeuning
 
Dec 2014

3·5·17 Posts
Default

Quote:
Originally Posted by Prime95 View Post
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.
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.
bgbeuning is offline   Reply With Quote
Old 2016-06-09, 19:40   #9
hawkeyor
 
Jun 2016

3 Posts
Default

Quote:
Originally Posted by LaurV View Post
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.
What file do I put this command in? local.txt? prime.txt? Do i just add a new line to the end?
hawkeyor is offline   Reply With Quote
Old 2016-06-10, 04:42   #10
S485122
 
S485122's Avatar
 
"Jacob"
Sep 2006
Brussels, Belgium

2·977 Posts
Default

Quote:
Originally Posted by hawkeyor View Post
What file do I put this command in? local.txt? prime.txt? Do i just add a new line to the end?
Quote:
Originally Posted by LaurV View Post
Read the "undoc.txt" file
...
Jacob
S485122 is offline   Reply With Quote
Old 2016-06-10, 21:19   #11
hawkeyor
 
Jun 2016

112 Posts
Default 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.
hawkeyor is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Before you start... jasonp Operation Kibibit 65 2013-09-03 22:06
Where to start Jellyfish420 Homework Help 46 2013-02-06 13:51
How to start? Thomas11 Lone Mersenne Hunters 29 2008-12-21 13:47
How to start? OmbooHankvald Factoring 15 2005-09-03 13:42
The Program Seems to Start from Scratch Each Time I Load it JackMama Software 13 2002-12-20 14:17

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


Fri Jul 7 14:11:01 UTC 2023 up 323 days, 11:39, 0 users, load averages: 1.16, 1.31, 1.23

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔