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 1895 times and has 16 replies Next Thread
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
[Resolved] Change "use no more than xxx% of processor" via command line?

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]
[Nov 30, 2009 1:45:11 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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 Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
[Nov 30, 2009 1:52:57 PM]   Link   Report threatening or abusive post: please login first  Go to top 
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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]
[Nov 30, 2009 2:19:36 PM]   Link   Report threatening or abusive post: please login first  Go to top 
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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>
<run_on_batteries>1</run_on_batteries>
<cpu_usage_limit>60</cpu_usage_limit>
</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


[Dec 2, 2009 6:50:48 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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 Global & Research > Make Proposal Help: Start Here!
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]
[Dec 2, 2009 7:23:52 AM]   Link   Report threatening or abusive post: please login first  Go to top 
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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]
[Dec 2, 2009 7:35:42 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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 Global & Research > Make Proposal Help: Start Here!
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]
[Dec 2, 2009 7:57:30 AM]   Link   Report threatening or abusive post: please login first  Go to top 
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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


[Dec 2, 2009 10:14:06 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Sekerob
Ace Cruncher
Joined: Jul 24, 2005
Post Count: 20043
Status: Offline
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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>
<run_on_batteries>1</run_on_batteries>
<run_if_user_active>1</run_if_user_active>
<run_gpu_if_user_active>0</run_gpu_if_user_active>
<idle_time_to_run>0.000000</idle_time_to_run>
<start_hour>0.000000</start_hour>
<end_hour>0.000000</end_hour>
<net_start_hour>12.750000</net_start_hour>
<net_end_hour>13.000000</net_end_hour>
<leave_apps_in_memory>1</leave_apps_in_memory>
<confirm_before_connecting>1</confirm_before_connecting>
<hangup_if_dialed>1</hangup_if_dialed>
<dont_verify_images>0</dont_verify_images>
<work_buf_min_days>0.010000</work_buf_min_days>
<work_buf_additional_days>1.500000</work_buf_additional_days>
<max_ncpus_pct>100.000000</max_ncpus_pct>
<cpu_scheduling_period_minutes>120.000000</cpu_scheduling_period_minutes>
<disk_interval>300.000000</disk_interval>
<disk_max_used_gb>10.000000</disk_max_used_gb>
<disk_max_used_pct>50.000000</disk_max_used_pct>
<disk_min_free_gb>0.100000</disk_min_free_gb>
<vm_max_used_pct>75.000000</vm_max_used_pct>
<ram_max_used_busy_pct>50.000000</ram_max_used_busy_pct>
<ram_max_used_idle_pct>90.000000</ram_max_used_idle_pct>
<max_bytes_sec_up>0.000000</max_bytes_sec_up>
<max_bytes_sec_down>0.000000</max_bytes_sec_down>
<cpu_usage_limit>100.000000</cpu_usage_limit>
</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 Global & Research > Make Proposal Help: Start Here!
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]
[Dec 2, 2009 10:31:49 AM]   Link   Report threatening or abusive post: please login first  Go to top 
E. Frijters
Senior Cruncher
The Netherlands
Joined: Apr 26, 2007
Post Count: 228
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: Change "use no more than xxx% of processor" via command line?

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]
[Dec 2, 2009 11:47:02 AM]   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