mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-07-17, 05:23   #1
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default P-1 before LL

Not sure if this question belongs here or in the Software subforum:

Is there a way to set a worker to do P-1 prior to LL on the same exponent, or are we limited to setting each worker to do one or the other?

Sorry if this question has been answered already, but nothing jumped out at me during a visual scan, and the terms are common enough that Search might yield thousands of results to wade through. At least, I didn't come up with rare enough search terms.

Thanks!

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-07-17, 06:25   #2
prgamma10
 
prgamma10's Avatar
 
Jan 2013

1558 Posts
Default

You might be able to change the worktodo file (if you got the P-1 task) and force manual communication (avoiding duplication of work).

Last fiddled with by prgamma10 on 2013-07-17 at 06:25
prgamma10 is offline   Reply With Quote
Old 2013-07-17, 07:36   #3
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61×79 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Not sure if this question belongs here or in the Software subforum:

Is there a way to set a worker to do P-1 prior to LL on the same exponent, or are we limited to setting each worker to do one or the other?

Sorry if this question has been answered already, but nothing jumped out at me during a visual scan, and the terms are common enough that Search might yield thousands of results to wade through. At least, I didn't come up with rare enough search terms.

Thanks!

Rodrigo
IIRC, this is the standard configuration: every exponent chosen for LL test should stand factorization up a defined limit, and P-1 before starting LL, unless:

a - Someone already did the factorization work stand-alone, or
b - The PC has not a comfortable RAM disposition to do P-1.

Luigi

If you didn't
ET_ is offline   Reply With Quote
Old 2013-07-17, 07:49   #4
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

26·151 Posts
Default

Do you want to duplicate P-1 work, or just to be sure that you don't miss the P-1 work which has to be done before any LL, in case it was NOT done? Because those are two different things. (well the question is a bit odd, as you anyhow duplicate a lot of work, because the checkpoint files are not stored in case of P-1, and you start every time from scratch).

It should be nice if, depending on your memory settings for P95, the program would calculate a B1 and B2 limits and would do some more P-1 when those limits are over the "already done" values. But the real life in different. What you can do is to set a lot of memory for P-1 stage 2, and modify the "worktodo.txt" to replace the last ",1" to ",0" in all "Test=" and "DoubleCheck=" lines. That would convince P95 to always do "heavy" P-1 to all expos, regardless of the fact that the work was done before or not (pr poorly, partially, etc). Also, to get rid of the burden, you may take exponents from GPU72, which are well TF-ed and P-1-ed.

Also, see the "SequentialWorkToDo=0" in undoc.txt file, that may be what you want.

Last fiddled with by LaurV on 2013-07-17 at 07:52
LaurV is offline   Reply With Quote
Old 2013-07-17, 15:56   #5
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2×467 Posts
Default

Quote:
Originally Posted by ET_ View Post
IIRC, this is the standard configuration: every exponent chosen for LL test should stand factorization up a defined limit, and P-1 before starting LL, unless:

a - Someone already did the factorization work stand-alone, or
b - The PC has not a comfortable RAM disposition to do P-1.

Luigi

If you didn't
Luigi,

Something seems to be missing at the end there.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-07-17, 16:09   #6
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

2·467 Posts
Default

Quote:
Originally Posted by LaurV View Post
Do you want to duplicate P-1 work, or just to be sure that you don't miss the P-1 work which has to be done before any LL, in case it was NOT done? Because those are two different things. (well the question is a bit odd, as you anyhow duplicate a lot of work, because the checkpoint files are not stored in case of P-1, and you start every time from scratch).

It should be nice if, depending on your memory settings for P95, the program would calculate a B1 and B2 limits and would do some more P-1 when those limits are over the "already done" values. But the real life in different. What you can do is to set a lot of memory for P-1 stage 2, and modify the "worktodo.txt" to replace the last ",1" to ",0" in all "Test=" and "DoubleCheck=" lines. That would convince P95 to always do "heavy" P-1 to all expos, regardless of the fact that the work was done before or not (pr poorly, partially, etc). Also, to get rid of the burden, you may take exponents from GPU72, which are well TF-ed and P-1-ed.

Also, see the "SequentialWorkToDo=0" in undoc.txt file, that may be what you want.
From the two choices in your first paragraph, I'd prefer to do the latter.

I guess that my question has to do with the fact that, sometimes, one of my workers will perform P-1 before starting an LL. Therefore I was wondering if there is a way to set things so that the worker always picks out exponents that need P-1 work, and then (if applicable) goes on to do the LL on that exponent.

A (maybe) separate item: the long paragraph in your reply (the part dealing with setting the last value to 0) appears to involve duplicating a lot of work previously done, would that be right?

Will experiment with the "SequentialWorkToDo=0" setting and see how it works out.

Thanks!

Rodrigo

Last fiddled with by Rodrigo on 2013-07-17 at 16:16 Reason: clarification
Rodrigo is offline   Reply With Quote
Old 2013-07-17, 16:31   #7
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61×79 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
Luigi,

Something seems to be missing at the end there.

Rodrigo
It was not missing, it was exceeding...
ET_ is offline   Reply With Quote
Old 2013-07-18, 05:49   #8
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

26×151 Posts
Default

Quote:
Originally Posted by Rodrigo View Post
From the two choices in your first paragraph, I'd prefer to do the latter.
Indeed that was my guess, still my question was not very clear, it did not clarify (for the second case) if you want to do or to avoid doing P-1. But your next paragraph clarified it perfectly.
Quote:
I guess that my question has to do with the fact that, sometimes, one of my workers will perform P-1 before starting an LL. Therefore I was wondering if there is a way to set things so that the worker always picks out exponents that need P-1 work, and then (if applicable) goes on to do the LL on that exponent.
That was intended, and it was "normal" behavior long ago before we became faster in doing P-1 stuff with the GPUs. If you only want to get exponents which have no P-1 done enough, then you better pick them from the "seventies" or "eighties" (70-80M range) where the P-1 front did not reach yet. Caution: this is only suitable if you have an old computer with a lot of RAM. New computers are better doing LL tests. Otherwise you better let the GPUs do P-1, which is faster, or some guys with old computers which would need to wait too much for finishing LL tests and prefer to do P-1 (otherwise, you take the bread from their mouth, well, not really, there is enough work for everybody, but figuratively speaking).
Quote:
A (maybe) separate item: the long paragraph in your reply (the part dealing with setting the last value to 0) appears to involve duplicating a lot of work previously done, would that be right?
Yes indeed, this was intended for the case when you WANT to do P-1, regardless of the status (case 1 in the first paragraph). This makes sense (as I said) in case youhave a lot of RAM memory allocated for stage 2, and you want to extend the B1/B2 limits for P-1. A lot of people do this, hoping to find record factors, and indeed, they duplicate lots of effort, as they re-calculate the b^E for stage 1 every time.

The design was done like that from the inception, is not "good" nor "bad", just the PrimeNet server does not store the checkpoint files for P-1. Those are huge files and storing them would need lots of space, and will generate lots of traffic, and may not be "safe" anyhow (some mechanism is needed to forbid bad guys uploading wrong residue files). So, every worker who wants to extend B1/B2 limits will duplicate the work done by the former workers (and do some additional). With the new GPU toy it would be possible to store the "end of stage 1" files and when a larger B1 is supplied, the program will only "extend" the calculus and store the new file too. Some guys (me included!) will have "databases" of those "EOS1" files, for people interested in extending P-1 bounds. A method how to share those and how to check they are "real" may be discussed in the future.
LaurV is offline   Reply With Quote
Old 2013-07-23, 23:27   #9
Rodrigo
 
Rodrigo's Avatar
 
Jun 2010
Pennsylvania

3A616 Posts
Default

I just realized I never got back to LaurV for his thorough explanation. Thank you very much!

At this stage (so to speak) it sounds like it'll be simpler just to assign specific workers to focus on P-1 and let others do LL separately.

I'll tune in to this channel periodically to stay up to date on developments.

Rodrigo
Rodrigo is offline   Reply With Quote
Old 2013-10-25, 19:26   #10
Mark Rose
 
Mark Rose's Avatar
 
"/X\(‘-‘)/X\"
Jan 2013

2×5×293 Posts
Default

Quote:
Originally Posted by LaurV View Post
That was intended, and it was "normal" behavior long ago before we became faster in doing P-1 stuff with the GPUs. If you only want to get exponents which have no P-1 done enough, then you better pick them from the "seventies" or "eighties" (70-80M range) where the P-1 front did not reach yet. Caution: this is only suitable if you have an old computer with a lot of RAM. New computers are better doing LL tests. Otherwise you better let the GPUs do P-1, which is faster, or some guys with old computers which would need to wait too much for finishing LL tests and prefer to do P-1 (otherwise, you take the bread from their mouth, well, not really, there is enough work for everybody, but figuratively speaking).
So I have an Athlon II X4 640 (4 cores @ 3.0 Ghz, 512KB L2) with 16 GB of RAM... is P-1 the best use of this machine? Or is LL still a better use of it?
Mark Rose is offline   Reply With Quote
Old 2013-10-26, 00:01   #11
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

22·23·107 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
So I have an Athlon II X4 640 (4 cores @ 3.0 Ghz, 512KB L2) with 16 GB of RAM... is P-1 the best use of this machine? Or is LL still a better use of it?
If you ran 4 threads of P-1 with upto 2.5 GB each, that would help. There is a need for CPU's doing P-1.
Uncwilly is online now   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 22:27.


Fri Aug 6 22:27:17 UTC 2021 up 14 days, 16:56, 1 user, load averages: 2.82, 3.22, 3.19

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.