mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-01-28, 14:40   #1
bgbeuning
 
Dec 2014

111111112 Posts
Default prime95 config file changes

Sometimes I want to make a config file change and hope prime95 will
see the change at some point. But sometimes it seems to just overwrite
my change and lose it.

Prime95 has config files prime.txt, local.txt, and worktodo.txt .
Which can I safely change and which require me to stop
prime95 before changing?

Thanks,
bgbeuning is offline   Reply With Quote
Old 2018-01-28, 14:57   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

2·4,909 Posts
Default

Before making changes to any of them stop and exit Prime95. Make the changes, then restart.

You can use worktodo.add to add items to worktodo.txt. Prime95 will see the file and grab the entries and add them to the end of the the .txt file (and attempt to register assignments if needed.)
Uncwilly is offline   Reply With Quote
Old 2018-01-28, 14:58   #3
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by bgbeuning View Post
Prime95 has config files prime.txt, local.txt, and worktodo.txt. Which can I safely change and which require me to stop
prime95 before changing?
None.

You /can/ add to worktodo.txt without stopping by putting the new assignment lines in worktodo.add, and Prime95/mprime will see the file and add it to the end of worktodo.txt within half an hour or so.

Edit: LOL; crossposted with Uncwilly.

Last fiddled with by chalsall on 2018-01-28 at 14:59
chalsall is offline   Reply With Quote
Old 2018-01-29, 02:58   #4
kladner
 
kladner's Avatar
 
"Kieren"
Jul 2011
In My Own Galaxy!

2·3·1,693 Posts
Default

Quote:
Prime95/mprime will see the file and add it to the end of worktodo.txt within half an hour or so.
I think it may notice immediately if you do Test>Status in P95.

Last fiddled with by kladner on 2018-01-29 at 02:58
kladner is offline   Reply With Quote
Old 2018-01-29, 04:09   #5
GP2
 
GP2's Avatar
 
Sep 2003

5·11·47 Posts
Default

You can create a file called either worktodo.add or worktodo.add.txt

Both forms work, on both Linux and Windows computers. The contents of this "add" file get appended to worktodo.txt (but not immediately), after which the "add" file is automatically erased.

To figure out the time when the contents of the "add" file will get appended, look at the DiskWriteTime value in prime.txt, and add that number of minutes to the timestamp of the most recently written savefile. The only exception is when an LL test completes, in which case the disk write occurs immediately afterward, rather than after the DiskWriteTime interval has elapsed.

Occasionally you want to do something more complicated than merely appending lines. For example, let's say you want to permute the order of the lines in worktodo.txt because one of your exponents just got bumped into Category 1 and you want it to complete sooner.

In that case, you can do so by editing the worktodo.txt file directly and then creating an empty (zero-size) "add" file. When the next scheduled disk write occurs, your changes become permanent. Unless, of course, the topmost worktodo.txt line completes before the DiskWriteTime interval elapses. In this case an immediate disk write occurs as mentioned above, and this disk write unfortunately overwrites your changes.

Summary:

1. When the DiskWriteTime interval elapses and there is no "add" file, any manual edits you made to the worktodo.txt file are lost and overwritten.

2. When the DiskWriteTime interval elapses and there is an "add" file, any manual edits you made to the worktodo.txt file become permanent, and the contents of the "add" file are appended to the end of the worktodo.txt file. This still works even if the "add" file is zero-sized.

3. However, if the current top line in worktodo.txt completes its work before the DiskWriteTime interval elapses, any manual edits you made to the worktodo.txt file are lost and overwritten. A new worktodo.txt file gets written, without the former top line. If there is an "add" file, its contents are appended to the end of the worktodo.txt file.
GP2 is offline   Reply With Quote
Old 2018-02-10, 17:33   #6
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

1,451 Posts
Default

So how you suggest to use this feature ( worktodo.add) when working on CRUS?. If I load 1000 candidates, and in mean time I found one prime, I need to stop mprime/prime95, remove all candidates that is not need to test any more, and start again. since you say that new data will be added at the bottom of current file, can I how "cheat" to get continues work? It is somewhere easy to work with LLR since you can add stop on primeK found, but there is no similar option in mprime/prime95

Any suggestion?
pepi37 is online now   Reply With Quote
Old 2018-02-11, 01:46   #7
GP2
 
GP2's Avatar
 
Sep 2003

5×11×47 Posts
Default

I'm not familiar with those types of work.

However, in practice you can edit worktodo.txt without stopping mprime/prime95 by creating a worktodo.add file (which can be a zero-size empty file), as long as the current work line at the top of worktodo.txt doesn't complete before the DiskWrite interval expires.
GP2 is offline   Reply With Quote
Old 2018-02-11, 03:18   #8
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

2×5×7×67 Posts
Default

Quote:
Originally Posted by kladner View Post
I think it may notice immediately if you do Test>Status in P95.
Test stop
Test continue
Immediately sucks in worktodo.add
I do it all the time.
petrw1 is offline   Reply With Quote
Old 2018-02-11, 16:58   #9
GP2
 
GP2's Avatar
 
Sep 2003

A1916 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Test stop
Test continue
Immediately sucks in worktodo.add
I do it all the time.
That's fine for Prime95 on Windows. It's a little more complicated when you're running mprime on Linux and it starts up automatically at boot time. Especially if you're running on multiple machines which have their work directories on a shared networked file system, and you don't even have a shell prompt for the machine in question. It's a lot easier just to use a little file editing trickery like I described.
GP2 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to config prime95 for my PC...plz help Flexagon Information & Answers 7 2018-03-21 11:05
Config file changes to consolidate workers - moving to a 22-core config NookieN Hardware 7 2017-08-10 17:57
Prime95 log file size limit? ixfd64 Software 3 2011-02-03 15:21
Prime95 v25.7, no stress.txt file... Unregistered Information & Answers 1 2008-11-19 13:07
Cannot download the install file for Prime95 AudreyChandler Information & Answers 8 2008-09-01 18:23

All times are UTC. The time now is 17:34.


Sun Aug 1 17:34:44 UTC 2021 up 9 days, 12:03, 0 users, load averages: 1.84, 1.67, 1.46

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.