mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2007-10-12, 03:34   #1
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

66618 Posts
Default Linux newpgen pfgw llr

My topic title is more for searchers than for people just browsing the forum. Just thought I'd mention that. :)

I'm using snewpgen to sieve a file, and there are a couple things that annoy me. First, why can't we pick the prime-finding program the output gets sent to? And second, snewpgen only prints the time per factor when a factor is actually found, which sucks when there's 20 or more minutes between factors. It's basically a crap shoot figuring out when to stop.

Now that I've vented, it's time to be productive. :) Has anyone ever tried changing the name of the Linux llr program to pfgw to see if things would automatically switch over that way?
jasong is offline   Reply With Quote
Old 2007-10-13, 22:08   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×701 Posts
Default

Quote:
First, why can't we pick the prime-finding program the output gets sent to?
Jean's LLR program did not exist when NewPGen was written by Paul Jobling.

Quote:
And second, snewpgen only prints the time per factor when a factor is actually found, which sucks when there's 20 or more minutes between factors.
If you are really looking at "20+ mins" you ought to keep a daily manual log of your sieving progress. (For 321 our finishing depth was about 1GHz Athlon day.) I recall NewPGen does its running average based on the last 20(?) factors found. So you would have to take into account that this average might not be sensitive to fluctuations in the time to find a factor; there might be reboots too and also other processes running on your computer, slowing NewPgen down. Finally different chips have different performances; It was well understood that Athlons were great for sieving and Pentium4s were better at LLR'ing.

Quote:
It's basically a crap shoot figuring out when to stop.
Somewhere in this forum is a program written by Thomas Ritschel that calculates the optimal cutoff for NewPGen for one-pass LLR/PRP.

Quote:
Now that I've vented, it's time to be productive. :) Has anyone ever tried changing the name of the Linux llr program to pfgw to see if things would automatically switch over that way?
My guess is that this would do. Have you tried it?

Last fiddled with by paulunderwood on 2007-10-13 at 22:17
paulunderwood is offline   Reply With Quote
Old 2007-10-17, 20:17   #3
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

5×701 Posts
Default

Hmmmm, I thought I responded to this thread. I must not have ever actually submitted the message.

Anyway, thanks for the response, and I've decided to use the logging feature, like you recommended.
jasong is offline   Reply With Quote
Old 2008-02-15, 20:15   #4
pacionet
 
pacionet's Avatar
 
Oct 2005
Italy

3×113 Posts
Default

I tried to run pfgw (both builded by myself both the executable) but I got an error : it block and after about 40 minutes it output a pfgw_err.log saying contact ... for bugs , try the -a1 flag .

Also with -a1 flag the program failed at the first iteration....
pacionet is offline   Reply With Quote
Old 2008-02-15, 20:26   #5
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

112448 Posts
Default

Quote:
Originally Posted by pacionet View Post
I tried to run pfgw (both builded by myself both the executable) but I got an error : it block and after about 40 minutes it output a pfgw_err.log saying contact ... for bugs , try the -a1 flag .

Also with -a1 flag the program failed at the first iteration....
Would you mind telling us the kind of search you are doing, so that we may help you track the problem?

Luigi
ET_ is offline   Reply With Quote
Old 2008-02-15, 23:30   #6
pacionet
 
pacionet's Avatar
 
Oct 2005
Italy

3·113 Posts
Default

I ran pfgw this way:

> ./pfgw factorial.out

where factorial.out contains output of newpgen:

ABC $a!3$b // MF Sieved to: 4741603759
[....]


On Windows no problems at all.
On Linux (Red Hat) I got an error like the one reported here

http://tech.groups.yahoo.com/group/o...w/message/1722

after about 40 minutes (no progress is shown) (The
following output is not my error but my error is the same)


*** WARNING *** : An error was detected in the reciprocal routine.
If this occurred during normal use, contact bugs@...,
including the number you were testing to produce this error,
and disregard the results of tests on this number.
If this error occurs in optimization mode, you may ignore it.
PRP: 17*2^(429318+1)-197*2^202534-1 1/429323 mro=0.5 sum=5507.75/0.00
Iteration: 1/429323 ERROR: SUM(INPUTS) != SUM(OUTPUTS),
9 != 9
(Diff=0 max allowed=5508)
(Test aborted, try again using the -a1 switch)


With the -a1 switch I got a similar behaviour and a similar error.

Is a critical bug ?

Last fiddled with by pacionet on 2008-02-15 at 23:34
pacionet is offline   Reply With Quote
Old 2008-02-16, 00:32   #7
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×701 Posts
Default

Does the solution given in the recent thread http://tech.groups.yahoo.com/group/o...w/message/1882 solve your problem?

Here is another link:
http://tech.groups.yahoo.com/group/p...m/message/8452

(Out of my depth.)

Last fiddled with by paulunderwood on 2008-02-16 at 00:47
paulunderwood is offline   Reply With Quote
Old 2008-02-16, 13:35   #8
pacionet
 
pacionet's Avatar
 
Oct 2005
Italy

3·113 Posts
Default

Disabling NX or XD in the BIOS ?

I have no root privileges to try this solution...
pacionet is offline   Reply With Quote
Old 2008-02-16, 13:59   #9
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×701 Posts
Default

The only work-arounds I can see are: crunch the (few) problematic numbers on a box that copes with them; or try compiling PFGW (from the available source) statically, and maybe using an older version of GMP.

Last fiddled with by paulunderwood on 2008-02-16 at 14:00
paulunderwood is offline   Reply With Quote
Old 2008-02-16, 18:28   #10
pacionet
 
pacionet's Avatar
 
Oct 2005
Italy

3×113 Posts
Default

Static compiling didn't solve the issue.
Maybe I'll try with an older version of GMP.
pacionet is offline   Reply With Quote
Old 2008-02-16, 23:55   #11
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1101101100012 Posts
Default

Try compiling some "older versions" from
http://tech.groups.yahoo.com/group/openpfgw/files/
(membership required)

Last fiddled with by paulunderwood on 2008-02-16 at 23:56
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PFGW and NewPGen robert44444uk Prime Gap Searches 34 2018-06-06 14:37
Compile Linux version for PFGW carpetpool Linux 14 2017-02-09 11:31
(Open)PFGW 32 bit linux Rincewind Software 0 2016-03-10 09:18
PFGW 3.3.6 or PFGW 3.4.2 Please update now! Joe O Sierpinski/Riesel Base 5 5 2010-09-30 14:07
Does NewPGen have a bug? MooooMoo Riesel Prime Search 16 2008-12-11 11:46

All times are UTC. The time now is 15:56.

Wed Dec 2 15:56:08 UTC 2020 up 83 days, 13:07, 2 users, load averages: 1.68, 1.55, 1.74

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.