Limiting CPUs per task?

Message boards : Questions and problems : Limiting CPUs per task?
Message board moderation

To post messages, you must log in.

AuthorMessage
RoXoR

Send message
Joined: 18 Apr 13
Posts: 2
Australia
Message 48664 - Posted: 18 Apr 2013, 8:03:52 UTC

Occasionally I get multi-threaded tasks which use all the cores allocated to BOINC and they take ages but don't get swapped out (usually because they're near or past their deadlines), and as a result, don't give other tasks execution time.

Is there any way to limit the number of cores any one task can use?

Say, for example, that BOINC is allowed 9 cores to work with (75% of a 12-core system). The way it's acting now, I get one task using 9 cores and tying them all up and nothing else running. I'd like to be able to tell BOINC to cap the number of cores per task, so that if, for instance, the limit was set at 50%, no one task would use more than 4 cores (assuming rounding down) of the 9 allocated to BOINC, ensuring that there would be at least three tasks running at all times.
ID: 48664 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 14828
Netherlands
Message 48665 - Posted: 18 Apr 2013, 8:19:06 UTC - in response to Message 48664.  

No, there is no such setting available. And besides, that wouldn't work with multi-threaded applications, as they assume that they will be able to use either all CPU cores in the system, or at least all of those appointed to BOINC. The only solution around that is not to run the MT application, you should be able to select that through the project preferences.


ID: 48665 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 4678
United Kingdom
Message 48668 - Posted: 18 Apr 2013, 10:04:18 UTC

Depending on the project/application and the multi-threading technology used, it can be done through anonymous platform (app_info.xml) - though that needs some care and knowledge, and isn't recommended for a general user.

I did ask David Anderson to extend the app_config.xml tool-set to include this, but he refused.
ID: 48668 · Report as offensive
RoXoR

Send message
Joined: 18 Apr 13
Posts: 2
Australia
Message 48707 - Posted: 20 Apr 2013, 1:55:49 UTC

It's a shame to hear there's no safe way to do it at the moment.

Thanks, anyway, guys.
ID: 48707 · Report as offensive
Alinator

Send message
Joined: 8 Jan 06
Posts: 36
United States
Message 49674 - Posted: 21 Jun 2013, 13:08:46 UTC - in response to Message 48668.  
Last modified: 21 Jun 2013, 13:12:48 UTC

Depending on the project/application and the multi-threading technology used, it can be done through anonymous platform (app_info.xml) - though that needs some care and knowledge, and isn't recommended for a general user.

I did ask David Anderson to extend the app_config.xml tool-set to include this, but he refused.


And now this poor decision is proving to be a problem over on MilkyWay. ;-)
ID: 49674 · Report as offensive

Message boards : Questions and problems : Limiting CPUs per task?

Copyright © 2022 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.