| Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
| World Community Grid Forums
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 17
|
|
| Author |
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Hello
Is there any way to config the client that, for example, during daytime 9:00-17:00 it uses 40% cpu, and during the night 100%. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
If you see it, I would too. No. You can maybe script it and set an OS scheduler/cron job to process various global_prefs_override.xml files with boinccmd. you'll have to develop that yourself.
|
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Thats a good idea, thank you.
----------------------------------------If i set a cronjob to copy over a global_prefs_override.xml in the morning and another with higher cpu use in the evening, how would i tell boinc to reread config file and obey to new config? [Edit 1 times, last edit by Former Member at Dec 4, 2013 2:43:31 PM] |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
With the said boinccmd tool. The manual: http://boinc.berkeley.edu/wiki/Boinccmd ... the simple
sudo boinccmd --read_global_prefs_override |
||
|
|
Thargor
Veteran Cruncher UK Joined: Feb 3, 2012 Post Count: 1291 Status: Offline Project Badges:
|
If you have BOINC set to keep tasks in memory, would a cron-job to force a client restart force it to re-read the newly-changed config-file and put into effect the changes made, without losing any WU-progress?
----------------------------------------Not something I've tested myself, I'm afraid... [EDIT]: it seems SekeRob beat me to answering, and with a more useful answer! ![]() ![]() [Edit 1 times, last edit by Thargor at Dec 4, 2013 2:46:32 PM] |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Thanks for your help
|
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Tit for tat, do not hesitate to post your script, steps and cron lines. The next who wants this will benefit. If it looks slick, I'll even create an FAQ entry with link to your contribution.
Good Luck. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Ok nothing slick, but does the job (i hope)
I made 2 files boinc50.sh and boinc95.sh boinc50.sh: #!/bin/sh cp /etc/boinc-client/global_prefs_override50.xml /etc/boinc-client/global_prefs_override.xml /usr/bin/boinccmd --read_global_prefs_override boinc95.sh: #!/bin/sh cp /etc/boinc-client/global_prefs_override95.xml /etc/boinc-client/global_prefs_override.xml /usr/bin/boinccmd --read_global_prefs_override global_prefs_override[50,95].xml contain the desired cpu settings, no time settings Then i added 3 cron lines: 0 8 * * 1,2,3,4,5 /etc/boinc-client/boinc50.sh 0 18 * * 1,2,3,4 /etc/boinc-client/boinc95.sh 0 14 * * 5 /etc/boinc-client/boinc95.sh those should set boinc to use only 50% cpu between 08:00 and 18:00 through monday and thursday and between 08:00 and 14:00 on fridays and 95% for the rest (night, weekend, friday afternoon) so your work pc wont bother you with loud fan noises but still uses its full power when you are at home. |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Reads like mighty fine. The various override files generated with ease through the BM interface and a little copy/renaming to make the .50 .95 versions,
Notably, 95% will effectively run as 90%, rounded to whole seconds [and as of 7.2.29 rounded to the nearest 1/10th of a second]. Practically, 95% means running 9 seconds, pause 1 second or in the new, run 0.9 seconds, pause 0.1. Why you want to 'reserve' 5% when away, I do not know. BOINC is designed to yield the floor when any higher priority process wants attention [almost anything]. Could as well run Max when the fans are howling. cheers |
||
|
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Did not know that, thanks for explaining.
And for the 95%, personal superstition ;) |
||
|
|
|