mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > GPU to 72

Reply
 
Thread Tools
Old 2012-08-12, 19:23   #89
mognuts
 
mognuts's Avatar
 
Sep 2008
Bromley, England

43 Posts
Default

Quote:
Originally Posted by kracker View Post
It's a bat script... (only windows)... and the script is rough.... give me...a...few...



How many "workers" should I make it support? (max)
It should be possible to write the whole thing in perl, avoiding the use of bat scripts altogether. I've given it a go. Do you want me to post what I've managed so far?
mognuts is offline   Reply With Quote
Old 2012-08-12, 23:15   #90
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

23×271 Posts
Default

Quote:
Originally Posted by mognuts View Post
It should be possible to write the whole thing in perl, avoiding the use of bat scripts altogether. I've given it a go. Do you want me to post what I've managed so far?
Sure!
kracker is offline   Reply With Quote
Old 2012-08-13, 04:50   #91
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

112310 Posts
Default

I second that ;)
flashjh is offline   Reply With Quote
Old 2012-08-13, 08:44   #92
mognuts
 
mognuts's Avatar
 
Sep 2008
Bromley, England

43 Posts
Default Consolidation of worker results for submit_spider

Here goes ...

I've managed to cobble together some code that appears to do the job on my computer (Windows 7 64bit/ActivePerl/mfaktc).

Please note that since I started writing this, (all of 5 days ago), PrimeNet no longer gives inflated credit for factors found when submitted manually, so the variable $RemFact needs to be set at 0, unless you fancy having a play.

It was written assuming that multiple instances of mfakt* are run in subdirectories/folders and not in the same directory/folder as the script itself. It should still work, however not much in the way of results consolidation will be going on.

The usual rules apply. No guarantees, for research purposes only, I can't safeguard against data loss, and if I've upset anybody for any reason whatsoever then I'm very very sorry etc.

mognuts
Attached Files
File Type: zip submit.zip (5.1 KB, 89 views)
mognuts is offline   Reply With Quote
Old 2012-08-22, 10:03   #93
mognuts
 
mognuts's Avatar
 
Sep 2008
Bromley, England

1010112 Posts
Default Consolidation of worker results for submit_spider

I've modified the code to make it a little more robust and added a couple of extra features. I've also removed the typos that crept in the previous version.

If anybody wants to try this and evaulate it then I'll be very greatful.

mog
Attached Files
File Type: zip submit.zip (4.7 KB, 100 views)
mognuts is offline   Reply With Quote
Old 2013-01-04, 01:06   #94
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

I found a bug in the script. If you have mfakt* (mfaktc at least; I'd guess mfakto has this option as well) set to include the UID prefix using the V5UserID and ComputerID options, the regex used to detect results no longer finds a match, since it only looks at the start of the line:
Code:
   if ($Line =~ /^no factor for (M\d*)/ || $Line =~ /^(M\d*) has a factor/ 
      || $Line =~ /^(M\d*) no factor from/) {
I was able to fix this for me by removing the ^, thus allowing the string to be found anywhere in the line:
Code:
   if ($Line =~ /no factor for (M\d*)/ || $Line =~ /(M\d*) has a factor/ 
      || $Line =~ /(M\d*) no factor from/) {
As long as this won't break anything else, feel free to include this in the next release of the script.
Mini-Geek is offline   Reply With Quote
Old 2013-01-04, 01:15   #95
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

260216 Posts
Default

Quote:
Originally Posted by Mini-Geek View Post
I found a bug in the script.

[snip]

As long as this won't break anything else, feel free to include this in the next release of the script.
Thanks!

The script was written before there was an option for a UN/CN to be included in the results.

And I'm long overdue to release my Fetching/Submitting spider, which subsumes the previous code. But I'll be sure to take this into account (with appropriate credit, of course... ).
chalsall is online now   Reply With Quote
Old 2014-02-02, 00:46   #96
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

3×2,741 Posts
Default

What is the status of the spider?

http://www.gpu72.com/spider/

Does it still have issues with returning factors?

Thanks!

Xyzzy is offline   Reply With Quote
Old 2014-02-02, 17:45   #97
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2·5·7·139 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Does it still have issues with returning factors?
Only when Primenet isn't accepting them; it is at the moment.

Unfortunately the Spider was a quick and dirty hack (not nearly as sophisticated as MISFIT), and doesn't handle failed communications very well. In the case of an error, it simply renames the file as "not_completely_submitted_${Now}.txt".

What I do is every few days check the directory mfaktc and the spider are running in, and if I see any such files execute the command "cat not_completely_submitted_* >> results.txt; rm not_completely_submitted_*".
chalsall is online now   Reply With Quote
Old 2014-02-02, 18:26   #98
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

3·2,741 Posts
Default

What happens if work is reported "out of order"?

Example: Say you are trial factoring from 71 to 74, and when the spider tries to communicate that 71-72 is done, it fails, and then a while later it reports, successfully, that 72-73 and 73-74 is done. Later you want to report the 71-72 part. What happens?
Xyzzy is offline   Reply With Quote
Old 2014-02-02, 18:48   #99
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

2×5×7×139 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Example: Say you are trial factoring from 71 to 74, and when the spider tries to communicate that 71-72 is done, it fails, and then a while later it reports, successfully, that 72-73 and 73-74 is done. Later you want to report the 71-72 part. What happens?
Excellent point!

Although I have never encountered this myself, in such a case additional human interaction is required, since a "not required" message from Primenet is not considered a communications error and so the results.txt file is not moved to "not_completely_submitted_${now}.txt".

The commands:

Code:
cat not_completely_submitted_* > temp.txt
grep [EXPONENT_IN_QUESTION] sent/*.txt >> temp.txt
sort temp.txt >> results.txt
rm not_completely_submitted_* temp.txt
Should work.
chalsall is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPU to 72 spider poaching exponents? ixfd64 GPU to 72 2 2014-07-27 20:38
It Seems The Great Spider ... Dubslow Forum Feedback 13 2012-06-01 13:39
Automatic temperature control TObject Software 13 2012-04-27 19:33
Went from 8 workers to 4 workers on v26.6 upgrade dmoran Software 13 2011-05-23 12:36
Manual submission of automatic assignment result tichy PrimeNet 4 2010-12-17 09:57

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


Fri Jul 16 15:17:19 UTC 2021 up 49 days, 13:04, 2 users, load averages: 1.33, 1.68, 1.71

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.