mersenneforum.org  

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

Reply
 
Thread Tools
Old 2020-12-15, 04:25   #1
nitf
 
Dec 2020

2·3 Posts
Default worktodo juggling

Hi, long time listener, first time caller.

I've got a new computer and I was fiddling with the number of workers to try to get the optimized throughput. One problem I have is that whenever I go down in workers, Prime95 moves the orphaned assignment into Worker #1's queue, but when I go up in workers, Prime95 leaves Worker #1's queue stuffed and requests a new assignment.

So, if I go to Test->Worker Window and go from 4 workers, to 3, to 2, to 1, to 4, suddenly my Worker #1 queue is now backlogged for months. I tried just stopping Prime95 and moving those work items back to [Worker #4] or whatever in the worktodo.txt, but they just seem to get moved back to [Worker #1].

I know the easiest thing to do is just decide on my optimal number of workers and then just let this run for months on end, but now Test->Status forecasts Worker 1 to finish its queue sometime next April while Workers 2-4 will be done in a couple days, and the Worker 1 queue has a lot of half-complete stuff in it I'd like to get finished.

What's the right way to adjust my workers, without Prime95 constantly grabbing new assignments whenever I increase workers and reassigning those to Worker #1 whenever I decrease workers?
nitf is offline   Reply With Quote
Old 2020-12-15, 05:00   #2
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

954710 Posts
Default

Stop and exit Prime95. Set you DaysOfWork in Prime.txt to something low like 2. (Or you can do this through the menus under Preferences.
Restart Prime95
Do your optimization.
Once you have everything optimized, stop and exit Prime95
Go to https://www.mersenne.org/workload/ On the bottom copy all of the assignments for this particular PC.
Then go to https://www.mersenne.ca/balance.php and set it for however many workers you have and leave it set for evenly across all workers. Hit Process.
Copy the results into your worktodo file. Save. Close your text editor.
Restart Prime95.

It is always important to stop and exit Prime95 when making adjustments to your worktodo.
(It is possible to stop it, edit, then continue and have it read in the worktodo, but that is not perfect.)


Someone else may give you different advice, but this is how I would do it. And if you wind up with too many assignments, you can use the workload link to unreserve some before balancing your worktodo.

Last fiddled with by Uncwilly on 2020-12-15 at 05:02
Uncwilly is online now   Reply With Quote
Old 2020-12-15, 14:30   #3
nitf
 
Dec 2020

2·3 Posts
Default

Thanks, that all conceptually makes sense.

The one hiccup is that balance.php doesn't seem to be able to handle PRP work items as it highlights them all as "unknown", but otherwise it did rebalance the DoubleCheck work items.
nitf is offline   Reply With Quote
Old 2020-12-15, 14:56   #4
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

100101010010112 Posts
Default

Quote:
Originally Posted by nitf View Post
The one hiccup is that balance.php doesn't seem to be able to handle PRP work items as it highlights them all as "unknown", but otherwise it did rebalance the DoubleCheck work items.
I left a note for the owner of that site over in the mersenne.ca subforum. That should be an easy fix for him to tackle.
Uncwilly is online now   Reply With Quote
Old 2020-12-15, 15:14   #5
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

22×839 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
I left a note for the owner of that site over in the mersenne.ca subforum. That should be an easy fix for him to tackle.
The balancer should handle all valid assignment lines, PRP included. In general, if something doesn't work as expected please email me, or PM me. In this case, please just post a sample of the lines you're putting in the balancer that aren't being recognized and I'll take a look. (I don't have any active workers with PRP assignments at the moment to quickly check).
James Heinrich is offline   Reply With Quote
Old 2020-12-15, 15:39   #6
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

64348 Posts
Default

Thanks kruoli for some samples of PRPDC lines, those should now be accepted in the balancer.
Let me know if anything else still doesn't work as expected.
James Heinrich is offline   Reply With Quote
Old 2020-12-15, 22:40   #7
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

22·839 Posts
Default

Turns out it's not a problem with the balancer but with the output of the Workload page. I can fix that, but I need to consult with George on how to fix it.
James Heinrich is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
worktodo.add swl551 MISFIT 29 2015-03-09 22:31
Juggling Flatlander Lounge 4 2012-12-20 13:09
worktodo.ini clowns789 Software 7 2003-10-21 03:57
worktodo.ini ? kwstone Software 9 2003-07-27 06:30
worktodo.ini ThomRuley Lone Mersenne Hunters 2 2003-07-01 02:26

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

Fri May 7 13:18:10 UTC 2021 up 29 days, 7:59, 0 users, load averages: 1.33, 1.77, 2.08

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.