mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-11-08, 12:47   #1
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

32×7×37 Posts
Default ECM Stage 2 RAM

As most know, the minimum RAM size for any stage 2 process in Prime95 is 8MB. Assignments are based on whatever the amount is As I take the size up, the exponent values increase. When this happens, the smaller exponents, < 100,000, are eventually bypassed. Is there a way to compensate for this?
storm5510 is offline   Reply With Quote
Old 2018-11-08, 16:01   #2
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

10100011011012 Posts
Default

This might be a new "feature".

Several years ago I used to set RAM really now; get assigned a bunch of LOW ECM work; stop Prime95 and increase the RAM and start it so they would finish faster.
petrw1 is offline   Reply With Quote
Old 2018-11-08, 16:30   #3
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

32·7·37 Posts
Default

Quote:
Originally Posted by petrw1 View Post
This might be a new "feature".

Several years ago I used to set RAM really now; get assigned a bunch of LOW ECM work; stop Prime95 and increase the RAM and start it so they would finish faster.
This is where I run into a wall, of sorts. If I go above a certain point, Prime95 begins to pause during stage 2. Going any higher decreases the time between pauses and increases the pause time. It eventually becomes self-defeating. P-1 stage 2 does not do this! I suspect this is unique to my setup.

The cutoff seems to be in the 48MB to 64MB range. This is not a problem with smaller exponents, regardless of the RAM setting. By smaller, I mean anything at, or below, six digits.

What it does during these pauses, I have not a clue. All I can say is that there is no hard drive activity and everything else responds properly. This applies to Windows 7 and 10, both x64.

Perhaps I need to do some experimentation with the RAM settings in the BIOS. Something is amiss and I would like to find it.
storm5510 is offline   Reply With Quote
Old 2018-11-08, 22:42   #4
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

32·131 Posts
Default

Maybe I don't understand your question entirely, but if you want to manually do ECM on a exponent, you can just add it to your queue with:
ECM2=1,2,exponent,-1,B1,B2,numbersofcurves,"knowfactorn,knownfactor"
for instance:

ECM2=1,2,1682911,-1,250000,25000000,3
will let Prime95 do 3 ECM curves on 2^1682911-1 with B1=250e3 B2=25e6
VictordeHolland is offline   Reply With Quote
Old 2018-11-09, 00:05   #5
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

23×3×5×13 Posts
Default

Seconded.
If you do that, you may test whatever exponent you wish, regardless of the RAM size assigned to Prime95. Of course, if you are testing very small exponents, the amount of RAM needed will be very low, but it´s good practice to have a generous amount assigned to Prime95, in case you decide to test larger exponents.
I am curently running curves on M8581, and the program is using only 431 MB for Stage 2, but this is a very small exponent. If you test exponents in the 2M range, for example, the amount of RAM used wll jump to a couple of gigabytes.

Last fiddled with by lycorn on 2018-11-09 at 00:06
lycorn is offline   Reply With Quote
Old 2018-11-09, 00:37   #6
petrw1
1976 Toyota Corona years forever!
 
petrw1's Avatar
 
"Wayne"
Nov 2006
Saskatchewan, Canada

522910 Posts
Default

I did this a while back because I didn't want the hassle of manually entering assignments.

In my case I wanted ECM-Fermat assignments and I noticed that for my specific PC that GhzDays per Day was noticeably more generous with the smaller assignments (up to about 131072) but I also noted that the RAM I needed to specify for Prime95 to give me assignments this low was less than ideal to quickly complete these.

So I would set RAM to about 100; get 30 days worth of low ECM-F; then set RAM to about 2,000.
Rinse and repeat monthly.
petrw1 is offline   Reply With Quote
Old 2018-11-09, 13:12   #7
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

44338 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
Maybe I don't understand your question entirely...
Forgive me. I went a bit off target with this.

Quote:
Originally Posted by petrw1
So I would set RAM to about 100; get 30 days worth of low ECM-F; then set RAM to about 2,000.
What I do, is allow Prime95 to get the assignments it wants based on the memory allocation, then I go into the preferences and set days of work to zero. Then, I can take the RAM up. It reports each completion, but does not reserve more as it goes along.

I found something in relation to the pausing in stage 2. This system BIOS has two memory settings, Auto, and XMP or "eXtreme Memory Profile." Setting it to XMP creates a drop-down list of options which includes the RAM speed. The rest, I do not understand what they are. No worry. On the XMP setting and not changing anything else in the list, the pause times are greatly reduced.

I have been testing with the RAM set to 512MB and exponents > 1,000,000. The pause time is about 1.1 seconds for every 7%. It can complete each test in about eight minutes. If I drop this to 256MB, it takes nine minutes to complete on slightly smaller exponents. I do not see any pauses.

About setting it to get 30 days of work: In my case, 15 is about the maximum number that it will maintain. I will give this another try.
storm5510 is offline   Reply With Quote
Old 2018-11-10, 15:08   #8
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

32×7×37 Posts
Default

A couple of questions:

Take the assignment below from my HP:

Code:
ECM2=<ID>,1,2,109229,-1,250000,25000000,3,"7680983281,2929719921407"
(1) The values at the end, in quotes, are known factors. Does Prime95 continue if it finds one of these, or does it stop?

(2) Is there a rule-of-thumb for determining the B! and B2 values? All I know is that B2 is approximately equal to B1 x 10.

Thank you!
storm5510 is offline   Reply With Quote
Old 2018-11-10, 16:09   #9
GP2
 
GP2's Avatar
 
Sep 2003

13×199 Posts
Default

Quote:
Originally Posted by storm5510 View Post
(1) The values at the end, in quotes, are known factors. Does Prime95 continue if it finds one of these, or does it stop?
No, it ignores those and keeps going.

Note: if the program finds a new factor not in the list of known factors, then the ECM assignment will terminate, unless you put ContinueECM=1 in your prime.txt file, in which case it will finish doing all the curves specified in the worktodo line (in your example, 3), possibly finding additional factors.

Quote:
(2) Is there a rule-of-thumb for determining the B! and B2 values? All I know is that B2 is approximately equal to B1 x 10.
Actually it's B1 × 100, and your example reflects that. That is a commonly used rule of thumb, although other values are possible.

You can look at the ECM Progress report page, setting the appropriate exponent range you're interested in, to see how much ECM has been done already and with what parameters.

Last fiddled with by GP2 on 2018-11-10 at 16:15
GP2 is offline   Reply With Quote
Old 2018-11-10, 17:02   #10
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

32·7·37 Posts
Default

Quote:
Originally Posted by GP2 View Post
...Actually it's B1 × 100, and your example reflects that. That is a commonly used rule of thumb, although other values are possible...
Thank you for your reply!!!

My example shows 250,000 and 25,000,000. What happens if I were to narrow this range? An example might be lowering B2 to 2,500,500. Based on what I've seen, B1 seems to be much more important than B2.

A shot-in-the-dark: These are bounds for calculations using the seed value that appears at the start of Stage 1. If this is not the case, then I am unsure how they are used.

I apologize for going somewhat off-topic with this!
storm5510 is offline   Reply With Quote
Old 2018-11-10, 17:30   #11
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

24×3×52×7 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Thank you for your reply!!!

My example shows 250,000 and 25,000,000. What happens if I were to narrow this range? An example might be lowering B2 to 2,500,500. Based on what I've seen, B1 seems to be much more important than B2.

A shot-in-the-dark: These are bounds for calculations using the seed value that appears at the start of Stage 1. If this is not the case, then I am unsure how they are used.

I apologize for going somewhat off-topic with this!
https://en.m.wikipedia.org/wiki/Lens..._factorization
science_man_88 is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
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
Stage 1 G_A_FURTADO Information & Answers 1 2008-10-26 15:21
Stage 1 with mprime/prime95, stage 2 with GMP-ECM D. B. Staple Factoring 2 2007-12-14 00:21
Need help to run stage 1 and stage 2 separately jasong GMP-ECM 9 2007-10-25 22:32
Stage 1 and stage 2 tests missing Matthias C. Noc PrimeNet 5 2004-08-25 15:42

All times are UTC. The time now is 05:12.


Sat Oct 1 05:12:31 UTC 2022 up 44 days, 2:41, 0 users, load averages: 2.18, 1.87, 1.56

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

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