Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 17
Posts: 17   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2242 times and has 16 replies Next Thread
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
% CPU Time per daytime

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%.
[Dec 4, 2013 2:20:21 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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.
[Dec 4, 2013 2:23:26 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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]
[Dec 4, 2013 2:39:03 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

With the said boinccmd tool. The manual: http://boinc.berkeley.edu/wiki/Boinccmd ... the simple

sudo boinccmd --read_global_prefs_override
[Dec 4, 2013 2:43:37 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Thargor
Veteran Cruncher
UK
Joined: Feb 3, 2012
Post Count: 1291
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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! smile
----------------------------------------

----------------------------------------
[Edit 1 times, last edit by Thargor at Dec 4, 2013 2:46:32 PM]
[Dec 4, 2013 2:45:05 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

Thanks for your help
[Dec 4, 2013 2:48:50 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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.
[Dec 4, 2013 2:59:17 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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.
[Dec 4, 2013 3:18:55 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

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
[Dec 4, 2013 3:46:52 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: % CPU Time per daytime

Did not know that, thanks for explaining.

And for the 95%, personal superstition ;)
[Dec 4, 2013 9:16:42 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 17   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread