![]() |
|
|
#155 |
|
Oct 2006
Berlin, Germany
11578 Posts |
Hello,
does msieve and gnfs have automatic checkpoints, so they can be restarted if the computer crashed or is shut downed? yoyo |
|
|
|
|
|
#156 |
|
Tribal Bullet
Oct 2004
3×1,181 Posts |
Msieve will checkpoint any linear algebra where the matrix is large enough but you have to tell it to restart from the checkpoint. Also, the quadratic sieve is fully automatic and will restart properly. Sieving using the NFS line siever also will checkpoint if there is an orderly shutdown, and restarting is automatic in that case too.
|
|
|
|
|
|
#157 | |
|
"Ben"
Feb 2007
7·503 Posts |
Quote:
A couple comments: 1.) Some precompiled binaries exist for linux. The ones I'm thinking of are from frmky, and contain the amd64 assembly enhancements, so are not generally applicable but still worthy of note. I can dig up links, if you want. 2.) Maybe add at least a pointer to http://www.mersennewiki.org/index.ph...mial_Selection when you mention SNFS. You could also point to the phi tools that build SNFS polynomials for cyclotomic numbers that akruppa has posted to this forum. I can dig up links to that also if you want to add it. You probably don't want to touch SNFS polynomial generation in this guide, but links to resources that do cover it might be nice for the interested and more advance reader. great job! - ben. |
|
|
|
|
|
|
#158 |
|
Jun 2003
Ottawa, Canada
100100101012 Posts |
Are you sure about that? I thought automatic restart was only if you were using one of the factLat.pl or factMsieve.pl scripts? Or do you mean if you pass the siever a polynomial file on the command line that doesn't have a starting Q value specified it will just start from the .last.sp0 or whatever file and continue on?
|
|
|
|
|
|
#159 | |
|
Jun 2003
Ottawa, Canada
49516 Posts |
Quote:
I also forgot to add a link to the GGNFS message board if people want more info. |
|
|
|
|
|
|
#160 | |
|
Tribal Bullet
Oct 2004
3×1,181 Posts |
Quote:
This is completely independent of the perl scripts, and of what the GGNFS siever does (its restart mechanism is similar). PS: Kudos for a very nice tutorial, it is sorely needed with the proliferation of versions of tools that we deal with now. Last fiddled with by jasonp on 2009-02-12 at 17:35 |
|
|
|
|
|
|
#161 |
|
"Sander"
Oct 2002
52.345322,5.52471
29×41 Posts |
Good to see a beginners guide on GNFS. A few comments:
On a windows environment i find it easier to use a pearl client like activeperl instead of cygwin. Especially if you want to run multiple instances of the siever over the network. Although i think you also need a windows version of a few *nix commands like 'cat', etc. You might want to describe how to run multiple sievers with the perl scripts. For smaller composites, i find it easier to just let the script handle poly selection with pol51. Msieve might give you a better poly, but most of the time i'm not around to do the conversion and start sieving. Maybe factmsieve should have an option to do poly selection using msieve? What about special numbers? It might seem obvious to experienced users, but an example would probably be nice for a beginner. |
|
|
|
|
|
#162 | ||||
|
Jun 2003
Ottawa, Canada
3×17×23 Posts |
Quote:
Quote:
Quote:
Quote:
Thanks for the comments, Jeff. |
||||
|
|
|
|
|
#163 |
|
"Sander"
Oct 2002
52.345322,5.52471
29·41 Posts |
Setting num_cpu in the script only determines the number of threads msieve uses to solve the matrix.
|
|
|
|
|
|
#164 |
|
Jan 2004
103 Posts |
Nice work Jeff, very useful for us beginners. I've been using the GGNFS - MSIEVE combo for many smallish factorisations. Up to this point I've just created a example.n file containing the number to be factored and let factMsieve.pl do the rest. Your instructions suggest generating a polynomial in step 3 using msieve to create example.poly file (after reformat). Why is this approach better? Are better polynomials produced by msieve?
For those lazy (like me :-) the conversion from msieve.fb to example.poly can be automated with sed/awk or with perl scripts, e.g. in your webpage example: Code:
echo "type: gnfs" | sed '
s/^N/n:/
s/^SKEW/skew:/
s/^R\(.\)/Y\1:/
s/^A\(.\)/c\1:/
' msieve.fb - | awk '
{
if ($1=="skew:")
skew=$0
else if ($1=="type:")
type=$0
else
print
}
END {
print skew
print type
}
' > example.poly
|
|
|
|
|
|
#165 |
|
Tribal Bullet
Oct 2004
1101110101112 Posts |
Msieve will take longer than pol5 to produce a polynomial, but at least for small to moderate size inputs the polynomial produced by msieve tends to make the sieving complete in 10-20% less time.
When the input is larger (~140 digits and up) I don't trust either the polynomial selection parameters or the optimization in msieve to find a better polynomial all the time; it has done so, but I see a lot of work needed for larger jobs. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installation of GGNFS | LegionMammal978 | Msieve | 17 | 2017-01-20 19:49 |
| Running other programs while running Prime95. | Neimanator | PrimeNet | 14 | 2013-08-10 20:15 |
| Error running GGNFS+msieve+factmsieve.py | D. B. Staple | Factoring | 6 | 2011-06-12 22:23 |
| GGNFS or something better? | Zeta-Flux | Factoring | 1 | 2007-08-07 22:40 |
| ggnfs | ATH | Factoring | 3 | 2006-08-12 22:50 |