How do I set the number of cores to use
Moderators: Site Moderators, FAHC Science Team
How do I set the number of cores to use
Hi.
When I get my new computer soon, I want to control how many cores are used, IE. 4 cores, or 8 cores, or all 16 cores.
What is the exact syntax I should use, either on the command line, or the config.xml file?
Thanks.
When I get my new computer soon, I want to control how many cores are used, IE. 4 cores, or 8 cores, or all 16 cores.
What is the exact syntax I should use, either on the command line, or the config.xml file?
Thanks.
-
- Posts: 525
- Joined: Fri Apr 03, 2020 2:22 pm
- Hardware configuration: ASRock X370M PRO4
Ryzen 2400G APU
16 GB DDR4-3200
MSI GTX 1660 Super Gaming X
Re: How do I set the number of cores to use
I'm assuming you are using an operating system other than Windows?
Fold them if you get them!
Re: How do I set the number of cores to use
I will be using windows 10.
-
- Site Admin
- Posts: 7951
- Joined: Tue Apr 21, 2009 4:41 pm
- Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2 - Location: W. MA
Re: How do I set the number of cores to use
Assuming you will have a display, use FAHControl to set the number of cores for the CPU slot. The default value of -1 leaves control of the number of cores to the slider. That sets the number to 1 less than the total Medium and to half on Light.
The number of cores used by a WU are set to a maximum based on the setting at download. While processing a WU you can reduce the number of cores used, but not increase it above the number set. The next WU downloaded will get the increased number of cores.
The number of cores used by a WU are set to a maximum based on the setting at download. While processing a WU you can reduce the number of cores used, but not increase it above the number set. The next WU downloaded will get the increased number of cores.
iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Re: How do I set the number of cores to use
Unfortunately, due to my total blindness, I am unable to use fah control, as it uses GTK and GTK is no good with screen readers.
-
- Site Admin
- Posts: 7951
- Joined: Tue Apr 21, 2009 4:41 pm
- Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2 - Location: W. MA
Re: How do I set the number of cores to use
Then carefully editing the config.xml file is one of your options. You will need to set an option "cpus" to the value of the number of cores you want to use. The careful editing is because FAHClient uses a subset of XML and needs careful formatting. FAHClient and FAHControl verify settings before saving them. Directly editing the file can leave you with a client that will not run. The editing needs to be done with FAHClient not running. Here is the section of my config.xml file that shows it done for CPUs set to 2:
If your CPU slot has another ID number you will have to use that instead of "0".
Another option requires you to be comfortable working in a command line environment. You can use FAHClient to send commands to the running background process. In your case to set the number of cores to 8 you would use something like the following:
I am not sure on the exact syntax, I have not used this method and there may be permissions issues involved.
Code: Select all
<!-- Folding Slots -->
<slot id='0' type='CPU'>
<cpus v='2'/>
</slot>
Another option requires you to be comfortable working in a command line environment. You can use FAHClient to send commands to the running background process. In your case to set the number of cores to 8 you would use something like the following:
Code: Select all
FAHClient --send-command --cpus 8
iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Re: How do I set the number of cores to use
Thank you so much for this, it is really appreciated.
I just wish that fah control didn't use GTK, or used some other GUI platform, like QT for example, that one has accessibility settings that can be turned on in the code.
This issue has been a bit of a barrier for me since 2014, you might have seen some posts on here from me about it.
I just wish that fah control didn't use GTK, or used some other GUI platform, like QT for example, that one has accessibility settings that can be turned on in the code.
This issue has been a bit of a barrier for me since 2014, you might have seen some posts on here from me about it.
-
- Site Moderator
- Posts: 1161
- Joined: Sat Dec 08, 2007 1:33 am
- Location: San Francisco, CA
- Contact:
Re: How do I set the number of cores to use
If the client is running, the command would be
The command must be quoted so it is a single argument.
Other commands are possible:
Code: Select all
FAHClient --send-command "option cpus 8"
Other commands are possible:
Code: Select all
FAHClient --send-command help