mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2011-03-15, 19:26   #551
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Quote:
Originally Posted by jasonp View Post
Unless the scripts force a shutdown early, the internal time limit for poly selection is a linear interpolation between the entries of the following table.

Note that there is no consideration for parallel poly selection or for the number of sieving machines that are waiting for the poly selection to complete. Also, if you run with '-np X,Y' to search for a polynomial in a particular range, then there is no limit on the time spent (but a limit on the amount of time given to each of the leading coefficients between X and Y).
Code:
static const poly_deadline_t time_limits[] = {
    {MIN_NFS_BITS, 4 * 60},
    {304, 8 * 60},
    {320, 15 * 60},
    {348, 30 * 60},
    {365, 1 * 3600},
    {383, 2 * 3600},
    {399, 4 * 3600},
    {416, 8 * 3600},
    {433, 16 * 3600},
    {449, 32 * 3600},
    {466, 64 * 3600},
    {482, 100 * 3600},
    {498, 200 * 3600},
    {514, 300 * 3600},
};
jasonp,

I can't find that code on factmsieve.py. I found this:

Code:
# static global variables

PNUM = 0
LARGEP = 3
LARGEPRIMES = '-' + str(LARGEP) + 'p'
nonPrefDegAdjust = 12
polySelTimeMultiplier = 1.0
where from factMsieve.pl

Code:
# This is for an Athlon 2800+ laptop. If your machine is about half as fast,
# replace this with a 2. 25% as fast, replace with a 4. It controls how long
# the polynomial selection phase will last.
$polySelTimeMultiplier=1.0;
em99010pepe is offline   Reply With Quote
Old 2011-03-15, 19:57   #552
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101112 Posts
Default

Sorry, I should have mentioned that the code I posted is from the msieve source.

Without a script providing guidance, the time limit msieve uses is for an entire poly selection job; it will stop when the time has elapsed, or the range given runs out, whichever comes first. If you run with -np then the time limit is for stage 1 and stage2 together, otherwise it is for stage 1 only (stage 2 cannot be interrupted currently). This means you'd get higher throughput if you ran with two copies of 'msieve -np' on two separate cores, since your pipeline is idle for most of the time waiting on a stage 1 hit to begin stage 2. For a large input you can even run them on the same input range, msieve will randomize the portions of the space that are searched so that overlap is unlikely. Make sure to specify a different argument for the -l, -s and -nf options for each run, to avoid files getting overwritten...
jasonp is offline   Reply With Quote
Old 2011-03-16, 17:48   #553
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×7×149 Posts
Default

How would I combine the output from several -np runs to find the best poly? If possible I want to do it from a script.

I've halted polynomial selection for the c145 I'm working on. 2 days is probably long enough for a number that'll take about 8 days for sieving and linear algebra etc.

Chris K
chris2be8 is offline   Reply With Quote
Old 2011-03-16, 18:41   #554
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3·1,181 Posts
Default

If you have unix tools available, try 'grep norm *.p | sort -gk7 | tail -20' to get the 20 highest E-values. Then you have to find the file with a given E-value, and the polynomial that provides that E-value is below the 'norm' line.
jasonp is offline   Reply With Quote
Old 2011-03-20, 17:05   #555
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Another question I don't know if already asked in this thread.
About "Beginners Guide to NFS factoring using GGNFS and MSIEVE" from Jeff's page I was wondering if more than one number can be added to example.n to be factored, like yafu batch of work option.
em99010pepe is offline   Reply With Quote
Old 2011-03-20, 18:10   #556
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
Another question I don't know if already asked in this thread.
About "Beginners Guide to NFS factoring using GGNFS and MSIEVE" from Jeff's page I was wondering if more than one number can be added to example.n to be factored, like yafu batch of work option.
No, its strictly one number I'm afraid.
Brian Gladman is offline   Reply With Quote
Old 2011-03-20, 19:59   #557
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29·41 Posts
Default

Would it be possible to add that to the script?
smh is offline   Reply With Quote
Old 2011-03-20, 20:03   #558
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

Quote:
Originally Posted by smh View Post
Would it be possible to add that to the script?
I looked quickly at doing this but it looks anything but easy I'm afraid.
Brian Gladman is offline   Reply With Quote
Old 2011-04-08, 16:22   #559
Carlos Pinho
 

11578 Posts
Default

For a C150, under the script, lattice sieving was started with gnfs-lasieve4I13e instead of gnfs-lasieve4I14e, why? The issue is that too few per special-q are being found and the script is in loop. Minimum relations needed estimated was 1.53361e+07 but for this size of number it needs at least 3 times more. What am I doing wrong?
  Reply With Quote
Old 2011-04-08, 19:40   #560
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

Quote:
Originally Posted by Carlos Pinho View Post
For a C150, under the script, lattice sieving was started with gnfs-lasieve4I13e instead of gnfs-lasieve4I14e, why? The issue is that too few per special-q are being found and the script is in loop. Minimum relations needed estimated was 1.53361e+07 but for this size of number it needs at least 3 times more. What am I doing wrong?
Without knowing your inputs to the script, it is not possible to work out what might have caused this.
Brian Gladman is offline   Reply With Quote
Old 2011-04-13, 19:09   #561
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2·5·283 Posts
Default

For type:SNFS (on example.poly) how do I change the estimated minimum relations in function of the composite size? I want to increase the default settings.

Last fiddled with by em99010pepe on 2011-04-13 at 19:14
em99010pepe 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 08:12.


Tue Jul 27 08:12:34 UTC 2021 up 4 days, 2:41, 0 users, load averages: 1.83, 1.61, 1.68

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.