mersenneforum.org  

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

Reply
 
Thread Tools
Old 2005-01-29, 16:35   #1
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

D6316 Posts
Default P-1 RAM usage and "E=6"

I have 2 machines doing basically nothing but P-1. I notice that one of my machines (both have 1GB RAM) seems to take full advantage of the ~920MB allocated, and I get "E=6" (which I understand means that Prime95 has more memory available than is required, therefore it runs P-1 longer/faster/deeper than it would if it had less memory) on all results, but my other machine only uses about 840MB, even though it's allocated 920MB, and I (usually) don't get "E=6" on any of the results. Any idea on what causes this, and how I can get better RAM utilization?
James Heinrich is offline   Reply With Quote
Old 2005-01-30, 02:53   #2
Mike
 
May 2004
Vancouver, Canada

11001002 Posts
Default

Borrow some RAM from another computer for 5 min, set up Prime95 to use all of it, then take it out, and Prime95 will adjust itself. One warning, you may have to re-activate Windows as it's a "major change in hardware."
Mike is offline   Reply With Quote
Old 2005-01-30, 05:11   #3
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

754310 Posts
Default

Quote:
Originally Posted by James Heinrich
I have 2 machines doing basically nothing but P-1. I notice that one of my machines (both have 1GB RAM) seems to take full advantage of the ~920MB allocated, and I get "E=6" (which I understand means that Prime95 has more memory available than is required, therefore it runs P-1 longer/faster/deeper than it would if it had less memory) on all results, but my other machine only uses about 840MB, even though it's allocated 920MB, and I (usually) don't get "E=6" on any of the results. Any idea on what causes this, and how I can get better RAM utilization?
Just let prime95 do its thing and don't worry about it. It is a pretty complex formula for choosing how much RAM to use in stage 2.
Prime95 is offline   Reply With Quote
Old 2005-01-30, 13:17   #4
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

23×149 Posts
Default

Quote:
Originally Posted by Mike
Borrow some RAM from another computer for 5 min, set up Prime95 to use all of it, then take it out, and Prime95 will adjust itself.
Tried that (put another 512MB in, let Prime95 use 1381MB (max allowed)), but no change. The only difference I got was that B2 was calculated to 197500 "but using 195000 from the save file".

I should probably mention that Stage-1 for these exponents was done with a 32MB limit on a machine that had very little memory, so I assume this is an after-effect of that. In a week or so I'll get through this set and onto some new exponents that haven't had stage-1 done yet, so I'll see what happens then.
James Heinrich is offline   Reply With Quote
Old 2005-01-30, 14:12   #5
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22×3×641 Posts
Default

Quote:
Originally Posted by James Heinrich
Stage-1 for these exponents was done with a 32MB limit on a machine that had very little memory, so I assume this is an after-effect of that.
No, stage 1 uses very little memory, less than 32 MB, so that wasn't a problem.

The memory amounts you specified are only used for stage 2. Stage 1 doesn't need them.

Last fiddled with by cheesehead on 2005-01-30 at 14:15
cheesehead is offline   Reply With Quote
Old 2005-01-30, 14:26   #6
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

23×149 Posts
Default

Quote:
Originally Posted by cheesehead
The memory amounts you specified are only used for stage 2. Stage 1 doesn't need them.
Of course, I know that

But I theorize that if Prime95 runs stage1 and it only has a max of (for example) 32MB, it will write something different to the savefile than it would if it was allocated 920MB (even if it only uses very little memory during stage 1).
James Heinrich is offline   Reply With Quote
Old 2005-01-31, 00:04   #7
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22·3·641 Posts
Default

Quote:
Originally Posted by James Heinrich
Of course, I know that
Oh, sorry.

Quote:
But I theorize that if Prime95 runs stage1 and it only has a max of (for example) 32MB, it will write something different to the savefile than it would if it was allocated 920MB (even if it only uses very little memory during stage 1).
No.
cheesehead is offline   Reply With Quote
Old 2005-02-01, 17:56   #8
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

23×149 Posts
Default

I can't believe I didn't check prime.ini and notice that OnlyRunStage2WithMaxMemory=1 was missing from the machine in question...

I think that may be the problem... let's see if it fixes it
James Heinrich is offline   Reply With Quote
Old 2005-02-01, 21:11   #9
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

11101011101112 Posts
Default

Quote:
Originally Posted by James Heinrich
I can't believe I didn't check prime.ini and notice that OnlyRunStage2WithMaxMemory=1 was missing from the machine in question...

I think that may be the problem... let's see if it fixes it
It won't. That only applies to machines where daytime memory is different from nighttime memory setting. If they are different stage 2 is only run at night when the extra memory is available.
Prime95 is offline   Reply With Quote
Old 2005-02-01, 22:21   #10
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

23·149 Posts
Default

I have 32MB allocated during "daytime" hours, 920MB allocated at "night" (the exact distribution of day/night is somewhat complex, as described in this thread).
James Heinrich is offline   Reply With Quote
Old 2005-02-02, 18:40   #11
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

65438 Posts
Default

Sure enough, after changing prime.ini I now have lines showing E=6 (and it's now using about 900MB instead of 840MB).

Last fiddled with by James Heinrich on 2005-02-02 at 18:41
James Heinrich is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stockfish game: "Move 8 poll", not "move 3.14159 discussion" MooMoo2 Other Chess Games 5 2016-10-22 01:55
"Master" and "helper" threads Madpoo Software 0 2016-09-08 01:27
Aouessare-El Haddouchi-Essaaidi "test": "if Mp has no factor, it is prime!" wildrabbitt Miscellaneous Math 11 2015-03-06 08:17
Would Minimizing "iterations between results file" may reveal "is not prime" earlier? nitai1999 Software 7 2004-08-26 18:12

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


Fri Aug 6 22:07:35 UTC 2021 up 14 days, 16:36, 1 user, load averages: 3.73, 3.19, 2.88

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.