mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > PrimeNet > MISFIT

Closed Thread
 
Thread Tools
Old 2013-01-07, 03:50   #155
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

23×419 Posts
Default

Quote:
Originally Posted by swl551 View Post
auto fetch from GIMPS
[thinking] It may be the time for me to start testing this toy... [/thinking]

Can I fetch a TF assignment from GIMPS, modify the bitlevels in the worktodo file (to make mfaktc to TF few bits higher, this is what the interface snip shows in your picture), do all the work, and report the result only once, at the end? (I mean, for each exponent, don't report the intermediary work until the 73rd bit is done, otherwise I lose the assignment after primenet's bitlevel is done). Or stop auto reporting and do the report manually, at the end, I won't mind to write a batch to do that. If we can do this, then the gpu72 won't be necessary anymore. Otherwise, I may wait until your program can cope with chalsall's toys. I mean auto fetch from gpu72.

Last fiddled with by LaurV on 2013-01-07 at 03:58
LaurV is offline  
Old 2013-01-07, 04:10   #156
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by LaurV View Post
[thinking] It may be the time for me to start testing this toy... [/thinking]

Can I fetch a TF assignment from GIMPS, modify the bitlevels in the worktodo file (to make mfaktc to TF few bits higher, this is what the interface snip shows in your picture), do all the work, and report the result only once, at the end? (I mean, for each exponent, don't report the intermediary work until the 73rd bit is done, otherwise I lose the assignment after primenet's bitlevel is done). Or stop auto reporting and do the report manually, at the end, I won't mind to write a batch to do that. If we can do this, then the gpu72 won't be necessary anymore. Otherwise, I may wait until your program can cope with chalsall's toys. I mean auto fetch from gpu72.
It can do all the things you described and more. It has been able to manually fetch work from GIMPS for a while now with the click of a button. Fully automated fetching is in the works and almost done.

A note on the reporting of completed assignments. If you have Stages=1 in your mfaktX.ini MISFIT may report intermediate results depending on the timing of the results upload. You can turn off auto-results uploading and do it manually if you prefer. Also I could code to not report intermediate results, but it requires some overhead in determining what to export. Not a big deal except that it increase chance of IO collision with results, workToDo and mfaktC. MISFIT and MFAKTO both implemented the .LCK file-locking system to prevent IO collisions, MFAKTC has not. When MFAKTC does implement file-locking the risk of collision will be gone.

Reporting of intermediate results has never caused me a problem since the next upload will complete the range and the chance of someone getting the same exponent from GIMPS is very low in the few hours between uploads. If that not tolerable or ideal consider it a limitations for now. FLASHJH may have additional insight on this and he is the heavy hitter in the MISFIT community.

See additional screenshot covering results uploading and stalled process detection.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	70
Size:	39.5 KB
ID:	9102  

Last fiddled with by swl551 on 2013-01-07 at 04:47
swl551 is offline  
Old 2013-01-07, 16:04   #157
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

112310 Posts
Default

Quote:
Originally Posted by swl551 View Post
If the process does not start, meaning it cannot execute the external program, MISFIT will throw an exception and the Alert Panel will be displayed.
Ok. I was clicking update stat and it didn't run, but I never tried setting update to 5 min. I posted at 1852(L) and at 1946(L) it ran fine, I just didn't get to see it. As long as it's running, I'm happy. Actually, it tried to run a few more times but had nothing to do, so it returned 1 and MISFIT reported that it returned 255. Is 255 expected for a 1 (or do you just report 255 for any non-zero return)?

Seems to be perfect, thanks again.
flashjh is offline  
Old 2013-01-07, 16:06   #158
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

11001010002 Posts
Default

Quote:
Originally Posted by flashjh View Post
Ok. I was clicking update stat and it didn't run, but I never tried setting update to 5 min. I posted at 1852(L) and at 1946(L) it ran fine, I just didn't get to see it. As long as it's running, I'm happy. Actually, it tried to run a few more times but had nothing to do, so it returned 1 and MISFIT reported that it returned 255. Is 255 expected for a 1 (or do you just report 255 for any non-zero return)?

Seems to be perfect, thanks again.
I return what the OS returns to me as the exit code. I do not override it with my own value.
Code:
if (P.ExitCode != 0)
                                PopSafeErrorForm(P.StartInfo.FileName + " returned error " + P.ExitCode.ToString());
swl551 is offline  
Old 2013-01-07, 16:18   #159
flashjh
 
flashjh's Avatar
 
"Jerry"
Nov 2011
Vancouver, WA

1,123 Posts
Default

Cool. No big deal as long as we're not trying to use the exit code, but I'll look at the exit codes later.
flashjh is offline  
Old 2013-01-07, 20:48   #160
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default Auto Fetching work from GIMPS is ready (closed beta)

2.3.0 beta 3 with Full Work Fetch is ready for closed beta. Please contact me directly for a copy.
Attached Thumbnails
Click image for larger version

Name:	AutoFetchGIMPS.PNG
Views:	90
Size:	34.1 KB
ID:	9106  
swl551 is offline  
Old 2013-01-07, 22:18   #161
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by LaurV View Post
If we can do this, then the gpu72 won't be necessary anymore.
Well, the point of GPU272 was to distribute lower-than-accessible-from-PrimeNet expos for TF by quick workers. Auto-assignment was never the goal. I'd thus argue that even with autofetch-from-GIMPS, it would still be a good thing to mix in some GPU272 exponents in there.

Of course, is MISFIT could auto fetch from GPU272, that would be supremely awesome...
Dubslow is offline  
Old 2013-01-07, 23:39   #162
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

87816 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Of course, is MISFIT could auto fetch from GPU272, that would be supremely awesome...
++1
kracker is offline  
Old 2013-01-08, 00:04   #163
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23×101 Posts
Default

Quote:
Originally Posted by Dubslow View Post
....
Of course, is MISFIT could auto fetch from GPU272, that would be supremely awesome...
In red circle of the screenshot is where you put your GPU72 fetch utility and as long as it appends data to MISFITworkToDo.txt it will be fully integrated.

Beyond that there is nothing more I can do.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	77
Size:	78.9 KB
ID:	9107  
swl551 is offline  
Old 2013-01-08, 00:08   #164
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

722110 Posts
Default

Well... as a suggestion for chalsall, if you merely implemented the same API as PrimeNet (perhaps with a few less restrictions w.r.t. things like HWID, GUID, etc.), then it should be almost trivial for swl551 to implement GPU272 autofetch (perhaps almost as simple as `sed -e s/http:\/\/v5.mersenne.org\//http:\/\/gpu72.com\//g` ). And it should be fairly easy (relatively) for you to implement such an interface, since you've already done the interface part (not the backend) for the Prime95 proxy.
Dubslow is offline  
Old 2013-01-08, 00:14   #165
swl551
 
swl551's Avatar
 
Aug 2012
New Hampshire

23·101 Posts
Default

Quote:
Originally Posted by Dubslow View Post
Well... as a suggestion for chalsall, if you merely implemented the same API as PrimeNet (perhaps with a few less restrictions w.r.t. things like HWID, GUID, etc.), then it should be almost trivial for swl551 to implement GPU272 autofetch (perhaps almost as simple as `sed -e s/http:\/\/v5.mersenne.org\//http:\/\/gpu72.com\//g` ). And it should be fairly easy (relatively) for you to implement such an interface, since you've already done the interface part (not the backend) for the Prime95 proxy.
Currently I execute HTTP gets to mersenne.org and parse out the response strings. I'd do the same for GPU72. Really they should have web services for this stuff.

Can you point me to documentation on
Quote:
sed -e s/http:\/\/v5.mersenne.org\//http:\/\/gpu72.com\//g
as I have no idea what it is.

Last fiddled with by swl551 on 2013-01-08 at 00:45
swl551 is offline  
Closed Thread



Similar Threads
Thread Thread Starter Forum Replies Last Post
questions about misfit jschwar313 MISFIT 1 2016-02-02 00:32
Help with Misfit TheMawn MISFIT 18 2015-06-21 22:00
Misfit feature request. Aramis Wyler MISFIT 15 2015-03-04 21:13
MISFIT 2.9 swl551 MISFIT 44 2014-12-15 12:46
MISFIT for MFAKTx swl551 MISFIT 186 2014-02-05 23:27

All times are UTC. The time now is 08:28.


Tue Jul 27 08:28:02 UTC 2021 up 4 days, 2:57, 0 users, load averages: 1.96, 1.80, 1.77

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.