mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2017-07-08, 15:49   #12
jwaltos
 
jwaltos's Avatar
 
Apr 2012

5×73 Posts
Default

I used that B1 to deep dive into certain numbers.
Numerous curves have been run at smaller B1`s without success.
jwaltos is offline   Reply With Quote
Old 2017-07-08, 16:20   #13
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2×2,909 Posts
Default

Quote:
Originally Posted by wreck View Post
I'm not sure why you use B1=50e9, but , here is some of my experience.
For curiocity / test reason, I ran 1 curve at B1=25e9 (t80) on 10,323- c271,
which takes about one week.
I use -maxmem 12000 option, processor is i7, operating system is
Ubuntu 14.04 LTS 64 bit.
Currently, the biggest number factored by gnfs is RSA768, a c232.
I guess you should finish t75 first, that means using B1=76e8.
The idea of finishing a txx before starting tyy is not borne out by statistics. The probability of finding a factor with a certain B1 drops well before enough curves are done for a 1-e^-1 probability of finding the factor. Enough curves should be run at smaller sizes in order that time isn't wasted using large curves to find small factors but the vast majority of the effort should be at larger curves than are usually recommended. This is borne out by the results of Bayesian analysis of ecm probabilities.
henryzz is offline   Reply With Quote
Old 2019-10-08, 15:39   #14
storm5510
Random Account
 
storm5510's Avatar
 
"Norman D. Powell"
Aug 2009
Indiana, USA.

2×3×311 Posts
Default

Quote:
Originally Posted by johnadam74 View Post
Hi,

I'm new at running ecm and I need some advice.

I have a 6 core windows computer and I'm running 10K curves with a B1=110M using a pre-compiled 7.0 version of ecm.

My command is ecm -v -chkpnt C20146980.txt -c 10000 110000000.

Should I be running 6 different instances of that program to reduce the running time?

Any suggestions that you have would be great.

Thanks,


John
This is very interesting. I am running v7.0.5-dev on Windows 10 v1903. Everything goes to one thread only, a physical core. This leaves three cores and 4 threads unused. CPU utilization is 15%. I run the B1's with Prime95 and the switch to save the residues for GMP-ECM. It can run a B2 of 8e12 in 16 minutes using just over 5.6 GB or RAM. This if for very small exponents with no factors found. That's all.
storm5510 is offline   Reply With Quote
Old 2019-10-08, 15:51   #15
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

11138 Posts
Default

Quote:
Originally Posted by storm5510 View Post
This is very interesting. I am running v7.0.5-dev on Windows 10 v1903. Everything goes to one thread only, a physical core. This leaves three cores and 4 threads unused. CPU utilization is 15%. I run the B1's with Prime95 and the switch to save the residues for GMP-ECM. It can run a B2 of 8e12 in 16 minutes using just over 5.6 GB or RAM. This if for very small exponents with no factors found. That's all.
If you run multiple instances of Prime95 doing stage 1 curves, be sure to set the affinity to run on different cores in local.txt. For example:

[Worker #1]
Affinity=1
PhilF is offline   Reply With Quote
Old 2019-10-08, 23:54   #16
storm5510
Random Account
 
storm5510's Avatar
 
"Norman D. Powell"
Aug 2009
Indiana, USA.

2×3×311 Posts
Default

Quote:
Originally Posted by PhilF View Post
If you run multiple instances of Prime95 doing stage 1 curves, be sure to set the affinity to run on different cores in local.txt. For example:

[Worker #1]
Affinity=1
Multiple instances. Stage 1 uses minimal RAM. I run a single instance and use all physical cores: Affinity=0,2,4,6. It may be possible to run four workers and and assign the affinity accordingly. Worker 1 would be Affinity=0, worker 2 would be Affinity=2, and so on. This would only serve to slow the process by running them split. I don't understand how this would translate over to GMP-ECM though.
storm5510 is offline   Reply With Quote
Old 2019-10-09, 00:05   #17
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

587 Posts
Default

Quote:
Originally Posted by storm5510 View Post
Multiple instances. Stage 1 uses minimal RAM. I run a single instance and use all physical cores: Affinity=0,2,4,6. It may be possible to run four workers and and assign the affinity accordingly. Worker 1 would be Affinity=0, worker 2 would be Affinity=2, and so on. This would only serve to slow the process by running them split. I don't understand how this would translate over to GMP-ECM though.
ECM testing on Prime95 is single-threaded, and can't take advantage of those extra cores. I think you will find if you assign a single core to Prime95, assuming it is running Stage 1 ECM curves only, it will be nearly as fast as it is now. If you then run multiple instances of Prime 95 and assign each to its own physical core, each instance will have very little effect on speed of the others (as long as all are running Stage 1 ECM curves), and your overall processor utilization will increase proportionately.

Last fiddled with by PhilF on 2019-10-09 at 00:11
PhilF is offline   Reply With Quote
Old 2019-10-09, 01:39   #18
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×757 Posts
Default

Also Prime95 multi threading is very inefficient at very small FFT sizes (very small exponents) .
ATH is offline   Reply With Quote
Old 2019-10-09, 12:55   #19
storm5510
Random Account
 
storm5510's Avatar
 
"Norman D. Powell"
Aug 2009
Indiana, USA.

35128 Posts
Default

Quote:
Originally Posted by PhilF View Post
ECM testing on Prime95 is single-threaded, and can't take advantage of those extra cores. I think you will find if you assign a single core to Prime95, assuming it is running Stage 1 ECM curves only, it will be nearly as fast as it is now. If you then run multiple instances of Prime 95 and assign each to its own physical core, each instance will have very little effect on speed of the others (as long as all are running Stage 1 ECM curves), and your overall processor utilization will increase proportionately.
What I did was configured Prime95 for two workers. I gave each worker two cores. The throughput is the same.

I did the same with my older HP workstation. It's an i5 which does not hyper-thread. I have a Dell laptop which has a two-core i5. I am trying it now with a single worker.

When I got up early this morning, the two desktops had produced 68 completed stage one tests. It will take about 10 hours for GMP-ECM to run the stage two's. I do not run Prime95 on this i7 when GMP-ECM is running.

I have my GMP-ECM parameters in a small batch file. This way, I do not have to remember them.
storm5510 is offline   Reply With Quote
Old 2019-10-09, 16:32   #20
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

10010010112 Posts
Default

Quote:
Originally Posted by storm5510 View Post
What I did was configured Prime95 for two workers. I gave each worker two cores. The throughput is the same.
I don't think so. If you ran 4 separate Prime95's, each with only one worker, doing Stage 1 ECM curves on only one specifically assigned physical core, you would get twice (or maybe even 4 times) the throughput compared to what you are currently getting.

Of course, this may not do you much good unless you have enough GMP-ECMs running elsewhere to keep up with the output from 4 copies of Prime95 cranking out Stage 1 curve residues.

Last fiddled with by PhilF on 2019-10-09 at 16:33
PhilF is offline   Reply With Quote
Old 2019-10-09, 22:50   #21
storm5510
Random Account
 
storm5510's Avatar
 
"Norman D. Powell"
Aug 2009
Indiana, USA.

186610 Posts
Default

Quote:
Originally Posted by PhilF View Post
I don't think so. If you ran 4 separate Prime95's, each with only one worker, doing Stage 1 ECM curves on only one specifically assigned physical core, you would get twice (or maybe even 4 times) the throughput compared to what you are currently getting.

Of course, this may not do you much good unless you have enough GMP-ECMs running elsewhere to keep up with the output from 4 copies of Prime95 cranking out Stage 1 curve residues.
Perhaps not, but I'm not going to complain. I have nearly 100 B2's to run at the moment. That's plenty for now.
storm5510 is offline   Reply With Quote
Old 2019-10-27, 18:04   #22
WraithX
 
WraithX's Avatar
 
Mar 2006

1110110002 Posts
Default

Quote:
Originally Posted by schickel View Post
The other choice would be to install ECMNET with a server and 6 client instances running. I prefer doing it this way, since I can load more than one number in just in case a factor pops out before I expect it.
Just as an FYI: You can load multiple numbers into a single text file and feed that into ecm.py. It will work on the numbers one at a time, moving to the next one in the file once a factor is found, or once the requested number of curves has finished with no factor found.

The command looks the same, too: python ecm.py [options] [B1] < numbers.txt
WraithX is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using multiple PCs numbercruncher Information & Answers 18 2014-04-17 00:17
Running other programs while running Prime95. Neimanator PrimeNet 14 2013-08-10 20:15
Running multiple copies of mprime on Linux hc_grove Software 3 2004-10-10 15:34
Running on multiple machines Helfire Software 8 2004-01-14 00:09
Multiple systems/multiple CPUs. Best configuration? BillW Software 1 2003-01-21 20:11

All times are UTC. The time now is 01:31.

Thu Feb 25 01:31:04 UTC 2021 up 83 days, 21:42, 0 users, load averages: 2.58, 2.91, 2.98

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.