| 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 |
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
Hello,
----------------------------------------I just read link and I was wondering if it is possible to change the "use no more than xxx% of processor" via the command line. My fans are making a lot of noise when my cpu's are operating at 100%, so I tune Boinc down. My solution would be to schedule some script so I can set the processor usage to 100% at times I don't work. Most of the times I forget to do this manually.... Thanks in advance! Erik
Former grid.org slave
----------------------------------------![]() ![]() [Edit 1 times, last edit by E. Frijters at Dec 9, 2009 10:20:08 AM] |
||
|
|
Sekerob
Ace Cruncher Joined: Jul 24, 2005 Post Count: 20043 Status: Offline |
The trick is to create different global_prefs_override.xml files and script a copying and boincmd read of that file. By the looks there is no direct % cpu manipulation possible.
----------------------------------------sowwy
WCG
Please help to make the Forums an enjoyable experience for All! |
||
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
Sekerob,
----------------------------------------This link explains everything! Thank you very much! (I'll post my solution here as soon as I tested it...)
Former grid.org slave
----------------------------------------![]() ![]() [Edit 1 times, last edit by E. Frijters at Nov 30, 2009 2:20:41 PM] |
||
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
I built a global_prefs_override.xml with the following content and tested all kinds of parameters, but Boinc didn't reacted like I wanted...
----------------------------------------<global_preferences>I assume (based on all kind of googled sites) that "cpu_usage_limit" is the one that throttles the cpu limit, but I didn't get it to work. After that I tried to change the run_on_batteries, which function is quite clear, but this didn't work eather... (I stored the file in the BOINC-dir (same as boinc.exe and restarted boinc or ran "boinccmd --read_global_prefs_override") So, maybe I'm doing something wrong or my boinc agent wasn't installed properly... PS: I use BOINC 6.6.36, wxWidgets version 2.8.7 I'll test some more, but advice is welcome!
Former grid.org slave
![]() ![]() |
||
|
|
Sekerob
Ace Cruncher Joined: Jul 24, 2005 Post Count: 20043 Status: Offline |
Run on Batteries only works when... there is no 220v. In past that worked for me both on laptop and on the Desktop that's attached to a UPS... that the OS recognizes as now I've got cheepo's that just run much longer than the expensive one with bells and whistles (Trust).
----------------------------------------Did you try reading in the file via the menu? You should see message log entries similar to the below 02/12/2009 08:19:24 World Community Grid Computer location: work 02/12/2009 08:19:24 General prefs: using separate prefs for work 02/12/2009 08:19:24 Reading preferences override file 02/12/2009 08:19:24 Preferences limit memory usage when active to 1534.63MB 02/12/2009 08:19:24 Preferences limit memory usage when idle to 1841.56MB 02/12/2009 08:19:24 Preferences limit disk usage to 10.00GB If I enter a 50% value directly the prefs, the client immediately responds upon save by producing these log entries 02/12/2009 08:25:46 [cpu_sched] Suspending - CPU throttle 02/12/2009 08:25:46 World Community Grid [cpu_sched] Preempting R00455_4957741d917f18eb64f6a4c09f3e3de7_01_5 (left in memory) 02/12/2009 08:25:46 World Community Grid [cpu_sched] Preempting R00455_98b7113e4ca4f1d0894b82f01a60f78e_00_17 (left in memory) 02/12/2009 08:25:46 malariacontrol.net [cpu_sched] Preempting wu_672_511_252746_0_1259380929_2 (left in memory) 02/12/2009 08:25:46 boincsimap [cpu_sched] Preempting 9112801.127301_0 (left in memory) 02/12/2009 08:25:47 [cpu_sched] Resuming - CPU throttle Oh, and Run according Preferences must be set in the Activity Menu. The LIM/LAIM setting is important. Frankly I've not tested if Preempting, leave in memory is automatically activated when running the BOINC throttle. It should, spock logically, else there would be no progress during throttling.
WCG
----------------------------------------Please help to make the Forums an enjoyable experience for All! [Edit 1 times, last edit by Sekerob at Dec 2, 2009 7:29:52 AM] |
||
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
When I tried to alter the "run on batteries" option, I expected to see a change afterwards in the preference screen (option "While computer is on batteries" checked on/off)
----------------------------------------Yes, I tried to read it through the menu and manually (via boinccmd). In both cases I saw the text in the "messages" window which you posted, so I guessed it read my file, but I didn't detected any change... I held the taskmanager on screen hoping to see a change in processor use... Maybe the xml was rejected (syntax error??) Are syntax errors logged somewhere? I looked in the Boinc-directory and found some error logs, but they had a very old timestamp. Note: The xml file only holds the parameter I wanted to change, not the complete list of parameters which are listed here http://boinc.berkeley.edu/wiki/Global_prefs_override.xml (Thank you for your help so far, Rob) [Edit] : "Run according Preferences" is selected since the beginning.
Former grid.org slave
----------------------------------------![]() ![]() [Edit 1 times, last edit by E. Frijters at Dec 2, 2009 7:37:54 AM] |
||
|
|
Sekerob
Ace Cruncher Joined: Jul 24, 2005 Post Count: 20043 Status: Offline |
Well, the editor to use is Notepad as wordpad sometimes drops in invisible characters.
----------------------------------------I did try the command line after editing the file manually and the BOINC message log instantaneously indicated the throttle kick in. My syntax in the DOS window is: "c:\program files\boinc\boinccmd" --read_global_prefs_override launched from a temp throttle.bat in the data_dir. The override file of course located in same data_dir place as global_prefs.xml But, I was born with Diti D'Oro so who knows.
WCG
----------------------------------------Please help to make the Forums an enjoyable experience for All! [Edit 1 times, last edit by Sekerob at Dec 2, 2009 7:59:52 AM] |
||
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
Can you please post your xml file?
----------------------------------------I'm curious about your content (especially the notation of the cpu percentage value... in many googled sites it's noted differently (but personally I don't expect that to be the problem)) I don't know what Diti D'Oro are, but please keep them to yourself... Managing the widespread flu is hard enough as it is... ;o)
Former grid.org slave
![]() ![]() |
||
|
|
Sekerob
Ace Cruncher Joined: Jul 24, 2005 Post Count: 20043 Status: Offline |
We don't have the Flu, we have the Palmtree pest at the moment, nationwide. Thousands and thousands of Palmtrees all over Italy are dying. The one of two in our garden, the pride and joy in shade provision on the south west side of the house died within 4 weeks.
----------------------------------------Here the file in full, as is: <global_preferences> Syntax errors in the cc_config.xml are printed in the message log. Never tried before, but put some wrong code in and nothing logs. Was reading that the developers were adding more lines to show in the message log for the global_prefs. With the GUI interface I guess there's they saw no reason to log errors. edit: Rather duh, but why not delete your file and use the GUI interface to enter the needed field values? Then it's for sure correctly konzipiert.
WCG
----------------------------------------Please help to make the Forums an enjoyable experience for All! [Edit 1 times, last edit by Sekerob at Dec 2, 2009 10:34:54 AM] |
||
|
|
E. Frijters
Senior Cruncher The Netherlands Joined: Apr 26, 2007 Post Count: 228 Status: Offline Project Badges:
|
Ah... you use the complete list of variables... interesting... I only entered the variable which needed to change...
----------------------------------------As soon as I can I'll try to test this... Change the parameter via the GUI... Yes, I know... but I want to automate this: lower cpu usage during the day and 100% (and therefore loud fans) during the night... automatic scheduling, so I don't forget... Palmtree pest sounds bad. A place in the shade is always welcome in sunny Italy! (ps: It rains cats and dogs 360 days a year in the Netherlands... (just to make you feel better...)) Thanks sofar!
Former grid.org slave
----------------------------------------![]() ![]() [Edit 2 times, last edit by E. Frijters at Dec 2, 2009 11:47:55 AM] |
||
|
|
|