Subject: Discussion related to cado-nfs
List archive
- From: eric.jeancolas@free.fr
- To: cado-nfs-discuss@lists.gforge.inria.fr
- Subject: [Cado-nfs-discuss] Infinite loop in sqrt
- Date: Mon, 3 Aug 2020 17:29:24 +0200 (CEST)
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=eric.jeancolas@free.fr; spf=None smtp.mailfrom=eric.jeancolas@free.fr; spf=None smtp.helo=postmaster@smtp1-g21.free.fr
- Ironport-phdr: 9a23:AfKGmx9qwfV3p/9uRHKM819IXTAuvvDOBiVQ1KB31ewcTK2v8tzYMVDF4r011RmVBNudtK4P27aempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffgRFiCC/bL59Ixm7rgrcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh/m/ZitJ+gqFZrxy8qBNw34/UboaOOfVkYq/SYcgVSHBdUstTUSFKH4Oyb5EID+oEJetXsZP9p1oSohekBwmjGvngyjlUiX/x2a01yf8hHBrI3Aw6Ad0Brm7YrNvvNKoUTOu6w7XGwy/ZYPNKxTfy9pLIchY5rPyPXbx9ccvcxEsrGg3KklidrYPrMjyI2ukQt2WW8uVuWP+ghmMmtw18rTuiy9osh4TUhI8Y1lDJ+CR5zoopKtC1TlNwb928EJZIqS2WKpV6Ttk8T2xqoio3xaMKtYSmcCQS1pgo3QLTZ+GCfoeW7B/uVOOcLSl3iX9rfL+yghiy/Ea9xuHgU8S50kpGoTBFn9TJqH8ByRje5daCR/Zy4EitxCuA2gXc5+xEPEw7iKzWIIM7zLEqjJocq0HDEzf2mEroiK+WcV0p+vOt6+T7erXqu4aQN4Bqhg3jKKgulNa/DvomPQQUUWib4/yw1Lzl/ULnXLVHluM6nrTHvJzAO8gWpLS1DgBL3oo59hqzFzKm384ZnXkDIlJFYhWHj43xNl7QOvD4DOuwj06ukDh13f/GOKHuApLJLnfZi7fsZrh961RCxwUt19xf6YhUBqkbIP3vQk/xqMDYDhghPgOo2enoFdJ92poYWWKBGa+VKb7dsV6T5u0zPumMf5QVtS35K/gk/P7ukWQ5lUUSfamn2psXcn+4Eep8L0WYZ3rsmNYBHn0QsgowVuy5wGGFBDVaa3H3Wawnoz06E4m7FpzrQoG2nKfH0ym8BJJbIGFAEFGFV3nyJKueXPJZZTiTKYljnzUCXr+lQpQJ2wujuUn00ek0ZtHI8zEV4MqwnON+4PfewElrqG5ESv+F2mTIdFla22MFQzhvjfJkpFBlkxKMi/E+jeZVGJpd/aERC1ZoBdvn1+V/TuvKdEfEd9aNRkyhR4T0Dys8Q5Q/2Y1WOhovK5CZlhnGmhGSLfoNjbXaVpIu/6+a0WKjf8s=
- List-archive: <http://lists.gforge.inria.fr/pipermail/cado-nfs-discuss/>
- List-id: A discussion list for Cado-NFS <cado-nfs-discuss.lists.gforge.inria.fr>
Hello,
I've got a problem similar to some entries under sqrt freeze. Indeed, it's more a loop than a freeze in my case, as CPU is running 100% of available CPU, and Mem is frozen to a definite number, rather low.
The number I wanted to factorize is 10^264-8. After some trivial factors, the remaining number to factorize is a c172.
The number I wanted to factorize is 10^264-8. After some trivial factors, the remaining number to factorize is a c172.
If I use the SNFS polynomial
n: 1076055610553953428313175224895622605776266517453622003185124607239702147806998665691043128308871002453406792063013816554039512762019541169887659794258167262084104506520897
skew: 0.14
type: snfs
c0: 1
c2: 50
c4: 2500
Y0: 10000000000000000000000000000000000000000000
Y1: -1
# f(x) = 2500*x^4+50*x^2+1
# g(x) = -x+10000000000000000000000000000000000000000000
skew: 0.14
type: snfs
c0: 1
c2: 50
c4: 2500
Y0: 10000000000000000000000000000000000000000000
Y1: -1
# f(x) = 2500*x^4+50*x^2+1
# g(x) = -x+10000000000000000000000000000000000000000000
I get a loop in the step 2 of the sqrt process.
If I use the SNFS polynomial
n: 1076055610553953428313175224895622605776266517453622003185124607239702147806998665691043128308871002453406792063013816554039512762019541169887659794258167262084104506520897
skew: 0.58
type: snfs
c0: 1
c3: 5
c6: 25
Y0: 100000000000000000000000000000
Y1: -1
# f(x) = 25*x^6+5*x^3+1
# g(x) = -x+100000000000000000000000000000
the factorization is done ok.
So, of course, there is an answer : use degree 6 polynomial instead of degree 4 ;-)
But I think it may be helpful to understand what's going on, and maybe to issue an error exit with an error message instead of the loop.
I made tests in cado-nfs-2.3.0 and cado-nfs-3.0.0 (one I downloaded at least one year ago), with 2 different computers, one with 8Gb of RAM and one with 16Gb of RAM. But with tasks.sqrt.threads=1, the memory usage in TOP display is frozen at 2.2 % when the loop occurs on my 16Gb computer...
I can PM you whatever you need. You may also compute it if you have available computer power, both SFNS polynomials are rather efficient, deg 6 being even more efficient than deg 4. It takes roughly 1 day of computation time on a 4-core computer.
Best regards.
- [Cado-nfs-discuss] Infinite loop in sqrt, eric . jeancolas, 08/03/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, Emmanuel . Thome, 08/03/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, eric . jeancolas, 08/03/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, Paul Zimmermann, 08/04/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, eric . jeancolas, 08/04/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, Paul Zimmermann, 08/04/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, eric . jeancolas, 08/03/2020
- Re: [Cado-nfs-discuss] Infinite loop in sqrt, Emmanuel . Thome, 08/03/2020
Archive powered by MHonArc 2.6.19+.