mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2012-01-11, 16:59   #683
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by KenshinPT View Post
I think I get it, but... let me say what I understood :)

... you mean that all possibilities (brute force) would take 2000 years to solve on a single CPU... but as this is brute force, this could take less...

For example: If you're lucky or if both primes are very close it could take 1 week, one day or one hour!?!

That's it?
I was talking about how the running time of the number field sieve factorization method scales with the size of the input number. If it takes a 232 digit number 2000 years on one cpu, then a 265 digit number will take 200,000 years (give or take a few millenia ).

Brute force (i.e. trial division or fermat's method) is out of the question for numbers of this size if the two primes are randomly chosen and have the same number of digits. Really, any factorization method is out of the question if that is true, but I'm trying to let you discover the futility of it for yourself.

Last fiddled with by bsquared on 2012-01-11 at 17:01
bsquared is offline   Reply With Quote
Old 2012-01-11, 17:02   #684
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

1D2416 Posts
Default

Quote:
Originally Posted by KenshinPT View Post
"The effort took almost 2000 2.2GHz-Opteron-CPU years according to the submitters, just short of 3 years of calendar time."

Sometimes I enjoy when I am wrong :D but does this means that if I have one 2.2GHz-Opteron-CPU it would take 2000 years to solve?!

Well... I just need to find more 1999 computers and then I can solve it in one year :D
It also takes a large, very tightly coupled (e.g. Infiniband speed or better)
parallel computer with at least 1 Terabyte of memory to do the linear
algebra.

It would be hard to buy this system at PC's 'R' Us.
R.D. Silverman is offline   Reply With Quote
Old 2012-01-11, 17:08   #685
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

746010 Posts
Default

Quote:
Originally Posted by KenshinPT View Post
I think I get it, but... let me say what I understood :)

... you mean that all possibilities (brute force) would take 2000 years to solve on a single CPU... but as this is brute force, this could take less...
Estimate the number of primes that need to be searched. Assume you
can do 10^20 per second on each CPU and that you had 10^20 such
computers. There are ~31 million seconds in a year. Now estimate
the number of years it would take you.


Quote:
For example: If you're lucky or if both primes are very close it could take 1 week, one day or one hour!?!

That's it?
Try 10^100 YEARS.
R.D. Silverman is offline   Reply With Quote
Old 2012-01-11, 17:14   #686
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

50568 Posts
Default

no, it mean that the work done would take a single opteron @2.2Ghz 2000 year, but in fact took only 3 "real year', calendar time, to accomplish that factorisation.
multicore at work here.
imagine you have a dual core opteron working 24h/24 365d/365, you produce 2 2.2GHz-opteron cpu year in 1 year calendar time.
Now with my i5 2500k, clocked at 3.3Ghz , with its 4 core would produce (speed increase = production increase, to keep it simple) 4*1.5 =6 2.2GHz opteron-cpu year.
so a total of 8 opteron cpu-year
the submiter got 2000 cpu-year in 3 calendar year. That mean a lot of computer were involved.
firejuggler is offline   Reply With Quote
Old 2012-01-11, 17:21   #687
KenshinPT
 
KenshinPT's Avatar
 
Jan 2012
PT

2×3 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Try 10^100 YEARS.
Does that means I should hit CRTL+C?

KenshinPT is offline   Reply With Quote
Old 2012-01-11, 17:52   #688
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

23×11×73 Posts
Default

Quote:
Originally Posted by KenshinPT View Post
I think I get it, but... let me say what I understood :)

... you mean that all possibilities (brute force) would take 2000 years to solve on a single CPU... but as this is brute force, this could take less...

For example: If you're lucky or if both primes are very close it could take 1 week, one day or one hour!?!
No, this is not the brute-force method. RSA768 was factored using the GNFS method; this is the most efficient method currently known, and one of its features is that it runs in a time independent of the size of the prime factors. You know when you start the job how long it will take to finish, and the answer for a 265-digit general number is about 200,000 Opteron-years - that is, a year on a supercomputer which costs about twenty million pounds.

Last fiddled with by fivemack on 2012-01-11 at 17:53
fivemack is offline   Reply With Quote
Old 2012-01-11, 18:04   #689
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

A2E16 Posts
Default

or, if you have 33 334 i5-2500k clocked at stock speed, you can do it in one year, 10 000 if you want in a bit above 3 years. that, working 24H/24, no break.
Even using fivemack's 48 core monster ( running at 2GHz if my memory serve), it would require 4583.33 years to get enough relations to start the final step. Now, imagining you have enough money to buy 1528 of those system, it will take 3 years to prepare the data.
And That, is the most effective way (to this day)

Last fiddled with by firejuggler on 2012-01-11 at 18:05
firejuggler is offline   Reply With Quote
Old 2012-01-11, 18:16   #690
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by firejuggler View Post
Now, imagining you have enough money to buy 1528 of those system, it will take 3 years to prepare the data.
And That, is the most effective way (to this day)
Scaling the number of some suitably fast computer might* get you the data you need, but won't get you the factors. To have a hope of getting the factors on the same time scale at which you obtained the data, you will need a much more expensive system to run the post-processing.


*assuming facts not in currently in evidence about the software required to do the sieving. Namely, that AFAIK, neither ggnfs nor msieve has been attempted to be run on numbers of this size and may not work at all.
bsquared is offline   Reply With Quote
Old 2012-01-12, 12:44   #691
KenshinPT
 
KenshinPT's Avatar
 
Jan 2012
PT

2×3 Posts
Default

Thanks you so much for the replies. Now everything is more clear :)
KenshinPT is offline   Reply With Quote
Old 2012-01-18, 17:35   #692
Walter Nissen
 
Walter Nissen's Avatar
 
Nov 2006
Terra

2×3×13 Posts
Question

Does a slightly smaller lp produce a matrix which will require less
RAM to solve ?
If lpbr = lpba = 29 is optimal for an s204 , but only 1.4 GiB of
RAM is available , might lp = 28 be a better choice than 29 ?
Walter Nissen is offline   Reply With Quote
Old 2012-01-18, 19:58   #693
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101112 Posts
Default

Yes, a smaller LP generates a somewhat smaller matrix. Whether this is better than using a larger LP depends on how fast relations are accumulating. Your choice of LP determines how long you have until you run out of non-duplicated relations, or run out of relations entirely, so for large jobs the choice is dealing with a big matrix or not generating a matrix at all.

You can reduce the effect of a too-big matrix by sieving more, but that eats into the gain in relation rate from using a larger LP. Plus there's a poorly-understood limit to the extent that oversieving will reduce the matrix size.

Last fiddled with by jasonp on 2012-01-18 at 20:03
jasonp is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve & ggnfs on MacOS xilman Msieve 8 2017-05-20 00:12
Factorizing with MSIEVE, GGNFS & Factmsieve.py Romuald Msieve 24 2015-11-09 20:16
Infinite loop for ggnfs or msieve Greebley Aliquot Sequences 4 2013-02-06 19:28
Error running GGNFS+msieve+factmsieve.py D. B. Staple Factoring 6 2011-06-12 22:23
A new driver? (or type of driver?) 10metreh Aliquot Sequences 3 2010-02-15 15:57

All times are UTC. The time now is 23:29.


Fri Aug 6 23:29:01 UTC 2021 up 14 days, 17:58, 1 user, load averages: 3.38, 3.78, 3.93

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.