Futher restrictions on when BOINC runs tasks...

Message boards : Number crunching : Futher restrictions on when BOINC runs tasks...
Message board moderation

To post messages, you must log in.

AuthorMessage
Damon

Send message
Joined: 3 Jun 99
Posts: 5
Credit: 25,326
RAC: 0
United Kingdom
Message 1719167 - Posted: 27 Aug 2015, 17:48:55 UTC

Hi,

I have been failing to find with various searches how to do the following: if anyone can point me at the right page I'd be grateful.

I'd like to disable/enable running tasks under additional criteria on my MacBook (MBA, Yosemite), eg from the command-line, eg even when on mains not to run unless the battery has fully charged, but possibly other things also.

Rgds

Damon
ID: 1719167 · Report as offensive
Profile HAL9000
Volunteer tester
Avatar

Send message
Joined: 11 Sep 99
Posts: 6534
Credit: 196,805,888
RAC: 57
United States
Message 1719176 - Posted: 27 Aug 2015, 18:12:43 UTC
Last modified: 27 Aug 2015, 18:13:00 UTC

The BOINC command too will allow you to control BOINC from a commandline, or via scripts. If there is no OS event that would signify when the battery is fully charged. Perhaps a script to monitor the battery level could be used. Then it could run the correct command to suspend or resume BOINC.
SETI@home classic workunits: 93,865 CPU time: 863,447 hours
Join the [url=http://tinyurl.com/8y46zvu]BP6/VP6 User Group[
ID: 1719176 · Report as offensive
Damon

Send message
Joined: 3 Jun 99
Posts: 5
Credit: 25,326
RAC: 0
United Kingdom
Message 1719532 - Posted: 28 Aug 2015, 10:06:21 UTC - in response to Message 1719176.  
Last modified: 28 Aug 2015, 10:07:50 UTC

Hi,

That's what I was hoping, thanks.

With your push I have found the data at:

/Library/Application Support/BOINC Data

and the code at:

/Applications/BOINCManager.app/Contents/Resources/boinc

(I can't see a boinccmd there, BTW)

though at the moment I'm just getting a:

Another instance of BOINC is running.

so maybe I would have to live with either/or for command-line and GUI.

Thanks

Damon
ID: 1719532 · Report as offensive
Profile HAL9000
Volunteer tester
Avatar

Send message
Joined: 11 Sep 99
Posts: 6534
Credit: 196,805,888
RAC: 57
United States
Message 1719587 - Posted: 28 Aug 2015, 13:17:52 UTC
Last modified: 28 Aug 2015, 13:28:27 UTC

For some reason they don't distribute boinccmd with the GUI version of BOINC for the Mac. So you can download the (Unix command-line version) for your version of BOINC, extract boinccmd, & then place it in the /Library/Application Support/BOINC Data/ folder.
Depending on your system you may also need to fix the file permissions. Permissions can be fixed by running the BOINC installer again or with the use of Mac_SA_Secure.sh located in the BOINC command-line download package.
SETI@home classic workunits: 93,865 CPU time: 863,447 hours
Join the [url=http://tinyurl.com/8y46zvu]BP6/VP6 User Group[
ID: 1719587 · Report as offensive
Damon

Send message
Joined: 3 Jun 99
Posts: 5
Credit: 25,326
RAC: 0
United Kingdom
Message 1719955 - Posted: 29 Aug 2015, 11:57:01 UTC - in response to Message 1719587.  
Last modified: 29 Aug 2015, 12:44:50 UTC

Thanks!

I think that:

./boinccmd --set_run_mode

is what I want, switching between 'auto' to use the built-in preferences, and 'never' if I want to externally suspend all processing, eg because batteries are not completely full.

Damon
ID: 1719955 · Report as offensive
Profile ivan
Volunteer tester
Avatar

Send message
Joined: 5 Mar 01
Posts: 783
Credit: 348,560,338
RAC: 223
United Kingdom
Message 1720035 - Posted: 29 Aug 2015, 16:51:56 UTC - in response to Message 1719955.  

If it's like the Linux version (highly likely :-), just ./boinccmd on its own will give all the options. I've got lots of scripts to do all sorts of things (e.g. when communications were flaky I had a cron job run two or three times an hour to check for finished jobs to upload them) but some of them rely on other awk or python scripts as well. I also need to use the command line on systems where BOINC won't compile the GUI (boincmgr) due to missing or mismatched libraries.
ID: 1720035 · Report as offensive

Message boards : Number crunching : Futher restrictions on when BOINC runs tasks...


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.