Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Script to Keep Me from Murdering Cows

  1. #1
    Platinum Member
    Maxwell's Avatar
    Join Date
    October 25th, 2010
    Location
    Everett, WA
    Posts
    3,300

    Script to Keep Me from Murdering Cows

    I'm going to defer to the people who know the first thing about programming to see if y'all can answer my question...

    Can I set up a script to kill a Moo WU if it runs longer than 12 minutes?

    With my dual 5970 set up, the Moo WUs comlete in less than 10 minutes if they finish. If I run into an error (which happens once or twice a day, and, frustratingly, almost always right after I go to bed), the WU will run forever without finishing until I kill it.

    Can I set something up to auto-abort a the WU if it runs longer than a set time? This is on Win7x64, 11.5 driver, BOINC 6.10.58.

    I, of course, don't know the first thing about how to do this...

  2. #2
    Gold Member

    Join Date
    June 1st, 2011
    Location
    Terra Incognito
    Posts
    1,012

    Re: Script to Keep Me from Murdering Cows

    I had an issue like this and worked around it by using BoincTasks. You can setup a rule that suspends any task that goes over a time limit. It's not a script and it doesn't 'kill' the task, but it stops it from running and frees up the task. Plus BT is way better than the default Boinc gui and allows you to control all your Boinc clients at once.

  3. #3
    Gold Member
    trigggl's Avatar
    Join Date
    November 6th, 2010
    Location
    Arkansas
    Posts
    2,077

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by Maxwell View Post
    I'm going to defer to the people who know the first thing about programming to see if y'all can answer my question...

    Can I set up a script to kill a Moo WU if it runs longer than 12 minutes?

    With my dual 5970 set up, the Moo WUs comlete in less than 10 minutes if they finish. If I run into an error (which happens once or twice a day, and, frustratingly, almost always right after I go to bed), the WU will run forever without finishing until I kill it.

    Can I set something up to auto-abort a the WU if it runs longer than a set time? This is on Win7x64, 11.5 driver, BOINC 6.10.58.

    I, of course, don't know the first thing about how to do this...
    I have a solution. Don't go to bed.

    I could write a script to do that in Linux, but wouldn't know the commands to do something similar in Windows.

    If you go to a command prompt (DOS) and type
    Code:
    boinccmd.exe --get_tasks
    it will give you a list of all the tasks along with their active state, CPU time, %complete, estimated time to completion and other things. You may have to measure it by CPU time, though. I don't know where the run time is kept, maybe in one of the xml files.
    6r39 7r199



  4. #4
    Gold Member
    Slicker's Avatar
    Join Date
    October 25th, 2010
    Location
    South of Cheeseland
    Posts
    1,253

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by trigggl View Post
    I have a solution. Don't go to bed.

    I could write a script to do that in Linux, but wouldn't know the commands to do something similar in Windows.

    If you go to a command prompt (DOS) and type
    Code:
    boinccmd.exe --get_tasks
    it will give you a list of all the tasks along with their active state, CPU time, %complete, estimated time to completion and other things. You may have to measure it by CPU time, though. I don't know where the run time is kept, maybe in one of the xml files.
    Using CPU time is not advised since the task is a GPU task. When a GPU task hangs, it is usually while running a GPU kernel (e.g. exceeded the timeout which causes the driver to reset). If programmed well (and Moo's appear to be done quite well), it uses no CPU time after that. So, elapsed time continues to rise but CPU time will not.
    Spring 2008 Race: (1st Place)

  5. #5
    Platinum Member
    Maxwell's Avatar
    Join Date
    October 25th, 2010
    Location
    Everett, WA
    Posts
    3,300

    Re: Script to Keep Me from Murdering Cows

    Holy crap. I'm going to kiss spingadus on the mouth...

    I didn't know BOINCtasks had that feature, or i would have been using it before now. That solved the problem exactly. Thank you!

  6. #6
    Past Admin
    Mike029's Avatar
    Join Date
    October 24th, 2010
    Location
    Bronx, New York
    Posts
    3,377

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by Maxwell View Post
    Holy crap. I'm going to kiss spingadus on the mouth...

    I didn't know BOINCtasks had that feature, or i would have been using it before now. That solved the problem exactly. Thank you!
    I did not realize how much I missed your posts. The one about the Explorer browser had me rolling too.



  7. #7
    Gold Member

    Join Date
    June 1st, 2011
    Location
    Terra Incognito
    Posts
    1,012

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by Maxwell View Post
    Holy crap. I'm going to kiss spingadus on the mouth...

    I didn't know BOINCtasks had that feature, or i would have been using it before now. That solved the problem exactly. Thank you!
    As long as there's no tongue... that costs extra!

  8. #8
    Platinum Member
    Maxwell's Avatar
    Join Date
    October 25th, 2010
    Location
    Everett, WA
    Posts
    3,300

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by spingadus View Post
    As long as there's no tongue... that costs extra!
    Done and done. I may even buy you a nice dinner first.

    And yes, Mike, I'm glad I can entertain you.

  9. #9
    Gold Member

    Join Date
    June 1st, 2011
    Location
    Terra Incognito
    Posts
    1,012

    Re: Script to Keep Me from Murdering Cows

    Quote Originally Posted by Maxwell View Post
    Done and done. I may even buy you a nice dinner first.

    And yes, Mike, I'm glad I can entertain you.
    I think I've found a new profession

  10. #10
    Silver Member
    coronicus's Avatar
    Join Date
    December 15th, 2010
    Location
    Tupelo, MS
    Posts
    712

    Re: Script to Keep Me from Murdering Cows

    it's getting hot in herre


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •