![]() |
![]() |
#1 |
Apr 2010
2710 Posts |
![]()
Hello,
I want to build a 6 core system and would like to know what is the minimum amount of ram needed per core to perform P-1 factoring and LL tests optimally? Is it 300MB per core or more or less? Thanks. |
![]() |
![]() |
![]() |
#2 | |
Jul 2006
Calgary
52·17 Posts |
![]() Quote:
If you want to run anything else as well that will probably be more important influence on the memory needed. |
|
![]() |
![]() |
![]() |
#3 | |
Apr 2010
33 Posts |
![]() Quote:
Thanks for the reply. What is the minimum ram needed to run P-1 factoring tests? Also why would 64bit linux run better than 32bit linux considering the total amount of ram installed is not any where near 4GB? I thought 32 bit vs 64 bit only had to do with the amount of memory addressable? Thanks. |
|
![]() |
![]() |
![]() |
#4 | ||
Jul 2006
Calgary
52×17 Posts |
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#5 |
Apr 2010
33 Posts |
![]() |
![]() |
![]() |
![]() |
#6 |
"GIMFS"
Sep 2002
Oeiras, Portugal
7·227 Posts |
![]()
If you plan to select P-1 tests as a work type, you should give each test a much bigger amount of memory than the default 8 Mb. Otherwise you will not be performing the tests in an effective manner. P-1 tests are done in 2 stages, and stage 2 will only run if there is enough memory. The chances of finding a factor are much better if you run both stages. I would recommend no less than 300 Mb per core engaged on P-1 tests. Therefore, if you are, say, doing 3 P-1 tests and 3 LL tests on your 6-core system, you should assign no less than 1Gb to Prime95. Note that apart from the P-1 Stage 2, the memory usage of the program is low.
|
![]() |
![]() |
![]() |
#7 |
Aug 2002
Termonfeckin, IE
24·173 Posts |
![]()
lycorn has made a reasonable suggestion. It might be overkill to set all 6 cores to do P-1 - though there is no reason not to particularly since we are always short of P-1 testers. 300MB is a good amount for 53M tests that are being done today. 500MB is better. After that the marginal gains with every extra MB of RAM get smaller. George's recommendation from the readme.txt is
50000000 85MB 170MB 250MB for a 50M the min, reasonable and desirable memory. Also since the max memory is only used during stage 2, you can limit the number of threads that do stage 2 at any one time. MaxHighMemWorkers=n This will stagger your stage 2s and when the number of workers doing stage 2 reaches the limit, additional workers will skip stage 2 and do stage 1 on subsequent exponents before returning to do stage 2 when the memory becomes free. If six cores are doing P-1, you could get by with setting MaxHighMemWorkers=4 and still achieve maximal throughput. So you really could get by with only 1GB of RAM and 6 P-1s if you needed to. If you do real work with the computer during the day you may want to set different amounts of memory available to the computer during the day and night. And set Prime95 to only do stage2 when max memory is available with this switch: OnlyRunStage2WithMaxMemory=1 Last fiddled with by garo on 2010-04-15 at 10:03 |
![]() |
![]() |
![]() |
#8 | |
Apr 2010
33 Posts |
![]() Quote:
Here is what I think I'll do. I'll install 2GB of RAM and run mprime under Ubuntu Server 64bit. I'll allocate 1800MB of RAM for testing and then use: MaxHighMemWorkers=1 OnlyRunStage2WithMaxMemory=1 That way the full RAM is available to each Stage 2 test and has the best opportunity for finding a factor and avoiding a useless LL test. Garo forgot to mention that the above parameters should be placed in local.txt What do you all think. Is this a good idea? I'm currently testing this on a Duo system with only 1 core running stage 2 tests and 2GB allocated. I'll time how long a full P-1 prime test will take with more ram allocated. It should take longer because the stage 2 would scan a longer range. |
|
![]() |
![]() |
![]() |
#9 |
"werdwerdus"
Jul 2005
Des Moines, Iowa, US
101011012 Posts |
![]()
i think you have a good plan
![]() |
![]() |
![]() |
![]() |
#10 |
"GIMFS"
Sep 2002
Oeiras, Portugal
63516 Posts |
![]()
Two points:
1) If you plan to allocate up to 1800 Mb to testing, you should install more than 2 Gb of RAM, otherwise the system will get real sluggish, if not at all unusable, during the Stage 2 of the tests. As you are using a 64-bit OS you can go to 4Gb without any waste of RAM. 2) The parameters referred by garo are to be placed in prime.txt, not local.txt |
![]() |
![]() |
![]() |
#11 | |
Apr 2010
33 Posts |
![]() Quote:
This system would be dedicated to running mprime so I think the linux kernel can suffice with 200MB. Also I tried placing the parameters in prime.txt and they did not work. Both workers ran a stage 2 test. MaxHighMemWorkers=1 OnlyRunStage2WithMaxMemory=1 When I placed them in local.txt however (and of course removed it from prime.txt) one worker ran a stage 2 and the other worker moved on to another exponent to start a stage 1. |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extrapolation: How long until the minimum megaprime? | CRGreathouse | Math | 170 | 2013-07-01 16:32 |
Estimating minimum relations | bchaffin | Factoring | 24 | 2012-03-24 18:37 |
Minimum/desired CPU specs for ECM factoring | Kaboom | PrimeNet | 10 | 2009-04-17 14:58 |
Msieve NFS minimum size | 10metreh | Msieve | 35 | 2009-04-02 19:14 |
Minimum primes of various forms database? | jasong | Information & Answers | 1 | 2007-11-01 01:58 |