CPU usage

Message boards : Questions and problems : CPU usage
Message board moderation

To post messages, you must log in.

1 · 2 · Next

AuthorMessage
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31768 - Posted: 26 Mar 2010, 5:32:28 UTC

Anyway to have CPU usage different from all or nothing? I have a quad core CPU and would like it to use all cores when I am not on the computer, but when I am I'd like it to step down to 2 or three cores (depending on what I set it to). Is there anyway to do this other than manually changing it from 100% to 75%?
ID: 31768 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 31770 - Posted: 26 Mar 2010, 5:42:37 UTC - in response to Message 31768.  

No, BOINC can't do that.

All science applications will run at lower than normal priority (almost idle priority), so they'll give way to whatever else you start up.
ID: 31770 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31775 - Posted: 26 Mar 2010, 14:15:26 UTC - in response to Message 31770.  

I have seen significant increases in performance in programs after suspending BOINC, so I don't think it is fully taking a back seat to things like it should.
ID: 31775 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 31780 - Posted: 26 Mar 2010, 16:48:30 UTC - in response to Message 31775.  

If you're talking about games and videos, then there's an option in cc_config to have BOINC check for the names of user supplied programs. When detected, BOINC stops and allows the program(s) to run.
I've forgotten the details, but check here.
ID: 31780 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31788 - Posted: 27 Mar 2010, 2:49:33 UTC - in response to Message 31780.  
Last modified: 27 Mar 2010, 3:24:13 UTC

Thank you for that. I found the option...

<exclusive_app>
BOINC will suspend computing whenever the executable is running (e.g., a game). Multiple applications can be specified.
Warning: Do check your system for other applications with the same name. Since there will be no path used, any application with this name will suspend BOINC, not just the one you want (like a game).
looks like this... <exclusive_app>important.exe</exclusive_app>

but where and how do I put in what .exe I want to trigger it. Right now I have <cc_config>
<options>
<exclusive_app>RelicCOH.exe</exclusive_app>
</options>
</cc_config>

and it isn't doing anything
ID: 31788 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 31791 - Posted: 27 Mar 2010, 8:22:48 UTC - in response to Message 31788.  

Are you sure that's the name of running program, and not just a 'loader' program?

You could try it with something simpler to check that you've got it right.
Perhaps a download game; they should be simple enough to not use fancy startups.

ID: 31791 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 31792 - Posted: 27 Mar 2010, 9:12:02 UTC - in response to Message 31788.  
Last modified: 27 Mar 2010, 9:58:37 UTC

Do make sure you load cc_config.xml, by loading it from Boinc Manager (Advanced view->Advanced->Read config file), or fully exiting and restarting Boinc (Not just BOINC manager, the client must be restarted as well).

Boinc will tell that it loaded the preferences, like so:

27-Mar-10 10:58:16 Config: don't compute while SpybotSD.exe is running
27-Mar-10 10:58:16 Config: don't compute while Revision.exe is running
27-Mar-10 10:58:16 Config: don't use GPUs while FEAR.exe is running
ID: 31792 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31795 - Posted: 27 Mar 2010, 14:52:40 UTC - in response to Message 31792.  

I have done that, and I just rebooted my machine, and still nothing.

I am running win7 x64
Boinc version 6.10.18

<cc_config>
<options>
<exclusive_app>RelicCOH.exe</exclusive_app>
<exclusive_app>DAOrigins.exe</exclusive_app>
</options>
</cc_config>

and RelicCOH.exe is currently running, with no effect (4 climateprediction.net models are running)
ID: 31795 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 31796 - Posted: 27 Mar 2010, 15:09:30 UTC - in response to Message 31795.  

I have done that, and I just rebooted my machine, and still nothing.

What do you mean by 'still nothing?', do you get any messages from Boinc at all?,
the cc_config.xml needs to be in the Boinc Data folder for Boinc to use it.

Claggy
ID: 31796 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31797 - Posted: 27 Mar 2010, 15:16:20 UTC - in response to Message 31796.  

BOINC runs as if the cc_config file isn't there (C:\Program Files\BOINC). I read it in through the advance menu...

3/27/2010 8:14:06 AM Re-reading cc_config.xml
3/27/2010 8:14:06 AM Re-read config file
3/27/2010 8:14:06 AM log flags: file_xfer, sched_ops, task

nothing about the exclusive apps
ID: 31797 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 31799 - Posted: 27 Mar 2010, 16:44:11 UTC - in response to Message 31797.  

BOINC runs as if the cc_config file isn't there (C:\Program Files\BOINC). I read it in through the advance menu...

Of course, as it isn't there! You've put it into the program directory, but it needs to be in the BOINC data directory, as Claggy already mentioned.

The path to the data dirctory is listed in the Messages tab after a restart. The directory itself may be hidden by windows. If you find the file client_state.xml, you've found the data directory.

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)
ID: 31799 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15483
Netherlands
Message 31801 - Posted: 27 Mar 2010, 17:01:24 UTC
Last modified: 27 Mar 2010, 17:01:57 UTC

The default directory where BOINC will install the data files to is:

- Windows 2000/XP: C:\Documents and Settings\All Users\Application Data\BOINC\ (*)
- Windows Vista/Windows 7: C:\ProgramData\BOINC (*)

(*) This directory may well be hidden, so either put the path to it directly into Windows Explorer, or instruct Windows Explorer to show hidden files and folders.
ID: 31801 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31803 - Posted: 27 Mar 2010, 23:26:06 UTC - in response to Message 31801.  

ahhh, usually that whole correct folder thing seems to work best....in this case though I got the same result (or lack there of). My head is starting to hurt with this.
ID: 31803 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 31804 - Posted: 27 Mar 2010, 23:35:56 UTC - in response to Message 31803.  

Check the file extension of the cc_config.xml, make sure it's not cc_config.xml.txt, as Windows by default hides the file extension.

Claggy
ID: 31804 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31805 - Posted: 27 Mar 2010, 23:39:38 UTC - in response to Message 31804.  

it is showing up as a .xml. When I open it, it automatically opens in explorer.
ID: 31805 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 31806 - Posted: 28 Mar 2010, 0:09:09 UTC - in response to Message 31805.  

I think that I read once that opening it in Explorer causes extra, hidden, characters to be added to the file.
Only open it with Notepad.

ID: 31806 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31808 - Posted: 28 Mar 2010, 0:38:49 UTC - in response to Message 31806.  
Last modified: 28 Mar 2010, 0:40:18 UTC

Just made a new one in notepad, loaded it, no glory. and it does add characters, it adds -'s before the first two lines.
ID: 31808 · Report as offensive
Profile Gundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 31813 - Posted: 28 Mar 2010, 8:23:26 UTC - in response to Message 31806.  
Last modified: 28 Mar 2010, 8:25:26 UTC

I think that I read once that opening it in Explorer causes extra, hidden, characters to be added to the file.
Only open it with Notepad.

Explorer adds characters to the display of the file but never changes the content of the file.

However, notepad does add hidden characters when the file is saved with UTF-8 character set. In that case, BOINC shows an error message though, when reading the file.

Gruß,
Gundolf
ID: 31813 · Report as offensive
Travis von Dessonneck

Send message
Joined: 31 Jul 08
Posts: 32
United States
Message 31815 - Posted: 28 Mar 2010, 15:20:51 UTC - in response to Message 31814.  

either way, does anyone have any ideas on why it still isn't woring as intended?
ID: 31815 · Report as offensive
Claggy

Send message
Joined: 23 Apr 07
Posts: 1112
United Kingdom
Message 31817 - Posted: 28 Mar 2010, 16:11:23 UTC - in response to Message 31815.  

either way, does anyone have any ideas on why it still isn't woring as intended?


O.K, make the following cc_config.xml with Notepad, save it as cc_config.xml with ANSI encoding,
afterwards right click on it and select Edit, it should open in Notepad, make sure it does say cc_config.xml in the top left corner,
Copy the file into the same directory as in your Boinc start up messages,
then restart Boinc, and then post your startup messages,
the second line should say 'Config: use all coprocessors', while the third line should have a couple of extra log flags.

Claggy

<cc_config>
<log_flags>
<sched_op_debug>1</sched_op_debug>
<cpu_sched>1</cpu_sched>
<work_fetch_debug>0</work_fetch_debug>
<dcf_debug>0</dcf_debug> 
<debt_debug>0</debt_debug>
<coproc_debug>0</coproc_debug>
<checkpoint_debug>0</checkpoint_debug>
<debt_debug>0</debt_debug>
<rr_simulation>0</rr_simulation>
<guirpc_debug>0</guirpc_debug>
<state_debug>0</state_debug>
<task_debug>0</task_debug>
<http_debug>0</http_debug>
<http_xfer_debug>0</http_xfer_debug>
<task>0</task>
</log_flags> 
<options>
<use_all_gpus>1</use_all_gpus>
<save_stats_days>760</save_stats_days>
<exclusive_app>RelicCOH.exe</exclusive_app>
<exclusive_app>DAOrigins.exe</exclusive_app>
</options>
</cc_config>
ID: 31817 · Report as offensive
1 · 2 · Next

Message boards : Questions and problems : CPU usage

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.