Reserve a CPU core for GPU

If you're new to FAH and need help getting started or you have very basic questions, start here.

Moderators: Site Moderators, FAHC Science Team

Post Reply
manalog
Posts: 9
Joined: Thu Sep 17, 2015 3:08 pm

Reserve a CPU core for GPU

Post by manalog »

Hi,
I am a Boinc cruncher but I started crunching again on Folding after having seen the great effort you are doing to fight the coronavirus.
I am running an host H24, it is a Xeon L5420 quad core processor coupled with a Nvidia 750ti. If I find a good offer I am planning to change it soon with a 1660 or a 1650 in order to contribute more efficiently.
Now I am running Folding full power on both CPU and GPU; the client automatically choose to use 3 cpu threads and leave the other one for the GPU. Perhaps in the next days or weeks I will start using again the CPU for Boinc projects related with Covid (WCG, Rosetta, Tn-Grid, Ibercivis) so I was wondering if it makes sense to limit the number of Boinc tasks to three in order to leave one core for the GPU running on FAH.
Moreover, another option: do you think is a good idea to continue running Folding also on CPU even if I start running Boinc again?
Thank you
JimboPalmer
Posts: 2522
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Reserve a CPU core for GPU

Post by JimboPalmer »

If you only use F@H for the GPUs, you still want to reserve a CPU for the GPU.

This more important for Nvidia GPUs than for AMD cards, but a good idea either way.

AMD uses interrupts, if a CPU is always available to handle the interrupt, F@H will be faster.

https://en.wikipedia.org/wiki/Interrupt

Nvidia on the other hand uses Polled I/O, where the program loop forever waiting for a response. It uses an entire thread even when nothing need attention.

https://en.wikipedia.org/wiki/Busy_waiting

So if you can, allocate one less CPU thread to the other DC program.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
FireFox-89
Posts: 72
Joined: Wed Nov 27, 2019 9:18 pm
Hardware configuration: Luna-
AMD Ryzen 5 2600 @ stock | Noctua NH-U9s with 2 Noctua B9 Redux 1600 92mm Fans
MSI B450 Tomahawk Max Revision 1.0 BIOS version 3.F0
Corsair Vengeance LPX 4x8GB DDR4-3000 | Timings 16-18-18-36
Sapphire Radeon RX 590 Nitro+ 8GB
SeaSonic M12II 850w 80+Bronze PSU

Terra-
Intel Core i5-4690K @ 4.20GHz with Vcore of 1.138v | Corsair H100i V2 with 2 Corsair SP120 120mm fans
Gigabyte Z87X-UD3H BIOS version 10b
Crucial Ballistix Sport 2x4GB DDR3-1600 | Timings 9-9-9-24
Sapphire Radeon RX 570 Pulse 4GB -100mV undervolt
OCZ Technology ZS Series 550w 80+Bronze PSU

Anubis-
Intel Core i7-5820K @3.80GHz with Vcore of 1.089v | Cooler Master Hyper 212 with Noctua NF-F12 120mm IPPC 3000 fan
Gigabyte X99-SOC Champion BIOS version F23c
G.Skill Trident Z RGB 2x8GB DDR4-3000 @ 2400 | Timings 15-15-15-36
Sapphire Radeon RX 580 Nitro+ 4GB -25mV undervolt
SeaSonic Prime Platinum 750w 80+Platinum PSU

All machines running F@H v7.6.21
Location: Lincolnshire, UK

Re: Reserve a CPU core for GPU

Post by FireFox-89 »

So does the CPU feed the GPU with the calculations?
Do you even fold bro?
Image
JimboPalmer
Posts: 2522
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: Reserve a CPU core for GPU

Post by JimboPalmer »

All Data gets on and off the Graphics card via CPU operations. Uploads/downloads and check points.
There is a sanity check calculation at every check point to be sure the GPU has not gone astray.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
FireFox-89
Posts: 72
Joined: Wed Nov 27, 2019 9:18 pm
Hardware configuration: Luna-
AMD Ryzen 5 2600 @ stock | Noctua NH-U9s with 2 Noctua B9 Redux 1600 92mm Fans
MSI B450 Tomahawk Max Revision 1.0 BIOS version 3.F0
Corsair Vengeance LPX 4x8GB DDR4-3000 | Timings 16-18-18-36
Sapphire Radeon RX 590 Nitro+ 8GB
SeaSonic M12II 850w 80+Bronze PSU

Terra-
Intel Core i5-4690K @ 4.20GHz with Vcore of 1.138v | Corsair H100i V2 with 2 Corsair SP120 120mm fans
Gigabyte Z87X-UD3H BIOS version 10b
Crucial Ballistix Sport 2x4GB DDR3-1600 | Timings 9-9-9-24
Sapphire Radeon RX 570 Pulse 4GB -100mV undervolt
OCZ Technology ZS Series 550w 80+Bronze PSU

Anubis-
Intel Core i7-5820K @3.80GHz with Vcore of 1.089v | Cooler Master Hyper 212 with Noctua NF-F12 120mm IPPC 3000 fan
Gigabyte X99-SOC Champion BIOS version F23c
G.Skill Trident Z RGB 2x8GB DDR4-3000 @ 2400 | Timings 15-15-15-36
Sapphire Radeon RX 580 Nitro+ 4GB -25mV undervolt
SeaSonic Prime Platinum 750w 80+Platinum PSU

All machines running F@H v7.6.21
Location: Lincolnshire, UK

Re: Reserve a CPU core for GPU

Post by FireFox-89 »

JimboPalmer wrote:All Data gets on and off the Graphics card via CPU operations. Uploads/downloads and check points.
There is a sanity check calculation at every check point to be sure the GPU has not gone astray.
Ahh OK, that makes sense :)
Do you even fold bro?
Image
bruce
Posts: 20824
Joined: Thu Nov 29, 2007 10:13 pm
Location: So. Cal.

Re: Reserve a CPU core for GPU

Post by bruce »

I don't recommend running both FAH and BOINC on the remaining CPUs. They don't do a nice job of sharing. Choose one or the other.
MeeLee
Posts: 1339
Joined: Tue Feb 19, 2019 10:16 pm

Re: Reserve a CPU core for GPU

Post by MeeLee »

You can run boinc and FAH together, as long as enough CPU threads are reserved for the GPU.
In Boinc you can easily set your system to use only 75% of (3 out of 4) cores, and the OS will assign the 4th core for sharing the GPU and the rest of the OS and client programs.
A quad core system will work better doing only one project though.
Sharing is easier when you have plenty of cores. But even then, it's often better to assign one PC to one project.
But it is possible; so long both programs aren't fighting for resources allocated to the other (you can't for instance, run Boinc and FAH on the same GPU; you'll lose more than 50% of performance).
Post Reply