Message boards : Questions and problems : Limiting CPUs per task?
Message board moderation
Author | Message |
---|---|
Send message Joined: 18 Apr 13 Posts: 2 ![]() |
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. |
![]() Send message Joined: 29 Aug 05 Posts: 15640 ![]() |
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. |
Send message Joined: 5 Oct 06 Posts: 5149 ![]() |
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. |
Send message Joined: 18 Apr 13 Posts: 2 ![]() |
It's a shame to hear there's no safe way to do it at the moment. Thanks, anyway, guys. |
Send message Joined: 8 Jan 06 Posts: 36 ![]() |
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. And now this poor decision is proving to be a problem over on MilkyWay. ;-) |
Copyright © 2025 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.