mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-01-03, 19:51   #496
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7×503 Posts
Default

Quote:
Originally Posted by Andi_HB View Post
O i have forgotten that i become Messages after the first sieving about the cat.exe.
But after the messages msieve filtering was running.
unxutils is a freeware package of unix utilities for windows. It contains things like head, tail, cat, wc, and so forth. If you are not a *nix user, "cat" is a program which concatenates two text files. It is really fast, and is useful for combining large files of relations into a single file for use in msieve. Windows doesn't have a native command to replace this one, so I wrote one quick in yafu - but its performance is nowhere near that of unxutils' cat.exe command. So I thought I'd add that message in there.

If enough people think its annoying, I'll remove it.
bsquared is offline   Reply With Quote
Old 2011-01-03, 21:24   #497
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

3·5·719 Posts
Default

Quote:
Originally Posted by bsquared View Post
unxutils is a freeware package of unix utilities for windows. It contains things like head, tail, cat, wc, and so forth. If you are not a *nix user, "cat" is a program which concatenates two text files. It is really fast, and is useful for combining large files of relations into a single file for use in msieve. Windows doesn't have a native command to replace this one, so I wrote one quick in yafu - but its performance is nowhere near that of unxutils' cat.exe command. So I thought I'd add that message in there.

If enough people think its annoying, I'll remove it.
Funny, I thought that the good old MS-DOG command COPY did pretty much that:
Code:
C:\> COPY FILE1.TXT FILE2.TXT BOTH.TXT
is pretty much the same as
Code:
% cat file1 file2 > both
Or am I missing some requirement you have in mind and have failed to pick up?

Paul
xilman is offline   Reply With Quote
Old 2011-01-03, 21:41   #498
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101110000012 Posts
Default

Quote:
Originally Posted by xilman View Post
Funny, I thought that the good old MS-DOG command COPY did pretty much that:
Code:
C:\> COPY FILE1.TXT FILE2.TXT BOTH.TXT
is pretty much the same as
Code:
% cat file1 file2 > both
Or am I missing some requirement you have in mind and have failed to pick up?

Paul
We often need to append one or more smallish files to a very large file. Doing this with copy is slow because it has to copy the large file as well as the smaller ones. cat with ">>" is much faster because only the smaller files need to be streamed.
bsquared is offline   Reply With Quote
Old 2011-01-03, 22:24   #499
bchaffin
 
Sep 2010
Portland, OR

22·3·31 Posts
Default

Quote:
Originally Posted by Karl M Johnson View Post

...

Since I've already spoken, another feature suggestion: "parallelize polyselection".
From my point of view, it can be done like this.
When msieve's polyselection starts, it says "searching leading coefficients from 1 to 14167290".
Why not launch N msieve instances, each doing it's own work in that range ?
I agree that a multi-threaded polyselect phase would be a wonderful thing. In this thread there is discussion of adding this capability to msieve itself. If that's going to happen it would be a better place for it, so that YAFU does not have to change every time the polyselect algorithm is updated (as it is being right now).
bchaffin is offline   Reply With Quote
Old 2011-01-04, 05:39   #500
axn
 
axn's Avatar
 
Jun 2003

32·5·113 Posts
Default

Quote:
Originally Posted by bsquared View Post
We often need to append one or more smallish files to a very large file. Doing this with copy is slow because it has to copy the large file as well as the smaller ones. cat with ">>" is much faster because only the smaller files need to be streamed.
Have you tried the "copy a+b" syntax? Or "type a >> b" syntax?
axn is offline   Reply With Quote
Old 2011-01-04, 05:56   #501
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

1001101100102 Posts
Default

Quote:
Originally Posted by xilman View Post
Funny, I thought that the good old MS-DOG command COPY did pretty much that:
Code:
C:\> COPY FILE1.TXT FILE2.TXT BOTH.TXT
is pretty much the same as
Code:
% cat file1 file2 > both
Or am I missing some requirement you have in mind and have failed to pick up?

Paul
it seems that copy doesn't work in a windows 7 "dos window" - at least it didn't work for me.
Andi47 is offline   Reply With Quote
Old 2011-01-04, 10:55   #502
mataje
 
mataje's Avatar
 
Jan 2009
Bilbao, Spain

11B16 Posts
Default

Hi Andi.
Do you try copy file1.txt+file2.txt both.txt?
mataje is offline   Reply With Quote
Old 2011-01-04, 11:15   #503
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2×17×73 Posts
Default

Quote:
Originally Posted by mataje View Post
Hi Andi.
Do you try copy file1.txt+file2.txt both.txt?
No, I did try something like copy *.out msieve.dat

where *.out are the outputfiles of the current NFS factorization. (manually adding a file named 0.out which contains the line N <my number>, the name "0.out should make sure that it goes to the very beginning of the msieve.dat file.)

Edit: This works in windows XP, but not in windows 7. (now I copied a cat.exe into the directory where I concatenate my outputfiles and use cat *.out >>msieve.dat)

Last fiddled with by Andi47 on 2011-01-04 at 11:17 Reason: additional info
Andi47 is offline   Reply With Quote
Old 2011-01-04, 14:20   #504
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Quote:
Originally Posted by axn View Post
Have you tried the "copy a+b" syntax? Or "type a >> b" syntax?
I tried "type a >> b" first and got miserable performance. The fgets/fputs loop I wrote is faster than type. Yesterday was the first time I tried "copy a+b", simply because I had a mindset of _appending_ data, not copying it. But to append data I can't see a way around specifying the larger file in the input list to copy - which is wasted effort.

The whole issue isn't really a big deal. Appending data files is a negligible portion of the runtime of a nfs factorization. I'll remove the prompt for unxutils...
bsquared is offline   Reply With Quote
Old 2011-01-05, 05:42   #505
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

352110 Posts
Default yafu-1.22 available

Binaries and source code available here.

Changes include:
+ A new tune() function which measures the speed of several siqs and gnfs factorizations and computes regression curves for a particular computer. This info is used to estimate the amount of pretesting to do before siqs or nfs (ecm, pp1, pm1, etc.) as well as determine the optimal siqs/nfs crossover point. The yafu.ini file is automatically updated to track regression information for (optionally) multiple systems. Tune should take about a half hour to an hour to run, depending on your system.
+ new flags. ecm_qs_ratio and ecm_gnfs_ratio allow one to specify the target time ratio of pretesting to siqs or gnfs respectively. the noecm flag forces ecm to be skipped entirely.
+ tweaks to factoring via NFS. reporting to logfile, small prime divisibility and primalty checks, screen info, etc
+ bug fixes including a fix for this, and for an issue reported via email. Thanks lorgix and W. Ferguson!
+ gmp-ecm messages are now printed at a verbosity level equal to 2 less than the yafu verbosity level. for example, yafu started with options -v -v -v -v prints any gmp-ecm messages at verbosity level -v -v

Any issues, let me know.
- ben.
bsquared is offline   Reply With Quote
Old 2011-01-05, 19:20   #506
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

26716 Posts
Default

Let's try it out!

sigma = 1940137128 completes the factorization of 198^198*4+1.
lorgix is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
YAFU-1.34 bsquared YAFU 119 2015-11-05 16:24
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu-1.33 bsquared YAFU 12 2012-11-08 04:12
yafu-1.32.1 bsquared YAFU 21 2012-09-04 19:44

All times are UTC. The time now is 05:34.


Fri Aug 6 05:34:33 UTC 2021 up 14 days, 3 mins, 1 user, load averages: 3.52, 3.04, 2.74

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.