mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2011-06-18, 09:51   #1
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2×17×73 Posts
Exclamation Msieve v1.49 feedback

Quote:
Originally Posted by jasonp View Post
Until then it's going to be all NFS polynomial selection, all the time.
hmmmm... what about multithreaded NFS poly selection (msieve -np -t <threads>)? one can do this with the new yafu nfs() functionality or by hand, but both ways are not suitable for fully automated aliquot sequence runs with aliqueit.
Andi47 is offline   Reply With Quote
Old 2011-06-18, 10:56   #2
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

For at least the next few months, I'm only going to have the time to do some deep explorations on running stage 2 for very large problems. After that, I've been thinking of an overhaul of the code to use some of the nice stuff in YAFU.
jasonp is offline   Reply With Quote
Old 2011-06-18, 16:41   #3
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×1,039 Posts
Default

Quote:
Originally Posted by Andi47 View Post
hmmmm... what about multithreaded NFS poly selection (msieve -np -t <threads>)? one can do this with the new yafu nfs() functionality or by hand, but both ways are not suitable for fully automated aliquot sequence runs with aliqueit.
The factMsieve,pl from http://mersenneforum.org/showthread.php?t=15662 should do what you want. Assuming aliqueit can generate a NAME.n file and call factMsieve.pl then it should do the rest once you've set paths to binaries, number of CPUs, etc.

The (untested) facility to start helpers automatically was designed for aliqueit etc to exploit multiple systems. I've just not had time to set up passwordless ssh (rsh or rexec should work instead of ssh) from the master to a helper and test it.

Chris K
chris2be8 is offline   Reply With Quote
Old 2011-06-18, 16:57   #4
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

46628 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
The factMsieve,pl from http://mersenneforum.org/showthread.php?t=15662 should do what you want. Assuming aliqueit can generate a NAME.n file and call factMsieve.pl then it should do the rest once you've set paths to binaries, number of CPUs, etc.

The (untested) facility to start helpers automatically was designed for aliqueit etc to exploit multiple systems. I've just not had time to set up passwordless ssh (rsh or rexec should work instead of ssh) from the master to a helper and test it.

Chris K
Thanks, I will check it out.
Andi47 is offline   Reply With Quote
Old 2011-06-18, 18:31   #5
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2×17×73 Posts
Default

Quote:
Originally Posted by Andi47 View Post
Thanks, I will check it out.
Poly search seemed to run fine (although I did no deep check if it in fact did 6-threaded poly search), but when sieving was about to start, I got this error:

Code:
syntax error at factMsieve.pl line 103, near "my "
Global symbol "$LARGEP" requires explicit package name at factMsieve.pl line 103.
Global symbol "$LARGEP" requires explicit package name at factMsieve.pl line 186.
BEGIN not safe after errors--compilation aborted at factMsieve.pl line 668.
reverting to older but stable version of factmsieve.pl

Edit: I changed my $NICE="nice -n 19 "; to my $NICE=""; hence nice does not work under windows (gives an error "statement is spelled wrong or does not exist"). Could this have caused the problem? (my $NICE= " " did'nt work either.)

Last fiddled with by Andi47 on 2011-06-18 at 18:35
Andi47 is offline   Reply With Quote
Old 2011-06-19, 15:02   #6
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2·1,039 Posts
Default

Strange, the code works for me, but I run Linux. Are you sure you didn't delete the ; on the end of the my $NICE= line? If I deliberately delete it I get similar error messages.

Chris K
chris2be8 is offline   Reply With Quote
Old 2011-06-19, 15:13   #7
chris2be8
 
chris2be8's Avatar
 
Sep 2009

1000000111102 Posts
Default

When using msieve for line sieving under what circumstances does it write the relations in compressed format? I want to run msieve's line sieving to a new file which I can then copy into the $NAME.dat file, but I'm getting compressed relations which can't be copied into the same file as the uncompressed relations from gnfs-lasieve4I*

I managed to get it to work by renaming the output file to end with .gz, gunzip'ing it and copying that into $NAME.dat, but thats not very likely to work on Windows systems which probably won't have gunzip installed.

Chris K
chris2be8 is offline   Reply With Quote
Old 2011-06-19, 15:28   #8
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2×17×73 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
Are you sure you didn't delete the ; on the end of the my $NICE= line? If I deliberately delete it I get similar error messages.

Chris K
ooops you are right, the ; went indeed missing. I will do another test run in a few days. (I don't want to interrupt my current factorization.)
Andi47 is offline   Reply With Quote
Old 2011-06-21, 16:44   #9
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2·1,039 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
When using msieve for line sieving under what circumstances does it write the relations in compressed format? I want to run msieve's line sieving to a new file which I can then copy into the $NAME.dat file, but I'm getting compressed relations which can't be copied into the same file as the uncompressed relations from gnfs-lasieve4I*
Any comments? Jason? Anyone?
Chris K
chris2be8 is offline   Reply With Quote
Old 2011-06-21, 17:01   #10
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Msieve uses an abstraction to represent a source for reading or writing relations. If compiled with NO_ZLIB=1, relation input and output are assumed to be of uncompressed text. Otherwise the same algorithm from gzip is used automatically to read from and write to the file, and thus the whole file has to be compressed (or not). Note that you can concatenate compressed relation files with no further processing, and the result is still a valid compressed file.

(My windows binaries are always compiled with NO_ZLIB=1)
jasonp is offline   Reply With Quote
Old 2011-06-22, 17:04   #11
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×1,039 Posts
Default

Does it always write uncompressed data if the output file already contains some uncompressed data? That's the only difference I can see in my two cases.

Also does msieve object if there is more that 1 "N " line in the input .dat file?

Recompiling with NO_ZLIB=1 won't help, I'm trying to update factMsieve.pl for anyone to use and I can't guarantee everyone will do that (or even know how to).

Chris K
chris2be8 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve 1.53 feedback xilman Msieve 149 2018-11-12 06:37
Msieve 1.50 feedback firejuggler Msieve 99 2013-02-17 11:53
Msieve 1.43 feedback Jeff Gilchrist Msieve 47 2009-11-24 15:53
Msieve 1.42 feedback Andi47 Msieve 167 2009-10-18 19:37
Msieve 1.41 Feedback Batalov Msieve 130 2009-06-09 16:01

All times are UTC. The time now is 00:54.


Sat Jul 17 00:54:23 UTC 2021 up 49 days, 22:41, 1 user, load averages: 1.07, 1.35, 1.37

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.