mersenneforum.org  

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

Reply
 
Thread Tools
Old 2018-05-14, 08:00   #1
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

10010100111102 Posts
Default P-1 memory

I am testing an Imac with 32 GB of RAM, a 4-cores IvyBridge and Windows 10 installed.

I gave 8GB of RAM to mprime to run P-1 work on M87,656,xxx: mprime takes 8GB of RAM and starts stage 2 with E=6 (I suppose it's a selection of Brent-Sujama extensions). Stage 2 runs in one single pass of 192 relative primes.

Giving more RAM (say 12/24GB) to P-1 would end up in:
a) A quicker stage 2?
b) A slower stage 2 with a better chance to find factors?

I suppose b) is the correct answer, but to be sure I'm asking here.

I also assume the same for ECM (especially for fat Fermat numbers).
ET_ is offline   Reply With Quote
Old 2018-05-14, 12:11   #2
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

4,423 Posts
Default

Quote:
Originally Posted by ET_ View Post
I am testing an Imac with 32 GB of RAM, a 4-cores IvyBridge and Windows 10 installed.

I gave 8GB of RAM to mprime to run P-1 work on M87,656,xxx: mprime takes 8GB of RAM and starts stage 2 with E=6 (I suppose it's a selection of Brent-Sujama extensions). Stage 2 runs in one single pass of 192 relative primes.

Giving more RAM (say 12/24GB) to P-1 would end up in:
a) A quicker stage 2?
b) A slower stage 2 with a better chance to find factors?

I suppose b) is the correct answer, but to be sure I'm asking here.

I also assume the same for ECM (especially for fat Fermat numbers).
My guess is generally a). Lots of memory allows stage 2 to be completed in fewer passes by increasing number of relative primes per pass. I'm used to seeing CUDAPm1 run with a total of 480 or 960 relative primes. There, diminishing returns set in between 4GB and 8GB for similar exponents. Not sure why.

But if you're already running stage 2 in a single pass with 192 relative primes, as stated, it would seem the answer is c) no difference. Not to worry, the additional memory will be useful at higher exponents. Or you could run multiple P-1 instances.

Be wary of changing memory allowance midstream. That could cause d) the total run time is longer because it prompts the computation to start over. From the prime95 whatsnew.txt file: "P-1 will restart any time the memory settings change. This is done so that the optimal P-1 bounds can be computed with the new memory settings."
Attached Thumbnails
Click image for larger version

Name:	gpu ram and nrp.png
Views:	95
Size:	10.6 KB
ID:	18262  
kriesel is offline   Reply With Quote
Old 2018-05-14, 12:36   #3
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

2·3·31·47 Posts
Default

Quote:
Originally Posted by kriesel View Post
My guess is generally a). Lots of memory allows stage 2 to be completed in fewer passes by increasing number of relative primes per pass.
Technically, yes. Practically, no. P95/mprime will spend about the same time on your assignment, unless you play with B2, but more memory will increase the chance to find a factor in stage 2. That is because B2 is selected according with the available memory, and also Brent-Suyama extension will run "deeper" in stage 2 if you have more memory. For the same B2, yes, it is like kriesel says, but you will notice that increasing the memory before starting the assignment will result in P95 selecting a larger B2, for example.

If your stage 2 already started, decreasing the memory will restart from scratch, and increasing the memory has no effect for time, even if you quit and restart. The assignment runs with the settings from the checkpoint file. However, your chances to find a factor with Br-Su increases a bit.

Last fiddled with by LaurV on 2018-05-14 at 12:42
LaurV is offline   Reply With Quote
Old 2018-05-14, 13:25   #4
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

129E16 Posts
Default

Not sure I completely understand you...

First, you say

Quote:
Originally Posted by LaurV View Post
For the same B2, yes, it is like kriesel says (option a): same timing and B2 options incresing the available memory.
But then you add

Quote:
Originally Posted by LaurV View Post
but you will notice that increasing the memory before starting the assignment will result in P95 selecting a larger B2, for example.
That is not clear: would B2 automatically increase if I add more memory to mprime, or I must manually increase B2 to better use the new RAM?

Sorry...
ET_ is offline   Reply With Quote
Old 2018-05-14, 13:55   #5
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

2·2,383 Posts
Default

Tested myself.

Stop Prime95
Increase RAM from 8GB to 16GB
Cancel the old status files to have a clean start
Restart Prime95

B2 went from 13,845,000 to 14,022,500
ET_ is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Hybrid Memory Cube" offers 1 Tb/s memory bandwith at just 1.4 mW/Gb/s ixfd64 Hardware 4 2011-12-14 21:24
Memory available to P-1 lycorn Software 23 2010-05-09 22:15
How much memory do you have? fivemack Factoring 17 2009-08-23 16:00
How much memory? Unregistered Software 29 2004-09-04 19:35
P-1 Memory... Xyzzy Marin's Mersenne-aries 7 2004-03-12 13:34

All times are UTC. The time now is 19:11.

Thu Sep 24 19:11:20 UTC 2020 up 14 days, 16:22, 0 users, load averages: 2.38, 2.31, 2.16

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