![]() |
![]() |
#1 |
"Jason Goatcher"
Mar 2005
DB316 Posts |
![]()
Could someone advise me on how to run Stage 1 and Stage 2 separately, possibly on more than one machine? A couple things to go along with that:
I need to apply the treefile command with k=4 when I run Stage 2. Also, if I run Stage 1 on a Windows PC, is it possible to use the resulting file on a Linux box to run Stage 2? Lastly, I hate an idle processor. Do I have to finish all Stage 1s in a file with Stage 2s, or can I jump back and forth, doing some Stage 2s, leaving some Stage 1s and then adding to the Stage 1s that are left, even after doing some Stage 2s on that same file? |
![]() |
![]() |
![]() |
#2 | ||
Aug 2002
5·11·157 Posts |
![]() Quote:
Quote:
We think this is what you are asking but we are not sure. What we sometimes do is run stage one using Prime95 on a laptop. We pull lines from results.txt to move to various Linux boxes to run stage two. To be safe we sometimes restart Prime95 to make sure it knows stuff is gone, but we think it doesn't care. We have a feeling results.txt is a one-way street. ![]() |
||
![]() |
![]() |
![]() |
#3 |
"Jason Goatcher"
Mar 2005
3·7·167 Posts |
![]()
Okay, new problem. Though, hopefully, other people can make use of this in the future. In my case, it specifically involves running ecm on Linux, but I intend to learn how to do scripting commands, so I'm hoping I can make stuff for Windows people at some point in the future.
Edit: After actually writing this post, I realized how much work it would be, so no need for flames or polite rebuke. I have plenty of time on my hands, so I'll attempt to accomplish this with the next 2-3 months. Here are the problems, in list format. I'm not feeling my best, so I'd rather not try to explain them in paragraph form. (1) I have 4 cores. I want exactly one core to look for completed Step 1 files and run them if found. If no Step 1 file is found, then the core runs a Step 1, after which the script starts over. The other three cores JUST run Step 1. (2) (a) At the moment, the scripts I'm using, made by someone else, only seem to allow running one number and one set of curve parameters. Plus, I can't control how many curves are done, it's simply a matter of stopping the scripts and resetting the parameters when I want to change things. (Although the person who created the scripts is very much appreciated. :) ) (b) It would be nice to have a function(script? not good with the lingo) that could take a number and assign the computer a certain number of curves for that number, at a certain level. I'm thinking it could work a bit like sr2sieve and sr2work.txt operate. (3) Lastly, with the scripts I'm using, I've had to learn some bash commands to figure out how much progress has been made and to look for factors. You can come up with any way you want to track this, but I'm hoping it can be simplified. What I'm thinking for as a solution to number 3 would be to have an assignment file with a specific name. People would be discouraged from changing the file, except to correct errors or remove assignments(although this could cause error correction headaches for the programmer). Basically each assignment would get a number, starting with either zero or 1, then incrementing by 1 for each new assignment. Then there would be a space and the number to be worked on in expanded format, the next line would give number of curves needed and either just the B1, which would mean use B2=B1*100, or would have a special letter to indicate use of the "special" method(can't remember it's name) |
![]() |
![]() |
![]() |
#4 |
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
![]()
Okay, people probably got bored after reading that long post when it was first written.
Before I post a recap, does anybody think I'd be better off in another forum? I'm thinking I might get a better response in the Programming or Linux forum. Anyway, what I'm generally needing is a program(s) or script(s) that will (1) run Stage 1 ecm on three cores. This would basically involve sending command-line arguments to an invisible(virtual?) bash session. (2) Run Stage 2 on any completed Stage 1s, if there are no Stage 1s available run a Stage 1 (3) It would be nice if I could run curves on more than one number at a time, with different B1 values. The ecm program would decide the B2 value based on the B1 value, this is something that the ecm program does automatically. The script writer doesn't need to learn the special math involved. (4) A way to track everything. The alias command seems to expire after a while, not sure why, but something as simple as a file I could print out that would give instructions on commands to track various things(found factors, how many curves on the various numbers, whether or that the Stage 1s are building up to an unusual level, which they are at the moment) I need a saviour, and the miracles I'm asking for don't even have to break the laws of physics. ;) |
![]() |
![]() |
![]() |
#5 | |
Aug 2002
21BB16 Posts |
![]() Quote:
As for all your other stuff, we cannot figure out why you want to make things so complicated. |
|
![]() |
![]() |
![]() |
#6 |
"William"
May 2003
Near Grandkid
45068 Posts |
![]() |
![]() |
![]() |
![]() |
#7 |
"Jason Goatcher"
Mar 2005
DB316 Posts |
![]() |
![]() |
![]() |
![]() |
#8 |
Aug 2002
5×11×157 Posts |
![]()
In our (limited) experience, stage two takes longer than stage one, and if you are only running one stage two against three stage ones, you'll fall further and further behind.
Fortunately, the numbers we are working on fit within 512MB easily, so our dual core box can get by on just 1GB of memory. |
![]() |
![]() |
![]() |
#9 | |
"Jason Goatcher"
Mar 2005
3·7·167 Posts |
![]() Quote:
In my case, though, the 4th core is deciding to run another Stage 1 when there are already Stage 1s available, which is bugging me. |
|
![]() |
![]() |
![]() |
#10 |
Aug 2002
100001101110112 Posts |
![]()
We stand corrected. Looking back at our logs, stage 2 takes less time than stage 1.
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use prime95 for stage 1 & GMP-ECM for stage 2 | Prime95 | Lone Mersenne Hunters | 118 | 2022-07-04 18:19 |
P-1 stage 1 only | Siegmund | PrimeNet | 1 | 2016-12-13 01:45 |
Stage 1 with mprime/prime95, stage 2 with GMP-ECM | D. B. Staple | Factoring | 2 | 2007-12-14 00:21 |
Stage 1 and stage 2 tests missing | Matthias C. Noc | PrimeNet | 5 | 2004-08-25 15:42 |
P-1 stage 2 with GMP-ECM 5 ? | hbock | Software | 9 | 2004-05-06 10:42 |