mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2015-02-20, 10:28   #1
drf
 
Feb 2015

1002 Posts
Default Very newbish questions

Hello all,
I've only just started trying to use Msieve and possibly GGNFS to factor a number of integres roughly in the <116 digit range. There are not RSA type numbers so quite often some small factors will be found reducing the size to ~105-110 digits.

I have downloaded both Msieve and GGNFS as well as the factmsieve.py script. I have built everything from source using the latest stable releases (1.52 msieve, 0.77.1 GGNFS) without any issues on Ubuntu 14.04 LTS. So far so good.

My issue comes when I try to get msieve to perform factorization using gnfs. I haven't quite figured out how to do that using the msieve aplication built form demo.c. Reading the factmsieve.py script I think I might have figured out how to perform gnfs using msieve's flags to perform one stage at a time. Unfortunately when I try that, after successfully generating polynomials, trying to perform sieving (-ns) gives me an assert error in malloc and the whole process dies.

Trying to use the factmsieve.py script I again managed to get it to generate polynomials, but when the ggnfs sieving part gets called it ends up exiting with an error code of -11 and the script terminates.

I have sadly very little knowledge about the gnfs algorithm so it is proving quite difficult to figure out what might be going wrong. I would be very grateful for any hints or pointers.

Thanks,
Drf.
drf is offline   Reply With Quote
Old 2015-02-20, 14:17   #2
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

1D2416 Posts
Default

Quote:
Originally Posted by drf View Post

I have sadly very little knowledge about the gnfs algorithm so it is proving quite difficult to figure out what might be going wrong. I would be very grateful for any hints or pointers.

Thanks,
Drf.
You gave yourself the hint. Don't be lazy. Take the time to learn how the algorithm works.
There are plenty of sources.
R.D. Silverman is offline   Reply With Quote
Old 2015-02-20, 14:54   #3
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23·3·5·72 Posts
Default

Quote:
Originally Posted by drf View Post
Hello all,
I've only just started trying to use Msieve and possibly GGNFS to factor a number of integres roughly in the <116 digit range. There are not RSA type numbers so quite often some small factors will be found reducing the size to ~105-110 digits.

I have downloaded both Msieve and GGNFS as well as the factmsieve.py script. I have built everything from source using the latest stable releases (1.52 msieve, 0.77.1 GGNFS) without any issues on Ubuntu 14.04 LTS. So far so good.

My issue comes when I try to get msieve to perform factorization using gnfs. I haven't quite figured out how to do that using the msieve aplication built form demo.c. Reading the factmsieve.py script I think I might have figured out how to perform gnfs using msieve's flags to perform one stage at a time. Unfortunately when I try that, after successfully generating polynomials, trying to perform sieving (-ns) gives me an assert error in malloc and the whole process dies.

Trying to use the factmsieve.py script I again managed to get it to generate polynomials, but when the ggnfs sieving part gets called it ends up exiting with an error code of -11 and the script terminates.

I have sadly very little knowledge about the gnfs algorithm so it is proving quite difficult to figure out what might be going wrong. I would be very grateful for any hints or pointers.

Thanks,
Drf.
For starters that source package for ggnfs is ancient. Use the svn source instead. factmsieve.py is much newer than 0.77.1 and might not work with binaries that old.
henryzz is offline   Reply With Quote
Old 2015-02-20, 15:06   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

EE916 Posts
Default

(I see Henryzz beat me to some of this.)

I wonder if you might have installed ggnfs from sourceforge. I (and another) have had trouble with that package. Instead I use the git-hub version (referenced on my page below).

I have a step-by-step page to install several packages (including ggnfs and msieve) on an Ubuntu system at the following link, in case you might like to review it:

Steps to install and set up Aliqueit on an Ubuntu* (or antiX) computer

There is also a thread here that has a self-install script:

Build Instructions for Ubuntu 14.04

You should review the entire thread.
EdH is offline   Reply With Quote
Old 2015-02-20, 15:10   #5
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

4,861 Posts
Default

Or you could take the lazy (software-wise) way out and grab the binaries for GGNFS sievers from the top post of the M991 team factoring thread in the factoring forum. For a beginner, understanding what msieve's flags do is a nice start and usually sufficient grasp to get going on factorizations. There are many parameters in the factmsieve script for improved efficiency, but those don't matter until yo uhave working software!
VBCurtis is offline   Reply With Quote
Old 2015-02-20, 16:37   #6
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22·5·373 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Or you could take the lazy

<snip>

There are many parameters in the factmsieve script for improved efficiency, but those don't matter until yo uhave working software!
Parameters don't matter unless you understand the algorithm.
R.D. Silverman is offline   Reply With Quote
Old 2015-02-20, 17:01   #7
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Parameters don't matter unless you understand the algorithm.
I'm with Bob's approach on this question, except that I would point out that frobbing the knobs on a black box can make it work differently well. Sometimes it gets better and sometimes it don't.

You've gotta ask yourself one question: "Do I feel lucky?" Well, do ya, punk?
xilman is offline   Reply With Quote
Old 2015-02-23, 13:03   #8
drf
 
Feb 2015

410 Posts
Default

Thank you for the responses. The problem ended up being with the wrong version of ggnfs. I still haven't figured out how to convince msieve to actually perform a gnfs factorization on it's own though.
Drf
drf is offline   Reply With Quote
Old 2015-02-23, 16:43   #9
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

164448 Posts
Default

Quote:
Originally Posted by drf View Post
Thank you for the responses. The problem ended up being with the wrong version of ggnfs. I still haven't figured out how to convince msieve to actually perform a gnfs factorization on it's own though.
Drf
I thought that msieve only had a QS siever. Am I wrong?
R.D. Silverman is offline   Reply With Quote
Old 2015-02-23, 17:28   #10
jyb
 
jyb's Avatar
 
Aug 2005
Seattle, WA

2×877 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
I thought that msieve only had a QS siever. Am I wrong?
Yes. It has an NFS line siever, but Jason has long recommended that it not be used anymore since, well, it's a line siever.

Last fiddled with by jyb on 2015-02-23 at 17:28
jyb is offline   Reply With Quote
Old 2015-02-23, 19:27   #11
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23×3×5×72 Posts
Default

Quote:
Originally Posted by jyb View Post
Yes. It has an NFS line siever, but Jason has long recommended that it not be used anymore since, well, it's a line siever.
I think it has been broken for a while as well.
henryzz is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Few questions Tumeez Information & Answers 7 2014-09-27 10:40
Two questions: Dubslow GPU Computing 1 2011-08-05 18:22
Some questions... OmbooHankvald PSearch 3 2005-09-17 19:29
5 questions OmbooHankvald Factoring 6 2005-08-28 19:31
Questions OmbooHankvald Prime Sierpinski Project 2 2005-08-01 20:18

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


Sat Jul 17 01:03:49 UTC 2021 up 49 days, 22:51, 1 user, load averages: 1.81, 1.61, 1.46

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.