Message boards : BOINC Manager : Runtime options
Message board moderation
Previous · 1 · 2
Author | Message |
---|---|
Send message Joined: 26 Aug 05 Posts: 164 |
Ok, my first problem was caused by the path being wrong - fixed that and changed the SET MAXCPUUSAGE=80.0 - still does not work. The file changes but not the % CPU D:\SETICPU.bat 80.0 ----- Rom BOINC Development Team, U.C. Berkeley My Blog |
Send message Joined: 8 Mar 10 Posts: 17 |
Sorry to keep bothering you - my next problem is the batch is not finding boinccmd.exe in C:\Program Files\Boinc - does not recognize C:\Program Files If I put boinccmd.exe in the root directory the batch file works. Using Windows 7 64 bit |
Send message Joined: 26 Aug 05 Posts: 164 |
Then change: SET PATH=%PATH%;%ProgramFiles%\BOINC To: SET PATH=%PATH%;"%ProgramFiles%\BOINC" ----- Rom BOINC Development Team, U.C. Berkeley My Blog |
Send message Joined: 25 Nov 05 Posts: 1654 |
It's the space in the path name, and is due to a Windows 'feature' which is mentioned in Microsoft's own documentation (CreateProcess Function). Basically, the program name needs to be a quoted string. From the Windows Developer Center: CreateProcess Function edit As per Rom's latest post. :) |
Send message Joined: 8 Mar 10 Posts: 17 |
This is what I currently am running as the batch file -------------------------------------------------------- @echo off rem rem Change the maximum amount of CPU BOINC is allowed to use. rem SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION rem Add BOINC's executables to the path for this script SET PATH=%PATH%;"%ProgramFiles%\BOINC" rem Determine the global prefs override file name and location SET GLOBALPREFS=%ProgramData%\BOINC\global_prefs_override.xml rem What Max CPU should BOINC be allowed to use? SET MAXCPUUSAGE=%1 rem Modify the override file echo ^<global_preferences^ > %GLOBALPREFS% echo ^<cpu_usage_limit^>%MAXCPUUSAGE%^</cpu_usage_limit^> >> %GLOBALPREFS% echo ^</global_preferences^> >> %GLOBALPREFS% boinccmd --read_global_prefs_override -------------------------------------------------------- with the following command line C:\Program Files\BOINC>SETICPU.bat 15.0 Everytime I run it the % CPU Time changes to 95% The global_prefs_override.xml changes to: <global_preferences <cpu_usage_limit>15.0</cpu_usage_limit> </global_preferences> Apparently boinccmd is not sending the proper xml and setting 95% as the default value. |
Send message Joined: 20 Dec 07 Posts: 1069 |
echo ^<global_preferences^ > %GLOBALPREFS% Here is an additional blank between '^' and '>', which results in a missing angle bracket ('>') here: <global_preferences Gruß, Gundolf Computer sind nicht alles im Leben. (Kleiner Scherz) |
Send message Joined: 8 Mar 10 Posts: 17 |
In order to get it to work I took out the space and had to add additional ">" Without the additional ">" the first line was missing in the resulting xml file and being added to the existing xml file as follows: ... Existing xml ... <cpu_usage_limit>5.0</cpu_usage_limit> </global_preferences> With the additional ">" the proper xml is writen: <global_preferences> <cpu_usage_limit>5.0</cpu_usage_limit> </global_preferences> and the batch file now works properly - this is the working batch file: @echo off rem rem Change the maximum amount of CPU BOINC is allowed to use. rem SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION rem Add BOINC's executables to the path for this script SET PATH=%PATH%;"%ProgramFiles%\BOINC" rem Determine the global prefs override file name and location SET GLOBALPREFS=%ProgramData%\BOINC\global_prefs_override.xml rem What Max CPU should BOINC be allowed to use? SET MAXCPUUSAGE=%1 rem Modify the override file echo ^<global_preferences^>> %GLOBALPREFS% echo ^<cpu_usage_limit^>%MAXCPUUSAGE%^</cpu_usage_limit^> >> %GLOBALPREFS% echo ^</global_preferences^> >> %GLOBALPREFS% boinccmd --read_global_prefs_override Thank you to everyone for all your help. |
Send message Joined: 8 Mar 10 Posts: 17 |
I still feel Boinc Manager should be enhanced to allow time scheduled settings: Boinc Manager should have the ability to make changes based on a scheduled times (Similar to the Day of the Week Override): Similar to this: Not only for % CPU time, but for all variables. |
Send message Joined: 8 Mar 10 Posts: 17 |
BTW The working batch file must be in the C:\Program Files\Boinc directory. The working batch file is for Windows 7 (and probably Vista) I schedule the throttle up and throttle down at specified times thru the Windows Task Scheduler. |
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.