mersenneforum.org  

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

Reply
 
Thread Tools
Old 2014-02-02, 19:18   #100
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2·23·179 Posts
Default

We tested the spider and it works well.

We will remove the factor found lines and deal (somehow) with those manually because PrimeNet shorted us, which we suppose is like playing the lottery. (See image attached.)

We have had great trouble in the past submitting our "mega-dumps" but we are lazy and that seemed like the only way to submit work without error. We will now use the spider, perhaps once a day.

Question: What happens if mfaktc writes to results.txt during the time the spider is working? Do we need to ensure that mfaktc is in the middle of a long run to be safe?

PS - We had to manually run "sudo apt-get install libwww-perl" to get the spider to work. This was not an easily figured out solution on our end because there are billions (?) of Perl packages. One would think a package like that would be installed by default.

Thanks for the script!

Attached Thumbnails
Click image for larger version

Name:	spider.png
Views:	118
Size:	174.2 KB
ID:	10732  
Xyzzy is offline   Reply With Quote
Old 2014-02-02, 19:42   #101
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
We will remove the factor found lines and deal (somehow) with those manually because PrimeNet shorted us, which we suppose is like playing the lottery. (See image attached.)
Yes; this is a well documented "bug" with Primenet. George and James are aware of it, and hopefully it can be fixed sometime soon... (?)

Quote:
Originally Posted by Xyzzy View Post
We will now use the spider, perhaps once a day.
I, personally, use it twice an hour via a crontab entry:
Code:
9,39 * * * * ~/prime/gpu/tf/submit_spider ~/prime/gpu/tf/ >/dev/null
Quote:
Originally Posted by Xyzzy View Post
Question: What happens if mfaktc writes to results.txt during the time the spider is working? Do we need to ensure that mfaktc is in the middle of a long run to be safe?
Nope, you don't need to worry about this. The spider is intended to be (mostly) fully automatic. The code in the script:
Code:
# Move the results file so it won't get clobbered.
rename("results.txt","submitting_${Now}.txt");

# Sleep for two seconds to ensure any other users of results.txt finish up.
sleep(2);
... manages the situation where mfakt[c|o] and the spider happen to be working on the file at the same instant. It's known as a "reader - writer" relationship; only one program writes, only one reads. (To get "geeky", this leverages on the fact that a file can be renamed by one program, but if another program already has an open "file-handle" for said file any changes to it are preserved.)

Quote:
Originally Posted by Xyzzy View Post
PS - We had to manually run "sudo apt-get install libwww-perl" to get the spider to work. This was not an easily figured out solution on our end because there are billions (?) of Perl packages. One would think a package like that would be installed by default.
Interesting observation. What distro are you using? I'll make a note on the spider's documentation page.
chalsall is offline   Reply With Quote
Old 2014-02-02, 19:52   #102
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2·23·179 Posts
Default

Quote:
I, personally, use it twice an hour via a crontab entry:
How do you deal with factors found if it is automated? (Should the script be modified to pull out factor found lines and put them into a different file? Or maybe rewrite them back into results.txt?)

Quote:
Interesting observation. What distro are you using? I'll make a note on the spider's documentation page.
Ubuntu 12.04 (LTS)
Xyzzy is offline   Reply With Quote
Old 2014-02-02, 20:01   #103
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
How do you deal with factors found if it is automated? (Should the script be modified to pull out factor found lines and put them into a different file? Or maybe rewrite them back into results.txt?)
I, personally, don't particularly care about "proper" credits. And I would argue that George / Scott (and now James) should fix a bug which has been communally known for several years now, rather than having other programs and humans do additional work. Trivial to fix on Primenet (one regex test).

Quote:
Originally Posted by Xyzzy View Post
Ubuntu 12.04 (LTS)
Thanks for that information.
chalsall is offline   Reply With Quote
Old 2014-02-02, 20:20   #104
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

2·23·179 Posts
Default

The only reason we concern ourself with the factor thingie is because you have a report that shows the expected number of factors for the amount of work we have done.

http://www.gpu72.com/reports/worker/...4f765eb0f6ca8/

Since it is trivial to spoof results to gain false credit, we like to think that the expected factors found metric would allow others to see that our work is legit.

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

262716 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Since it is trivial to spoof results to gain false credit, we like to think that the expected factors found metric would allow others to see that our work is legit.
GPU72 calculates this metric based on its own assignments. It doesn't matter if Primenet erroneously records the factor-found result as being found via P-1.

And, there will often be a large deviation of "Expected" vs "Found". Some are "lucky", some are "unlucky". If it's more than 10% out we get suspicious (and I sometimes waste my own GPU cycles double checking TFing results -- I have never found a cheater), but your particular results do not appear to be non-nominal.
chalsall is offline   Reply With Quote
Old 2014-02-02, 23:24   #106
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

823410 Posts
Default

Well, the spider is now running automatically, and it works.



Now we have to find something else to "fix".

Xyzzy is offline   Reply With Quote
Old 2014-02-03, 08:45   #107
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

11×311 Posts
Default

Quote:
Originally Posted by chalsall View Post
Yes; this is a well documented "bug" with Primenet. George and James are aware of it, and hopefully it can be fixed sometime soon... (?)
I have been (still am) on vacation for the last long while. I'll be back in the frozen land I call home in about a week though, and I'll try and keep Primenet results submission fixing near the top of the huge pile of catch-up I have to sort through then.
James Heinrich is offline   Reply With Quote
Old 2014-02-12, 11:58   #108
Bdot
 
Bdot's Avatar
 
Nov 2010
Germany

3·199 Posts
Default New primenet pages vs. submit_spider

It appears submit_spider does not do well with the new primenet mechanism. Until I have time to fix the script I probably won't submit my results ...
at least not regularly - I hope there is still some page to manually submit things
Bdot is offline   Reply With Quote
Old 2014-02-12, 13:50   #109
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

976710 Posts
Default

Quote:
Originally Posted by Bdot View Post
It appears submit_spider does not do well with the new primenet mechanism. Until I have time to fix the script I probably won't submit my results ...
at least not regularly - I hope there is still some page to manually submit things
Hmmmm... I'll take a look at this tomorrow afternoon. Have a deliverable for tomorrow morning.

But, yes, the "Manual Submission" page still exists and works.
chalsall is offline   Reply With Quote
Old 2014-02-14, 20:33   #110
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

9,767 Posts
Default

Quote:
Originally Posted by chalsall View Post
Hmmmm... I'll take a look at this tomorrow afternoon. Have a deliverable for tomorrow morning.
Thanks to Bdot (who got to the problem before I did), the Submission Spider for Linux has been updated to handle the POST log-in function of Primenet.

Those who still use this script please upgrade, and automatic submission of results will once again work.
chalsall is offline   Reply With Quote
Reply

Thread Tools


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 10:22.


Mon Aug 2 10:22:28 UTC 2021 up 10 days, 4:51, 0 users, load averages: 1.12, 1.04, 1.10

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.