mersenneforum.org ECM Stage 2 RAM
 Register FAQ Search Today's Posts Mark Forums Read

 2018-11-08, 12:47 #1 storm5510 Random Account     Aug 2009 Not U. + S.A. 228110 Posts 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?
 2018-11-08, 16:01 #2 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 146116 Posts 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.
2018-11-08, 16:30   #3
storm5510
Random Account

Aug 2009
Not U. + S.A.

2,281 Posts

Quote:
 Originally Posted by petrw1 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.

 2018-11-08, 22:42 #4 VictordeHolland     "Victor de Hollander" Aug 2011 the Netherlands 32×131 Posts 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
 2018-11-09, 00:05 #5 lycorn     "GIMFS" Sep 2002 Oeiras, Portugal 155810 Posts 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
 2018-11-09, 00:37 #6 petrw1 1976 Toyota Corona years forever!     "Wayne" Nov 2006 Saskatchewan, Canada 3×37×47 Posts 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.
2018-11-09, 13:12   #7
storm5510
Random Account

Aug 2009
Not U. + S.A.

2,281 Posts

Quote:
 Originally Posted by VictordeHolland 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.

 2018-11-10, 15:08 #8 storm5510 Random Account     Aug 2009 Not U. + S.A. 2,281 Posts A couple of questions: Take the assignment below from my HP: Code: ECM2=,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!
2018-11-10, 16:09   #9
GP2

Sep 2003

1010000110112 Posts

Quote:
 Originally Posted by storm5510 (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

2018-11-10, 17:02   #10
storm5510
Random Account

Aug 2009
Not U. + S.A.

2,281 Posts

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

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!

2018-11-10, 17:30   #11
science_man_88

"Forget I exist"
Jul 2009
Dumbassville

3·2,797 Posts

Quote:
 Originally Posted by storm5510 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

 Similar Threads Thread Thread Starter Forum Replies Last Post Prime95 Lone Mersenne Hunters 118 2022-07-04 18:19 G_A_FURTADO Information & Answers 1 2008-10-26 15:21 D. B. Staple Factoring 2 2007-12-14 00:21 jasong GMP-ECM 9 2007-10-25 22:32 Matthias C. Noc PrimeNet 5 2004-08-25 15:42

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

Wed Aug 17 06:31:20 UTC 2022 up 41 days, 1:18, 1 user, load averages: 1.47, 1.31, 1.20