Message boards :
Questions and problems :
Limit cores used per project?
Message board moderation
Author | Message |
---|---|
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
I'm aware of: max_concurrent The maximum number of tasks of this application to run at a given time. project_max_concurrent A limit on the number of running jobs for this project. But I'm wondering if there's something similar. I run the LHC project on a 24 thread Ryzen CPU. They use virtualbox for everything, but using all the threads on virtualbox makes the interface sluggish. Is there any way to limit the number of threads that can use LHC (or that can use virtualbox) to 16, letting the other 8 run another project that doesn't use virtualbox? I can't use project_max_concurrent as they have tasks that are single thread and tasks that are 8 thread. I want the total threads not to exceed 16. |
Send message Joined: 25 Jul 18 Posts: 34 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. I don’t think that will work. As I understand it Boinc chooses one set of preferences, either local or from one of the projects and applies that to all projects. Thus, a single host cannot be both home and school, nor can it have 67% and 100% at the same time. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. It can be home and school. I've got machines in all sorts of different venues for different projects, to limit which subprojects run or whether the GPU is used there. But you're right, I don't think I can have two different CPU percentages. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. If it can be the first then it can have the second. A single instance of the Boing client can only have one active profile at any one time - yes, you can have many different profiles set up within the different projects but only one can be active. |
Send message Joined: 25 Nov 05 Posts: 1636 ![]() |
Peter I'm not familiar with LH, or virtualbox, but this post in Boinc memory estimate and LHC Settings seems to be talking about your question. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
Peter The problem I have (which I don't think they solve there) is LHC has 8-thread and 1-thread apps. I want to limit my 24-thread machine to run a maximum of 16 threads of LHC work. These are some of the valid options I'd be happy running (depending on what they happen to send out): 2 of 8 thread Atlas 16 of 1 thread Theory 1 of 8 thread Atlas and 8 of 1 thread Theory But I can only tell Boinc to limit the total number of tasks for LHC, and the number of tasks for one app. If I use project_max_concurrent, I need to set it to 16, so 16 Theory can run. If I use max_concurrent, I need to set 2 to Atlas, and 16 to Theory. Even doing both of these, it could end up running 2 Atlas and 8 Theory = 24 threads. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. I disagree with your last sentence. I have Einstein set to only give my Ryzen gamma tasks, as the GPU can't cope with the others, Einstein has it in the school venue. I have LHC set to give it Atlas tasks, that is in the home venue. The venues are project controlled, the client has no knowledge of them (or doesn't care). When it asks Einstein for work, Einstein knows it's in school, and gives it gamma tasks. In fact Primegrid has more than the standard 4 venues. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
I don't know if this works but there are different venues available also for computing preferences where you set the percentage of CPU cores allowed to be used by Boinc. If you setup the host in LHC to venue Home and set the CPU percentage that matches 16 cores and on the other project you setup the same Host to School with 100% of CPU cores. That could possibly result 16 cores for LHC and the rest on other project. The other project may sometimes block the LHC completely. I don't know if this works or not, you have to try it yourself. Each project has separate project level parameters such as which type of tasks it is to send you - only Einstein knows about Gamma tasks and only LHC knows about Atlas tasks. Then there are the Boinc parameters such as the %CPU to use. These make up your profile and you can only have one active profile at any time. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
Ah, I only set project specific things on their websites. CPU percentage etc is done locally. Seems neater that way. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
Ah, I only set project specific things on their websites. CPU percentage etc is done locally. Seems neater that way. Then your location is the one in you local profile and is fixed for that instance of Boinc on that machine. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
Ah, I only set project specific things on their websites. CPU percentage etc is done locally. Seems neater that way. By location, do you mean "school/home/work"? Because this machine is in all of those for different projects. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
Ah, I only set project specific things on their websites. CPU percentage etc is done locally. Seems neater that way. But the location is part of the computing preference that you say you have set to local rather than the project preferences that vary according to project. Regardless of the value you have set on each of the project’s websites the Boinc client will only take note of the one value in the active profile. |
![]() Send message Joined: 6 Oct 06 Posts: 1344 ![]() |
Well it seems to work. So my computer is set to say school, locally. But it still obeys the home settings in say Einstein to not get gravity tasks. |
Send message Joined: 31 Dec 18 Posts: 225 ![]() |
Well it seems to work. So my computer is set to say school, locally. But it still obeys the home settings in say Einstein to not get gravity tasks. Because the type of task is a project level setting, not a computing preference determined by the machines location. |
![]() ![]() Send message Joined: 17 Nov 16 Posts: 703 ![]() |
Use the Combined View to see all your project setting across all venues. Helps clear up confusion about which applications are being selected for each venue. https://einsteinathome.org/account/prefs/project/combined |
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.