mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2006-12-27, 15:16   #12
Fart_Stay
 

663810 Posts
Default

Version 1.12 is still limited to 125 digits, I understand that you want to increase to 155. This will be done in the next release, or that I do not do so?
  Reply With Quote
Old 2007-01-05, 10:14   #13
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Quote:
Originally Posted by jasonp View Post
Now available.
I started my first NFS factorization with msieve last night. Can i just upgrade in the middle of sieving, or better wait till this one completes?

BTW, it's only a c102, so dont get to exited ;-)
I haven't checked, but it seems quite a bit slower than GGNFS, and probably slower than using the QS in miseve.
smh is offline   Reply With Quote
Old 2007-01-05, 13:21   #14
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by smh View Post
I started my first NFS factorization with msieve last night. Can i just upgrade in the middle of sieving, or better wait till this one completes?

BTW, it's only a c102, so dont get to exited ;-)
I haven't checked, but it seems quite a bit slower than GGNFS, and probably slower than using the QS in miseve.
It should be safe to upgrade. And yes, without the NFS code being much more sophisticated the crossover point between QS and NFS will be above 110 digits.

Last fiddled with by jasonp on 2007-01-05 at 13:22 Reason: typo
jasonp is offline   Reply With Quote
Old 2007-01-15, 08:45   #15
BotXXX
 
BotXXX's Avatar
 
Aug 2003
Europe

2×97 Posts
Default

First of all, jasonp thanks for all the good work on msieve. It is one briljant piece of software. Very easy to use and to setup.

And just as a test i started a few days ago with msieve 1.13 and the original RSA-100 number. In the days between i upgraded to msieve 1.14 and somewhere this weekend the machine finished with finding the two factors.

For anyone interested, please have a look at the attached log file. Machine was a Pentium 4 3Ghz with 512 MB RAM and running a heavy WinXP with daily usage.
Attached Files
File Type: txt msieve.txt (33.0 KB, 274 views)
BotXXX is offline   Reply With Quote
Old 2007-01-15, 12:26   #16
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

100101001012 Posts
Default

Thats 11 to 12 days for a c100.

I started a c102 around the same time, but canceled the run this morning.
After sieving a bit over 600000 lines i had about 4.09M relations. (all data still available).

I did ~10 minutes of polynomial search using GGNFS and restarted msieve with that polynomial.

Results look much more promising.
After 72 minutes: b = 1804, found 737262 relations

I'll post results if the factorization completes.
smh is offline   Reply With Quote
Old 2007-01-16, 03:59   #17
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by BotXXX View Post
First of all, jasonp thanks for all the good work on msieve. It is one briljant piece of software. Very easy to use and to setup.
You're welcome, and congrats on the completed factorization. According to the logs, things took longer than they had to because the polynomial found was not very good, and the filtering wanted too many excess relations. I'll have to revisit both of those in the near future.

You should also use version 1.15 now, it has many fixes to the linear algebra and square root. In fact, if you still have the intermediate results it would be nice to restart the factorization using msieve 1.15

jasonp
jasonp is offline   Reply With Quote
Old 2007-01-16, 04:01   #18
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

DD516 Posts
Default

Quote:
Originally Posted by smh View Post
Thats 11 to 12 days for a c100.

I started a c102 around the same time, but canceled the run this morning.
After sieving a bit over 600000 lines i had about 4.09M relations. (all data still available).

I did ~10 minutes of polynomial search using GGNFS and restarted msieve with that polynomial.

Results look much more promising.
After 72 minutes: b = 1804, found 737262 relations
This is a nice experiment; I suspect the relation rate will decrease over time faster than with a non-skewed polynomial, but with enough skew in the GGNFS poly you can hopefully find the relations you need before that happens.

jasonp
jasonp is offline   Reply With Quote
Old 2007-01-20, 23:29   #19
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29×41 Posts
Default

Quote:
Originally Posted by jasonp View Post
This is a nice experiment; I suspect the relation rate will decrease over time faster than with a non-skewed polynomial, but with enough skew in the GGNFS poly you can hopefully find the relations you need before that happens.

jasonp
I gave up on this number with msieve GNFS after 4 days. Finding relations slowed down to a crawl.

I might give it a try with a beter poly, but will probably try a bit smaller number.

For now, i factor the number with GGNFS in a couple of hours.

I hope you'll be able to get big improvements.
smh is offline   Reply With Quote
Old 2007-01-21, 01:20   #20
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by smh View Post
I gave up on this number with msieve GNFS after 4 days. Finding relations slowed down to a crawl.

I might give it a try with a beter poly, but will probably try a bit smaller number.

For now, i factor the number with GGNFS in a couple of hours.

I hope you'll be able to get big improvements.
Big improvements are likely. Using a GGNFS polynomial really means you have to finish all of the sieving in the first few thousand lines, and the current code uses hardwired limits that don't let that happen.

jasonp
jasonp is offline   Reply With Quote
Old 2007-01-22, 19:14   #21
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Quote:
Originally Posted by jasonp View Post
Using a GGNFS polynomial .......
Is a GGNFS polynomial different than the one found with msieve?
smh is offline   Reply With Quote
Old 2007-01-23, 14:24   #22
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by smh View Post
Is a GGNFS polynomial different than the one found with msieve?
Right now, yes. The objective is always to choose a polynomial that takes many small values, since these are more likely to yield relations during sieving.

msieve currently chooses polynomials where all the coefficients have about the same (small) size. This makes the selection process pretty simple, but means you have to do the sieving over many different b values to get enough (a,b) relations. These are 'non-skewed' polynomials.

The problem with non-skewed polynomials is that there are not very many good ones, and once you find one there isn't much you can do to make it better (without making the coefficients too big). Professional-level NFS implementations instead find 'skewed' polynomials. In these, some coefficients are much smaller than normal and some are a little bigger than normal. Making some coefficients large means that you can attempt to optimize any polynomials you find, since the larger coefficients give you a little maneuvering room.

They're called skewed polynomials because in order to keep the size of polynomial values small, we need to choose the shape of the sieving region so that the large polynomial coefficients don't matter as much. That means sieving over fewer 'b' values and more 'a' values; the best ratio to choose depends on the polynomial. For example, the polynomial used for RSA-512 in 1999 had a skewing factor of almost 11000, meaning that the range of 'a' values has to be about 11000 times the size of the range of 'b' values. Across such a skewed region, the polynomial will take on many small values. However, if you try too many 'b' values (i.e. too many sieve lines), you leave the region where the polynomial is small, and the relation output will drop, like you saw. In fact, it drops very quickly, since GGNFS chooses polynomials that are very highly skewed, and the GGNFS lattice siever is optimized for very large 'a' values.

When dealing with skewed polynomials, you need a few extremely long sieve lines, instead of many normal-size lines. Unfortunately the siever in msieve uses the latter, when it should be using the former. I plan on making modifications that will detect how long each line should be so that relation output is maximized.

All this is explained in several papers listed in the msieve readme.

jasonp
jasonp is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Run a Larger Factorization Using Msieve, gnfs and factmsieve.py on Several Ubuntu Machines EdH EdH 7 2019-08-21 02:26
Compiling Msieve with GPU support LegionMammal978 Msieve 6 2017-02-09 04:28
Msieve with GPU support jasonp Msieve 223 2011-03-11 19:30
YAFU with GNFS support bsquared YAFU 20 2011-01-21 16:38
518-bit GNFS with msieve fivemack Factoring 3 2007-12-25 08:53

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


Sat Jul 17 01:31:37 UTC 2021 up 49 days, 23:18, 1 user, load averages: 1.82, 1.41, 1.28

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.