![]() |
|
|
#1 |
|
Jun 2017
3 Posts |
Hello
I would like some advice/precision about msieve. I'm trying to factor a 155-digit number (yes it's an RSA key) with msieve. To speed-up the process, I setup MPI to lunch msieve on all core of several computer, NFS to spread the data on all the computer and openSSH for the connection between the master node and the slave. This is the tutorial I’ve used to setup MPI: http://mpitutorial.com/tutorials/running-an-mpi-cluster-within-a-lan/ I'm able to run the polynomial stage in parallel (-np argument). To make it work, I have modified the demo.c file to look after the MPI ID if 0 => master node
If != 0 => slave node
(before the master loop there is a loop to lunch the first work on all the slave node) Like this the load is distributed regardless of the speed of the computer ass soon a node completed his task it work on another one. /**********************/ For the sieving step, it the same, but I don’t erase the temp file. Like that all the data generated by the node are all saves in the xxx_node_number.dat file (I use a script to read all the log end add all the relation generated at each msieve lib lunch) /**********************/ when eanof relation is found, I just lunch the normal demo code like this ./msieve -npc and if I'm luky I ends up with my two number. I only manage to facto un 100-digit number My questions are:
Modification to do on the polynomial step
Hard:
Sorry for the wired writing, English is not my mother tongue. Thanks. |
|
|
|
|
|
#2 |
|
"Curtis"
Feb 2005
Riverside, CA
4,861 Posts |
Do *not* use msieve for the NFS sieving step. You *must* use GGNFS or CADO.
CADO automates all of the sharing-across-platforms steps without MPI, and for your purposes is likely your best choice. You merely need SSH connections among the nodes to the host. An RSA-512 key takes 10-11 days on a quad-3ghz using Msieve & GGNFS; CADO is a bit slower, perhaps 12-13 days, but it parallelizes across machines so easily that it's worth the slower speed for your use case. Difficulty for GNFS tasks such as yours doubles every 5 decimal digits, so a 150 digit factorization would take 60-80 ghz-days, 140 would take 15-20 ghz-days, 130 would take a quad-core less than a day, etc. Those numbers assume hyperthreading, which adds perhaps 20% to NFS efficiency; they also assume ideal parameter choice, which may not happen automatically. So, perhaps rather than expecting 150 ghz-days for your RSA key, if you expect 180 you are unlikely to be disappointed. CADO is linux-only, though the client can run on windows with some fussing. It's not worth the effort to try to run the host software on windows, and the authors do not intend to support windows. |
|
|
|
|
|
#3 |
|
Basketry That Evening!
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88
3·29·83 Posts |
Yes, if you are trying to automate the task over the network, then CADO is definitely recommended from an ease of use standpoint (if not necessarily an absolute performance standpoint, but as above, the performance gap is minimal and certainly worth the human effort saved).
And again, just to emphasize, DO NOT use Msieve for sieving. It's excellent for poly select and post processing, but it's terrible for sieving. |
|
|
|
|
|
#4 |
|
Jun 2017
3 Posts |
"DO NOT use Msieve for sieving" => I was not sure, but now I am...
I tried ggnfs but I gave-up due to compile error ( xxx.a missing,I have to compile myself that lead me to other error... the explication to build the 64 version is not clear) CADO-NFS is crassly fast to use : 20 min between the download to a 80-digit number factorised. Now I just have to make it work on several PC I already have a poly for the RSA key. I have some error about "service not known" and I think reading the doc will help me. Tanks-you. |
|
|
|
|
|
#5 | ||
|
Jun 2017
38 Posts |
I Setup CADO-NFS to run on 128 Xenon core at 2.66Ghz ( 4 rack of dual 8 core Xenon dual thread, 8*2*4*2= 128).
and it took about 27h The best result I've got is with:
Quote:
Quote:
I attached my params.155 file |
||
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running msieve polynomial selection in parallel? | ryanp | Msieve | 9 | 2019-11-16 19:45 |
| Msieve parallel poly selection with several GPU cards | jacky | Msieve | 8 | 2017-09-29 13:05 |
| C138 poly selection | firejuggler | Aliquot Sequences | 1 | 2011-02-21 06:38 |
| Restart/continue poly selection with msieve? | Jeff Gilchrist | Msieve | 3 | 2009-04-25 14:03 |
| Different msieve 1.39 poly selection outputs... | Jeff Gilchrist | Msieve | 5 | 2008-12-29 23:07 |