mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2010-01-30, 18:42   #199
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by 10metreh View Post
I know that schickel uses an ECMNET server to run ECM on his sequences, which are all quite large. It is fine for running aliquot sequences. However, the aliquot sequence project is currently structured completely differently: people reserve whole sequences, not just composites for NFS, with a bit of ECM added in, like the Homogeneous Cunninghams project. I'm not saying that ECMNET wouldn't work for aliquot sequences; just that it would eliminate the element of fun that constitutes a downdriver run.
So, just reserve a few dozen whole sequences, or a few thousand, depending on your resources.

At base, I'm suggesting that you use parallel, not serial, processing.


Paul
xilman is offline   Reply With Quote
Old 2010-02-01, 16:37   #200
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default bug report --- reboot during LA phase

I've been running the Python script on a 32-bit XP installation --- the "machine" is actually a VirtualBox VM.

Windoze Update re-booted my mchine when the LA was about 5% through. After it came up again, the LA failed to restart. Here is the log file:

Code:
Mon Feb 01 15:37:02 2010 -> Running setup ...
Mon Feb 01 15:37:02 2010 -> Estimated minimum relations needed: 1.14062e+07
Mon Feb 01 15:37:02 2010 -> cleaning up before a restart
Mon Feb 01 15:37:02 2010 -> Running lattice siever ...
Mon Feb 01 15:37:02 2010 -> entering sieving loop
Mon Feb 01 15:37:02 2010 -> Running matrix solving step ...
Mon Feb 01 15:37:02 2010 -> msieve -s foo.dat -l foo.log -i foo.ini -v -nf foo.fb -t 1 -nc2
Mon Feb 01 15:37:02 2010  
Mon Feb 01 15:37:02 2010  
Mon Feb 01 15:37:02 2010  Msieve v. 1.43
Mon Feb 01 15:37:02 2010  random seeds: bbf8a680 625a66ff
Mon Feb 01 15:37:02 2010  factoring 667042581886253540421282123249269716618711643280851695815513316831606593912859018655030322042314014706215437995357683550559598451619213049278694422649 (150 digits)
Mon Feb 01 15:37:04 2010  searching for 15-digit factors
Mon Feb 01 15:37:06 2010  commencing number field sieve (150-digit input)
Mon Feb 01 15:37:06 2010  R0: -6366805760909027985741435139224001
Mon Feb 01 15:37:06 2010  R1:  1
Mon Feb 01 15:37:06 2010  A0:  1
Mon Feb 01 15:37:06 2010  A1:  0
Mon Feb 01 15:37:06 2010  A2:  0
Mon Feb 01 15:37:06 2010  A3:  0
Mon Feb 01 15:37:06 2010  A4:  0
Mon Feb 01 15:37:06 2010  A5:  200
Mon Feb 01 15:37:06 2010  skew 1.00, size 8.558778e-012, alpha 0.373617, combined = 2.874687e-010
Mon Feb 01 15:37:06 2010  
Mon Feb 01 15:37:06 2010  commencing linear algebra
Mon Feb 01 15:37:07 2010  read 861427 cycles
Mon Feb 01 15:37:10 2010  cycles contain 2851091 unique relations
Mon Feb 01 15:37:10 2010  read 0 relations
Mon Feb 01 15:37:10 2010  error: cannot locate relation 11556978
The foo.dat file had been truncated to a single line and the script did not use previously generated files to try to recover gracefully.

Paul
xilman is offline   Reply With Quote
Old 2010-02-01, 17:29   #201
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

10248 Posts
Default

Hi Paul

From the log it seems that the termination was such that the resume file (foo.resume) was not written.

If a *.resume file is not found the script is supposed to delete all the intermediate files and start again. But it seems that some files might have been left around and caused a bad restart. Do you know what files were around after the failure?

Brian
Brian Gladman is offline   Reply With Quote
Old 2010-02-01, 17:54   #202
10metreh
 
10metreh's Avatar
 
Nov 2008

2·33·43 Posts
Default

Quote:
Originally Posted by xilman View Post
<snip>
I found this same bug in factMsieve.pl a while ago, and it still hasn't been found, let alone fixed. It seems it's been carried over to the new script.

Last fiddled with by 10metreh on 2010-02-01 at 17:54
10metreh is offline   Reply With Quote
Old 2010-02-01, 18:39   #203
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2A0116 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
Hi Paul

From the log it seems that the termination was such that the resume file (foo.resume) was not written.

If a *.resume file is not found the script is supposed to delete all the intermediate files and start again. But it seems that some files might have been left around and caused a bad restart. Do you know what files were around after the failure?

Brian
Sorry, I don't remember and the scene-of-crime has been so disturbed by a subsequent (and successful) restart that it's now impossible to say.


Paul
xilman is offline   Reply With Quote
Old 2010-02-01, 20:15   #204
tmorrow
 
tmorrow's Avatar
 
Jan 2004

103 Posts
Default

A question about factmsieve.py version 0.44:

Code:
# grep fiile factmsieve.py
    print('rlim: {0:d}'.format(lats_p['rlim']), fiile = out_f)
    print('alim: {0:d}'.format(lats_p['alim']), fiile = out_f)
    print('lbpr: {0:s}'.format(LBPR), fiile = out_f)
    print('lbpa: {0:s}'.format(LBPA), fiile = out_f)
Should the "fiile" references be "file" instead?
tmorrow is offline   Reply With Quote
Old 2010-02-01, 20:19   #205
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

10000101002 Posts
Default

Quote:
Originally Posted by tmorrow View Post
A question about factmsieve.py version 0.44:

Code:
# grep fiile factmsieve.py
    print('rlim: {0:d}'.format(lats_p['rlim']), fiile = out_f)
    print('alim: {0:d}'.format(lats_p['alim']), fiile = out_f)
    print('lbpr: {0:s}'.format(LBPR), fiile = out_f)
    print('lbpa: {0:s}'.format(LBPA), fiile = out_f)
Should the "fiile" references be "file" instead?
Yes - thanks for finding this. Corrected version attached.

Brian

Last fiddled with by jasonp on 2010-07-22 at 03:25 Reason: remove old attachment
Brian Gladman is offline   Reply With Quote
Old 2010-02-01, 21:53   #206
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

I haven't checked this latest version, but 0.44 does way to much sieving for small composites. Can you lower the minimum amount needed?
smh is offline   Reply With Quote
Old 2010-02-01, 22:14   #207
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

10000101002 Posts
Default

I am wondering if we now have enough information to set minrels sensibly?

From what has been said, it seems that we need something like minrels verses decimal digits for each lpbr/a value.

Is anyone willing to suggest some values?

Brian
Brian Gladman is offline   Reply With Quote
Old 2010-02-02, 20:19   #208
tmorrow
 
tmorrow's Avatar
 
Jan 2004

10310 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
From what has been said, it seems that we need something like minrels verses decimal digits for each lpbr/a value.

Is anyone willing to suggest some values?
I think minrels versus decimal digits for each lpbr/a value is a good approach.

I'm trying to determine what values are selected by the program currently over the range of decimal digits for GNFS - lpbr/a and minrel. I need some more time for this as I haven't had a lot of spare time.

There are a few different functions that load the parameters, so far I've looked at load_default_parameters. This function first tries to load the parameter from def-par.txt satisying abs(digits-file_digits) at a minimum. These values are then possibly overwritten magic formulas in facmsieve if fact_p['digs']=digits/0.72, which occurs for c116+ numbers.

Based on what I've seen in the script, decimal digits determines lpbr/a (from def-par.txt lookup) and minrel (from formula in script). The vanilla/default def-par.txt has so many holes (mine only has 15 gnfs rows for C70-C126) that those choices for lpbr/a are not very good and result in poor minrel estimates that match the chosen lpbr/a.

There's more than enough empirical data around to collate a practical set of parameters that should work in most circumstances and on most systems. Perhaps we can start with seeing if we can get a consensus on the lpbr/a dimension vs decimal digits. We can start with the values currently selected by the program (and are suboptimal in places) and going from there.
tmorrow is offline   Reply With Quote
Old 2010-02-02, 20:21   #209
tmorrow
 
tmorrow's Avatar
 
Jan 2004

103 Posts
Default

Bug in miller_rabin.

Traceback (most recent call last):
File "../factmsievetim.py", line 1963, in <module>
if probable_prime_p(fact_p['n'], 10):
File "../factmsievetim.py", line 383, in probable_prime_p
return 1 if miller_rabin(n, r) else 0
NameError: global name 'miller_rabin' is not defined
siever terminated

Should the miller_rabin call be miller_rabin_1?
tmorrow is offline   Reply With Quote
Reply



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 01:24.


Sat Jul 17 01:24:41 UTC 2021 up 49 days, 23:11, 1 user, load averages: 1.22, 1.13, 1.20

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.