mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2021-04-19, 14:22   #1
Fraxo0
 
"Francesco Vincenzi"
Apr 2021
Torino, Italy

28 Posts
Question Reduce autosave time in Prime95

I am new to Mersenne numbers research, and I was reading the "readme.txt" file in the section "Warning and Notes".
It mentions an autosave feature in case of a power outage every 30 minutes, which looks too much.
I was wondering if it's possible to set that value to something like 10 or 5 minutes.
Thanks in advance!
Fraxo0 is offline   Reply With Quote
Old 2021-04-19, 15:03   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

3×7×17×31 Posts
Default

Welcome to the forum and the search for huge primes.

If your system is and power is normally stable, every 30 minutes is a reasonable choice. Since stopping to write a save file takes away a little time, that little bit of time is not used to test a number. Over the long run that little bit ads up. If your computer is not stable, that is an issue that you need to fix. If the power where you are is not stable, a battery back up is a really good idea.

If you still want to change that value, you can do so from the menu: Options -> Preferences
Uncwilly is online now   Reply With Quote
Old 2021-04-19, 17:17   #3
axn
 
axn's Avatar
 
Jun 2003

155816 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
Since stopping to write a save file takes away a little time, that little bit of time is not used to test a number. Over the long run that little bit ads up.
I don't think P95 actually stops, but rather does the writes on another thread. I might be wrong about this.
axn is offline   Reply With Quote
Old 2021-04-19, 18:13   #4
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

101011001110112 Posts
Default

Quote:
Originally Posted by axn View Post
I don't think P95 actually stops, but rather does the writes on another thread. I might be wrong about this.
Sure, but if you have all cores running a test, and one is diverted to handle the saving, that one has stopped helping with the test.
Uncwilly is online now   Reply With Quote
Old 2021-04-19, 20:48   #5
slandrum
 
Jan 2021
California

24×5×7 Posts
Default

The environment where it's most useful to save more frequently is when you are running on machines that will suddenly and with no warning have power cut to them - say you are running on a free cloud computing service with arbitrary cutoffs that change every day with no warning where you don't know if it will run for one hour or 20 when you start it up.
slandrum is offline   Reply With Quote
Old 2021-04-20, 05:17   #6
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

1029110 Posts
Default

Say you do one test (or more) that takes (single or all together) about 10 days. Say you save backups every 30 minutes and you get 4 crashes in those 10 days, after which you need to resume, wasting in average one hour (because the crash can come one minute after saving a checkpoint or 29 minutes after, just before saving a new one, you get in average 15 minutes lost per crash, ignoring the time to restart, because that is always the same, regardless of the saving interval). So, in this example scenario, you will lose about 1 hour of work, every 10 days, plus the 2*24*10*(x%)*t time lost to write the checkpoints, assuming your computer is x% slower during the checkpoint writing (you need to delete the old file, rename the current file to bak, write the new file, this when you only keep a history of two checkpoints, a current one and a backup one**), and you wrote 2 backups every hour for 10 days, and writing every backup takes t time.

Say you save backups every 10 minutes and you get the same 4 crashes in those 10 days, you waste 20 minutes of testing (the average 5 minutes lost per restart, ignoring the restarting time, as said, time 4 crashes). So, in this example scenario, you will lose about 20 minutes of work every 10 days, plus the 6*24*10*(x%)*t time lost to write the checkpoints, because now you save 6 backups every hour. So, it all boils down to the question if the difference of 4*24*10*(x%)*t is larger than 40 minutes or not. You may be surprised...

**) and if you argue about the necessity of keeping two backup files, well... you don't need to, but in that case, saving more often is even more dangerous, because the system spends more time writing backups, so in theory the probability of a crash to happen EXACTLY at the time you write the files (and damage the file, and then you lose EVERYTHING and will need to start from scratch) is higher. P95 is kinda "robust" in this respect, it keeps backup files and save/rename them in a "safe" way, so you won't lose your work if sh!t happens exactly in the moment you write into the file.

We have saving checkpoints every 4 to 6 hours. This works fine and doesn't kill our HDDs either. In the past, before the PRP/GEC era, when I was running two LLs in the same time, to compare the residues, and make sure the GPUs stay sane, I was losing more time rerunning last iterations when they didn't match, than I was losing reverting to checkpoints due to crashes.

Of course, YMMV.

Last fiddled with by LaurV on 2021-04-20 at 05:24
LaurV is offline   Reply With Quote
Old 2021-04-20, 05:28   #7
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

6,793 Posts
Default

Quote:
Originally Posted by LaurV View Post
Say ... you get 4 crashes in those 10 days ...
... then fix your system.

It is no fun running wonky a system.
retina is online now   Reply With Quote
Old 2021-04-20, 06:15   #8
Fraxo0
 
"Francesco Vincenzi"
Apr 2021
Torino, Italy

2 Posts
Post

Thank you all.
I found the setting in the "prime.txt" file, there's the variable "DiskWriteTime=x", which by default the x is 30, but, by changing that, it will be possible to change the autosave time parameter.
Fraxo0 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
First time using Prime95, looking for advice for setup dka71 Software 10 2016-04-26 07:07
More efficient to reduce worker count? CuriousKit Hardware 21 2015-10-24 03:40
How to reduce number of worker windows? Chuck PrimeNet 7 2011-07-03 19:17
Reduce your debt!! ... I'm curious. petrw1 Lounge 59 2009-01-21 12:48
Any way to reduce CPU usage? Jarl Hardware 5 2007-03-30 19:13

All times are UTC. The time now is 13:51.


Fri Jul 7 13:51:57 UTC 2023 up 323 days, 11:20, 0 users, load averages: 1.72, 1.29, 1.18

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.

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