![]() |
![]() |
#1 |
Sep 2002
Oeiras, Portugal
26458 Posts |
![]()
I remember this has been discussed sometime ago, but couldn´t find out the outcome (if there was one...) of said discussion, so here it goes:
I am runnhing P-1 tests on a Pentium IV, with 2G of RAM. I use to allocate 1.7G for Stage 2, and it happily takes 1678 Mb, processing chunks of 36 relative primes for a 80M exponent. Now I´ve just upgraded the memory to 3G, and I´ve allocated 2.5G to Prime95. The Stage 2 restarts, calculates the B1 and B2, then abandons those values and uses the ones from the savefile (previously calculated with 1.7G available), and starts processing 56 relative primes. So far so good, but after approximately 1 minute it stops with a mem allocation error, and restarts with something like 1900M (42 relative primes), and then again stops with the mem allocation error and goes down to 1557M (34 relative primes, less than when I was allocating 1.7G out of 2G...). I remember George posting that had something to do with a compiler option that would be incorporated from version 25.8 onwards, and would allow P95 to use up to 3G of memory instead of 2. Now I´m using 25.11, it should work. Any ideas why I´m getting this? P.S.: OS is Windows XP 32bit, SP2 Last fiddled with by lycorn on 2010-03-24 at 14:02 |
![]() |
![]() |
![]() |
#2 |
P90 years forever!
Aug 2002
Yeehaw, FL
5·7·11·19 Posts |
![]()
Windows memory management is a mystery to me.
|
![]() |
![]() |
![]() |
#3 |
Sep 2002
Oeiras, Portugal
5·172 Posts |
![]()
Does that mean I shall abandon any hopes of getting P-1 to run a bit faster by allocating more memory?
|
![]() |
![]() |
![]() |
#4 | |
1976 Toyota Corona years forever!
"Wayne"
Nov 2006
Saskatchewan, Canada
13×349 Posts |
![]() Quote:
There have been similar posts by others...I think in the "P-1 Factoring Anyone?" thread. |
|
![]() |
![]() |
![]() |
#5 | |
Nov 2003
22×5×373 Posts |
![]() Quote:
You need to put the /3G switch in the sysini file. Otherwise, under XP no user process will EVER be allowed to use more than 2G of memory. This is what causes the malloc errors; the code is trying to malloc a total of more than 2G. Note also that one must use the /LARGEADDRESSAWARE switch in the compiler to allow the executable to address more than 2G. |
|
![]() |
![]() |
![]() |
#6 |
Undefined
"The unspeakable one"
Jun 2006
My evil lair
10111011110012 Posts |
![]()
IIRC only the "professional" versions honour it. If you have a "home" version then I think you can never get 3G per process no matter what you do.
Last fiddled with by retina on 2010-03-24 at 15:15 |
![]() |
![]() |
![]() |
#7 |
P90 years forever!
Aug 2002
Yeehaw, FL
5·7·11·19 Posts |
![]() |
![]() |
![]() |
![]() |
#8 |
Nov 2003
746010 Posts |
![]() |
![]() |
![]() |
![]() |
#9 |
"Richard B. Woods"
Aug 2002
Wisconsin USA
1E0C16 Posts |
![]()
"Microsoft Marketing Tactics"
|
![]() |
![]() |
![]() |
#10 | |
Sep 2002
Oeiras, Portugal
5·172 Posts |
![]() Quote:
Of course this is more of a technical challenge than a real need, but I´ve always liked challenges, as a way of improving knowledge in any subject. P.S.: I´m assuming the code was compiled/linked with the /LARGEADDRESSAWARE switch, as it is version 25.11. Last fiddled with by lycorn on 2010-03-26 at 10:08 |
|
![]() |
![]() |
![]() |
#11 | |
Sep 2002
Oeiras, Portugal
5·172 Posts |
![]() Quote:
Again, much like I´ve written in my previous post, this is more a curiosity, a study subject, than something really meaningful in terms of effectiveness of the search. Oh well, but the GIMPS search itself also falls in this category, isn´t it? |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
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 |
How much memory do you have? | fivemack | Factoring | 17 | 2009-08-23 16:00 |
memory | victorvicentim | Information & Answers | 5 | 2009-08-19 12:34 |
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 |