![]() |
|
|
#67 | |
|
Serpentine Vermin Jar
Jul 2014
65168 Posts |
Quote:
gmp-ecm with "-maxmem 250" performs horribly. I fed it one of the same stage 1 outputs from Prime95 that I used before... B1=29e8 and autoselected B2. It finished up stage 2 in I think 128 minutes when it could gobble up as much RAM as it wanted. With only being able to use 250 MB, it chose a much smaller B2 (80847864213490). It's been going now for several hours (5 or 6? I lost track) and it's still going. On the other hand, with Prime95 I didn't see any difference in memory usage for stage 2 when I set that MaximumBitArraySize=2000. With B1=800000000 and B2=80000000000 it still does stage 1 in a reasonable time but then stage 2 didn't complete any faster than it had before and still only uses 207 MB of RAM. Just for fun I tried doing a stage 2 with B1=29e8 and B2=425327623620922 which is what I have three threads doing right now (and using 37 GB per thread with gmp-ecm). I'm still waiting to see just how long stage 2 will take with that "-B2scale 4" option. Definitely longer than the 128 minutes from before but we'll see. I need to refresh my memory on how long the stage 1's were taking in Prime95 on different machines, see if they're closer now. If memory serves, it was 5 hour, 45 minutes on a similar system so if this stage 2 finishes pretty soon it'll be closer to that. Umm... let's just say that stage 1 took as long as it has before when I was doing just stage 1 and the ecm hook. Stage 2 goes VERY slow. I think it was estimating completion of that single curve in somewhere around October. I didn't bother. It did start using a lot more memory at those bounds than I've ever seen it use with smaller ones... 18.8 GB for a single worker. Still terribly terribly slow though. |
|
|
|
|
|
|
#68 | |
|
Serpentine Vermin Jar
Jul 2014
2×13×131 Posts |
Quote:
Not to mention the "human factor" introducing inefficiency by having to digitally shuffle files around, launching different programs, etc. Heck, you're going to lose however much time just doing that. ![]() Times like this I wish I'd spent a little more time in my programming classes so I could just hack the best parts of the ECM code into one or the other. LOL |
|
|
|
|
|
|
#69 |
|
Jun 2003
23×683 Posts |
There is (or at least there used to be) a provision in GMP-ECM to incorporate gwnum libraries to speed up stage 1 for Mersenne numbers. if you do "ecm -princonfig" you can see reference to GWNUM_VERSION. Since then, gwnum's scope has been expanded to support the general form (k*b^n+c)/f. So I guess it is time to revisit this integration.
|
|
|
|
|
|
#70 |
|
Einyen
Dec 2003
Denmark
22×863 Posts |
Anyone can compile GMPECM with the --with-gwnum feature? I cannot get it to work.
|
|
|
|
|
|
#71 | |||
|
"Bob Silverman"
Nov 2003
North of Boston
5·17·89 Posts |
Quote:
It will be highly dependent on aggregate DRAM size, L2/L3 cache size, memory latency, memory bandwidth, etc. The optimal thing to do for ANY computer is to measure how long step 2 takes relative to step 1 and select the B2/B1 ratio so that GMP-ECM spends as much time in step 2 as it does in step 1, FOR THAT COMPUTER. This ratio will be DIFFERENT for different computers. This must be done on a case-by-case basis. Quote:
probability of success per unit time spent. How did you do this analysis? Quote:
Oh, and as you ask me to stop telling you certain things, I can ask you to stop prattling about optimal parameter selection. You clearly do not understand it. |
|||
|
|
|
|
|
#72 |
|
"Bob Silverman"
Nov 2003
North of Boston
5×17×89 Posts |
|
|
|
|
|
|
#73 |
|
Serpentine Vermin Jar
Jul 2014
1101010011102 Posts |
|
|
|
|
|
|
#74 | |
|
Serpentine Vermin Jar
Jul 2014
D4E16 Posts |
So horribly in fact, I just called quits on it after it had been running about a day. There's no real sense of the progress of gmp-ecm so I have no clue how far along it was, but it proved the point that you're really hobbling stage 2 by limiting how much RAM it can use. Don't do it. Feed that beast with yummy RAM chips.
Quote:
I won't wade into the perfect ratio "debate", but suffice to say that "-B2scale 4" with ample memory available did get it closer to "whatever", compared to the 128 minutes stage 2 took previously. |
|
|
|
|
|
|
#75 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
No you really do mean math. No amount of programming experience and knowledge can tell you which pieces fit where without understanding what the pieces are doing.
|
|
|
|
|
|
#76 | |
|
Sep 2010
Scandinavia
10011001112 Posts |
Quote:
If you tell it to use something like half or a quarter of what it "wants" you wont see as dramatic results as when limiting to 250. If I were you I'd try B2scale 3 next. According to the estimated time to find a factor (given by -v), that should be close to optimal. In practice that is. (Not sure why RDS seem to disagree) |
|
|
|
|
|
|
#77 | |
|
Serpentine Vermin Jar
Jul 2014
2×13×131 Posts |
Quote:
Sadly for me, my college years involved Pascal, and since it was an electrical degree, I did some work in assembly on specific devices. Beyond that, my knowledge of C/C++/C# are what I'd best call "anecdotal". I have a passing familiarity with it and that's about it. I've been known to fire up Visual Studio and debug some things or modify some things where necessary (and I'm sure the devs I work with shudder in fear), but that's about it. |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| GMP-ECM & Prime95 Stage 1 Files | Gordon | GMP-ECM | 3 | 2016-01-08 12:44 |
| Stage 1 with mprime/prime95, stage 2 with GMP-ECM | D. B. Staple | Factoring | 2 | 2007-12-14 00:21 |
| Need help to run stage 1 and stage 2 separately | jasong | GMP-ECM | 9 | 2007-10-25 22:32 |
| P4 Prescott - 31 Stage Pipeline ? Bad news for Prime95? | Angular | Hardware | 18 | 2004-11-15 07:04 |
| Stage 1 and stage 2 tests missing | Matthias C. Noc | PrimeNet | 5 | 2004-08-25 15:42 |