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   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 1897 times and has 16 replies Next Thread
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, you enter initially the desired parms via the GUI, then rename the file to global_throttle_on.xml. You amend the parms again via the GUI and copy the file to a second set you call global_throttle_off.xml. The task scheduler is used to copy these files at the right time or via a shortcut over the global_prefs_override.xml and the boinccmd to read the values in.

Not satisfactory to code-beautifiers, but functional.
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
[Dec 2, 2009 11:59:08 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?

Sounds like a plan! smile

Thanks Rob!
----------------------------------------
Former grid.org slave


[Dec 2, 2009 1:34:03 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?

Problem resolved.

It works just like you described, Rob!
----------------------------------------
Former grid.org slave


[Dec 9, 2009 9:05:23 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 
[RESOLVED] Change "use no more than xxx% of processor" via command line?

Great, please then edit opening post title and insert [RESOLVED].

Happy crunching.
----------------------------------------
WCG Global & Research > Make Proposal Help: Start Here!
Please help to make the Forums an enjoyable experience for All!
[Dec 9, 2009 9:20:52 AM]   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 
confused Re: [RESOLVED] Change "use no more than xxx% of processor" via command line?

Hi, I would like to create desktop shortcuts (.bat,etc.) for high and low CPU load. But I do not know how. I undestand that I should replace global_prefs_override.xml but how?
[Jul 27, 2010 7:24:35 AM]   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: [RESOLVED] Change "use no more than xxx% of processor" via command line?

Hello alienhan1,
BOINC is not designed to be controlled by batch files. You can set general preferences on the web site in My Grid, or you can set preferences for a single computer that is stored in a file on that computer's disk drive by using Advanced - Preferences in BOINC Manager. You could create copies of that local BOINC preferences file and switch them in and out, but you would still have to bring up BOINC Manager and tell it to read in the preferences file. You are trying to do something that BOINC is not designed for so anything you program will be an ugly kludge, unless you do some really serious programming using the remote procedure messaging protocol that BOINC does implement.

Sorry, sad
Lawrence
[Jul 27, 2010 9:10:39 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Ingleside
Veteran Cruncher
Norway
Joined: Nov 19, 2005
Post Count: 974
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: [RESOLVED] Change "use no more than xxx% of processor" via command line?

Hello alienhan1,
BOINC is not designed to be controlled by batch files. You can set general preferences on the web site in My Grid, or you can set preferences for a single computer that is stored in a file on that computer's disk drive by using Advanced - Preferences in BOINC Manager. You could create copies of that local BOINC preferences file and switch them in and out, but you would still have to bring up BOINC Manager and tell it to read in the preferences file.

Use BOINC Manager... confused

To read-in the global_prefs_override.xml, you can use boinccmd, as is already mentioned multiple times already in this thread...


alienhan1,
if you read the thread, the procedure of how to do this is mentioned, but granted across multiple posts, and also doesn't include an explisit batch-file. Just to collect all info in one post, do:
1: In BOINC Manager, set the various "HIGH"-preferences you'll want to use in the GUI.
2: Copy global_prefs_override.xml and call the copy global_prefs_override_HIGH.xml (put it in the BOINC data-directory)
3: In BOINC Manager, set the various "LOW"-preferences you'll want to use in the GUI.
4: Copy global_prefs_override.xml and call the copy global_prefs_override_LOW.xml

After creating the HIGH and LOW override-preferences, you'll need 2 batch-files. If assumes default Vista or win7-directory, this would be:
HIGH.cmd
copy "c:\programdata\boinc\global_prefs_override_HIGH.xml" "c:\programdata\boinc\global_prefs_override.xml"
"c:\program files\boinc\boinccmd" --read_global_prefs_override

Similarly, you'll have LOW.cmd
copy "c:\programdata\boinc\global_prefs_override_LOW.xml" "c:\programdata\boinc\global_prefs_override.xml"
"c:\program files\boinc\boinccmd" --read_global_prefs_override

Place some shortcuts to HIGH.cmd and LOW.cmd therever you wants, and you can easily switch. Can also schedule switching...

BTW, also remember, you'll need to set "Run based on preferences" for this to work. wink

If you're not using default location of BOINC data-directory, change all occorrences of c:\programdata\boinc\ as neccessary, and similarly if you're not using default BOINC-program-directory, change c:\program files\boinc\ as neccessary...
----------------------------------------


"I make so many mistakes. But then just think of all the mistakes I don't make, although I might."
----------------------------------------
[Edit 2 times, last edit by Ingleside at Jul 27, 2010 10:42:03 PM]
[Jul 27, 2010 10:37:06 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 17   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread