For linux, is there an easy way to run variable number of BOINC tasks depending on whether idle?

Message boards : Questions and problems : For linux, is there an easy way to run variable number of BOINC tasks depending on whether idle?
Message board moderation

To post messages, you must log in.

AuthorMessage
Bert

Send message
Joined: 24 Aug 15
Posts: 16
United States
Message 63858 - Posted: 26 Aug 2015, 22:15:27 UTC

that is, is there an automatic way to do this?

For example, I'd like to run 2 tasks while the system is in use, and 4 tasks if the system has been idle for a while. (BOINC manager 7.4.23 only has a compute-while-in use option, so it's either totally on or totally off.)

TIA for any pointers
ID: 63858 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 63860 - Posted: 26 Aug 2015, 23:48:58 UTC - in response to Message 63858.  
Last modified: 26 Aug 2015, 23:50:14 UTC

Similar question came up a week or so ago on the WCG forums, and then again, the original querying making his own script after hints on batch+boinccmd to change number of jobs running while he was gaming.
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 63860 · Report as offensive
Bert

Send message
Joined: 24 Aug 15
Posts: 16
United States
Message 63862 - Posted: 27 Aug 2015, 5:30:44 UTC - in response to Message 63860.  

thanks; I poked around here, http://www.techpowerup.com/forums/forums/world-community-grid-wcg.68/ but couldn't find the thread yet.

The man page for boinccmnd does show that it could be possible. It'd take me ages though as I'm a novice programmer, especially when it comes to command scripts which I hardly ever do and don't quite grok.
ID: 63862 · Report as offensive
Juha
Volunteer developer
Volunteer tester
Help desk expert

Send message
Joined: 20 Nov 12
Posts: 801
Finland
Message 63912 - Posted: 29 Aug 2015, 18:56:23 UTC - in response to Message 63862.  

If you run Gnome, Cinnamon, MATE, Unity or some other desktop environment that uses Gnome Session Manager, you can use the scriptlet in this post as a starting point.

Set up two global_prefs_override.xml files, one for idle and another for in-use. When state changes copy corresponding xml file to global_prefs_override.xml and tell BOINC to re-read config files.
ID: 63912 · Report as offensive

Message boards : Questions and problems : For linux, is there an easy way to run variable number of BOINC tasks depending on whether idle?

Copyright © 2024 University of California.
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.