Feature request: free core(s) for special application/calculations

Message boards : BOINC client : Feature request: free core(s) for special application/calculations
Message board moderation

To post messages, you must log in.

AuthorMessage
Ulrich Metzner

Send message
Joined: 5 Mar 16
Posts: 11
Germany
Message 68147 - Posted: 5 Mar 2016, 17:44:44 UTC

Hi together,

in the Seti forum i asked for the possibility to free a core when a special app is running (http://setiathome.berkeley.edu/forum_thread.php?id=78996). A nice member gave me a tip to add such a functionality with already available commands, but now i want to request a more general feature added to the BOINC client via boinccmd, which provides a lot more functionality and is more comfortably to use.

Something like:

boinccmd.exe --free_cores N
Frees N cores, i. e. telling BOINC to use (MAXavailable-N) cores only.

boinccmd.exe --use_all_cores
Revert the previous command or simply tell BOINC to use all available cores.
Synonym: boinccmd.exe --free_cores 0 (0=zero)

What do you developers think about this?

Best regards, Uli
ID: 68147 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 68148 - Posted: 5 Mar 2016, 18:26:55 UTC - in response to Message 68147.  

Countless volunteers have requested one or the other feature that reduces the number of cores/gpgpu's used for computing, either when the system is in use or when a specific user app is loaded. No development takers.

Whilst, boinccmd has many functions which combined with scripting and maybe scheduling / cron job settings can achieve the object. Keep multiple copies of the global_prefs_override.xml with different configurations, possibly combined with different cc_config.xmls and let boinccmd read in the different configurations... scheduled or with shortcuts on the desktop... the sky is the limit in self-creativity.
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 68148 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15477
Netherlands
Message 68149 - Posted: 5 Mar 2016, 18:39:01 UTC

There's also the <ncpus> option still in cc_config.xml which can do this. Although it says it's used for testing more CPU cores than the system has, you can also set it to use less cores than the system has.

So, using this on a quad core CPU will let it use two cores:
<cc_config>
<log_flags>
</log_flags>
<options>
<ncpus>2</ncpus>
</options>
</cc_config>

To disable &lt;ncpus> use the value -1.

<cc_config>
<log_flags>
</log_flags>
<options>
<ncpus>-1</ncpus>
</options>
</cc_config>

Using boinccmd --read_cc_config you can quickly switch between these options.
ID: 68149 · Report as offensive
Ulrich Metzner

Send message
Joined: 5 Mar 16
Posts: 11
Germany
Message 68168 - Posted: 7 Mar 2016, 13:24:30 UTC

Sure, that workaround functions well, but if you change the cc_config.xml, you'll also have to change all other instances, used for "simulating" the requested behavior, which is - at least to say - error prone.

Also for using all cores again, one has to provide the exact number (i. e. 4 for a quad core) for the <ncpus> parameter. Using -1 leads to no change at all.
ID: 68168 · Report as offensive
Neil

Send message
Joined: 13 Apr 07
Posts: 18
Message 69659 - Posted: 19 May 2016, 22:48:37 UTC

Greetings:

I also would love to see the ability to either manually, via BoincTray functionality, in Windows, or via the ability to specify cores allowed while certain named programs are running.

I think the ability to turn off a certain number of cores when I load one of my games, as an example, as well as turn off use of the GPU (which IS possible in the current release, 7.6.22, I don't know when this capability was added), would be the most effective method. Just add the executable to the exclusion list and specify the number of cores to 'disable' while it's running. I wouldn't think that would be a big deal, but I'm not a developer. I would appreciate an actual number of cores be specified instead of the %-age method now used in Computing Preferences.

Any takers??


Thanks!

Neil
ID: 69659 · Report as offensive
SekeRob2

Send message
Joined: 6 Jul 10
Posts: 585
Italy
Message 69662 - Posted: 20 May 2016, 11:29:46 UTC - in response to Message 69659.  

The percent works well because it applies always in rounded down whole core. E.g 88 percent on an octo would let 7 cores running but on a 4 core or 2 it would let 3 resp. 1 running or for that matter leave 5 running on a 6 core.
Coelum Non Animum Mutant, Qui Trans Mare Currunt
ID: 69662 · Report as offensive
Ulrich Metzner

Send message
Joined: 5 Mar 16
Posts: 11
Germany
Message 69666 - Posted: 20 May 2016, 19:51:51 UTC

I see, i'm not alone! ;)

This feature would really be very handy for multiple purposes.
Maybe some developer finally realizes this feature - would be greatly appreciated!
ID: 69666 · Report as offensive
Neil

Send message
Joined: 13 Apr 07
Posts: 18
Message 69958 - Posted: 4 Jun 2016, 17:30:37 UTC - in response to Message 69662.  

I think anyone running these apps knows how many cores they have and, therefore, how many they'd like to 'turn off'. Most won't want to do the math to figure out that you need to specify 88 to leave 7 of 8 running on an 8-core CPU. Just say 7.

Neil
ID: 69958 · Report as offensive

Message boards : BOINC client : Feature request: free core(s) for special application/calculations

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.