mersenneforum.org  

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

Reply
 
Thread Tools
Old 2011-01-21, 16:03   #397
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

7×167 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Here's my formal request to George to add a couple more filters to http://www.mersenne.org/report_factoring_effort/ (similar to the attached screenshot)
Seconded.
Mr. P-1 is offline   Reply With Quote
Old 2011-01-23, 03:41   #398
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

7·13·47 Posts
Default

Quote:
Originally Posted by Mr. P-1 View Post
George suggested in this post (20 Sep 06):
Quote:
Quote:
Prime95 processes from B1 to B2 in groups of 30 (2*3*5) or 210 (2*3*5*7) or 2310 (2*3*5*7*11). There are 8, 48, or 480 relative primes respectively. The bigger the group, the less fixed cost in counting from B1 to B2.
I suspect the "knee" is somewhere around 13 temporary variables. This lets prime95 run the 2*3*5 case in one pass over the 8 relative primes. So for a 2048K FFT you would need roughly 13 * 2048K * 8 (sizeof of a float) + 10M (rough guess of sin/cos and other needed data). That is 218MB. Do some real world tests to see if my suspicion is correct.
that enough memory for eight relative primes is where the "knee" is, i.e., the point at which the law of diminishing returns sets in as far as extra memory is concerned. However that was for a much earlier version of the client, so I don't know if this is still valid.
Quote:
Originally Posted by Prime95 View Post
(20 Dec 08)
Yes, the stage 2 code has changed greatly since then.
Sorry to dredge up a post from >2 years ago, but I don't think George ever explained his answer. In current versions, where is the "knee"?

Is it reasonable to interpret that enough allocated RAM to process 8 relative primes would be a reasonable lower limit; 48 relative primes a "generous" amount, and anything above 480 relative primes useless (except perhaps for Suyama's trick)?
James Heinrich is offline   Reply With Quote
Old 2011-01-23, 09:59   #399
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

100100100012 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
Sorry to dredge up a post from >2 years ago, but I don't think George ever explained his answer. In current versions, where is the "knee"?

Is it reasonable to interpret that enough allocated RAM to process 8 relative primes would be a reasonable lower limit; 48 relative primes a "generous" amount, and anything above 480 relative primes useless (except perhaps for Suyama's trick)?
The code will use enough memory for 2400 relative primes if you give it enough. What benefit there is in having more than 480, I don't know.
Mr. P-1 is offline   Reply With Quote
Old 2011-01-25, 19:13   #400
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

7×13×47 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
That readily show exponents in a certain range with specific TF limits, I was wondering if there was something similar where you could search by P-1 bounds?
This isn't quite a search, but it does give you a list of exponents that have poorly-done P-1 factoring (the definition of "poor" is configurable, but defaults to <2.5% probability). Data is pulled live from PrimeNet (in 100k range chunks), and the output is filtered to only show poor exponents, in worktodo format, with the "worst" ones first.

http://mersenne-aries.sili.net/p1small.php
James Heinrich is offline   Reply With Quote
Old 2011-01-30, 20:14   #401
garo
 
garo's Avatar
 
Aug 2002
Termonfeckin, IE

24·173 Posts
Default

So... Most of the exponents in the 52M range have not been P-1 tested and are being handed out for LLs without P-1. Some will undoubtedly get a good P-1, some will get a stage-1 only and some will get nothing! Does it make sense for some of us to do a quickie P-1 on exponents in this range? By quickie, I mean setting the number of LL tests saved to 1, which seems to give a B1 of about half and B2 of about a third and reduces the chance of finding an exponent from 6.8% to 4.5%. The disadvantage is that it will take away resources from doing a "proper" P-1 on exponents in the 53M range that I am currently testing. Thoughts?
garo is offline   Reply With Quote
Old 2011-01-30, 22:50   #402
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

7·13·47 Posts
Default

Assuming we had the computing power (which I suspect we don't) to do a "quickie" P-1 on all assignments before handing out for LL first-time, we'd do a "poor" job of P-1 on everything, as opposed to doing a "good" job on some, "great" job on a few, "ok" job on many, and "poor" job on some. I suspect that the current balance of "good/great" vs "poor" will net out to "ok" overall. The disadvantage of everything being just "ok" as opposed to some-good + some-bad is that it's not practical to go back (years from now) and re-do only the few "bad" P-1 to higher standards. Right now it's pretty easy to pick out the bad ones and re-do them.

My vote is to not do a half-job on P-1. Leave the status quo. If possible, get George to focus more "let PrimeNet decide" clients on P-1 work, at least those that have a good amount of RAM allocated.
James Heinrich is offline   Reply With Quote
Old 2011-01-31, 00:21   #403
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

2·7·113 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
My vote is to not do a half-job on P-1. Leave the status quo.
Seconded.
lycorn is offline   Reply With Quote
Old 2011-01-31, 23:20   #404
Mr. P-1
 
Mr. P-1's Avatar
 
Jun 2003

22218 Posts
Default

garo is right in principle, though perhaps wrong in his choice to reduce the number of LLs saved to 1.

The optimisation problem faced by the machine that takes unP-1ed LL tests is to maximise GIMPS throughput which it does by minimising the expected time that will be spent on that exponent. This is optimised when d/dt (t - 2*p*L) = 0, where L is the time taken by an LL tests, t is the time spent doing P-1 and p is the probability of sucess as a function of that time.

A dedicated P-1 machine has a quite different optimisation problem. Its task is maximise GIMPS throughput which it does by maximising the ratio of (amount of time saved on other machines) to (amount of time spent by me).

Time saved on other machines equals the time that would otherwise be spent on the LL machine doing P-1 if I don't do it, plus the cost of 2LLs multiplied by (my probability of finding a factor - LL machine's probability of finding a factor).

The ratio is maximised when d/dt ((tL + 2 * L * (p - pL)) / t) = 0, where tL is the time the LL machine would spend doing P-1 if I don't, and pL is the probability of success, and the other parameters as before. Note that tL and pL do not depend upon t, which is the amount of time I spend on the exponent. We don't know the actual value of these parameters but it ought to be possible to work out an average for each.

The 1/t in that formula is because the number of different LL machines we can save time on is inversely proportional to the amount of time we spend on each P-1. It's worth spending less time on each P-1 in order to be able to do more of them.

Another way to look at it is:

A few excellent P-1s (done by me) + some excellent + some very good + some good + some average + some poor + some minimal + many no stage 2 at all.

isn't as good as

More very good P-1s (done by me) + fewer excellent + fewer very good + fewer good + fewer average + fewer poor + fewer minimal + fewer no stage 2 at all.

Quantifying this analysis is difficult, and depends very much upon how good a P-1 an LL machine typically does. My intuition is that setting the number of LLs save to 1 is overdoing it.
Mr. P-1 is offline   Reply With Quote
Old 2011-02-01, 19:32   #405
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

3×52×71 Posts
Default 100 Exponents ready for LL in 58M Range...but

Here's the first third with the lowest B1/B2
Code:
Exponent	Bits	B1	B2
58021549	69	30	30
58021583	69	30	30
58021589	69	30	30
58021673	69	50	50
58021741	69	50	50
58021751	69	50	50
58021807	69	50	50
58021891	69	50	50
58021907	69	50	50
58021339	69	100	1000
58020533	69	100	10000
58020601	69	100	10000
58020629	69	100	10000
58020649	69	100	10000
58020691	69	100	10000
58020713	69	100	10000
58020811	69	100	10000
58020869	69	100	10000
58021001	69	200	20000
58021049	69	200	20000
58021189	69	200	20000
58021207	69	200	20000
58021237	69	200	20000
58021261	69	200	20000
58021267	69	200	20000
58021279	69	200	20000
58021283	69	200	20000
58021333	69	200	20000
58020047	69	500	50000
58020059	69	500	50000
58020223	69	500	50000
58020379	69	500	50000
58020409	69	500	50000
couldn't there be a limit below which a P-1 is really NOT a P-1; expecially the first 9 above?
petrw1 is offline   Reply With Quote
Old 2011-02-01, 20:34   #406
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

7·13·47 Posts
Default

Quote:
Originally Posted by petrw1 View Post
couldn't there be a limit below which a P-1 is really NOT a P-1; expecially the first 9 above?
Going down that list, it's not until you get to 100/10000 that you get a non-zero probability (0.000778%, which isn't much above zero...)

Would it make sense to put a filter in place at the PrimeNet level (as opposed to in the client(s)) to NOT accept any P-1 work that's done to ridiculously-low bounds (e.g. probability < 0.1%). Not only not give credit for it, but not accept it as having had P-1 done. Of course, if by some miracle that minuscule P-1 attempt did find a factor then accept that, but otherwise reject all worse-than-nothing P-1 results, so they can be re-assigned to someone who will do at least a half-decent job.

I've grabbed the first 21 exponents (up to the first 200/20000), should have them done in a day or so (split between 7 cores).
James Heinrich is offline   Reply With Quote
Old 2011-02-01, 21:15   #407
markr
 
markr's Avatar
 
"Mark"
Feb 2003
Sydney

10758 Posts
Default

Quote:
Originally Posted by petrw1 View Post
Here's the first third with the lowest B1/B2
There are only eight others in 58M with poor P-1, so here they are:
58020041,69,10000,1000000
58020169,69,10000,1000000
58020199,69,6000,600000
58020301,68,500,50000
58020427,69,1000,100000
58020709,68,100,10000
58021409,68,100,10000
58021451,69,100000,100000

When I last checked, back in December, these had poor P-1 also:
59123023,70,2048,16384
61020061,69,1000,100000
and then nothing until a bunch in 100M.

Quote:
couldn't there be a limit below which a P-1 is really NOT a P-1; expecially the first 9 above?
I think PrimeNet might have some limits on what counts as P-1, but it may depend on the range. Examples:

48090437,69,2500,5000: I picked this up as an LL test, to do a better P-1, and the manual assignment page gave something like this (note the final 0):
Test=D7BCCED3EF0FE09A9C22F3DBDEADBEEF,48090437,69,0

55500031,68,500,500: The manual assignment page actually allowed this as P-1:
PFactor=CA82AA7D593476BB9F28375EDEADBEEF,1,2,55500031,-1,68,2

IIRC, nothing like those two cases happened for my P-1 in 58M (58021973 to 58022929, 27 tests, 3 factors) but then I only tried assigning a couple of them.
markr is offline   Reply With Quote
Reply



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


Fri Jul 7 13:06:23 UTC 2023 up 323 days, 10:34, 0 users, load averages: 0.71, 1.06, 1.14

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.

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