What thread count to put on CPU

A forum for discussing FAH-related hardware choices and info on actual products (not speculation).

Moderator: Site Moderators

Forum rules
Please read the forum rules before posting.
Post Reply
KjartanD
Posts: 9
Joined: Sun Mar 15, 2020 9:02 pm

What thread count to put on CPU

Post by KjartanD »

Hello all. I have a AMD 3900x cpu with 12/24 count.

I also fold on a GTX 1070 and a RTX 2080Super. Should I leave the CPU @ -1 and let the system choose or should I put in fixed number of threads, and if so, how many is optimal so the GPU get's is juice of threads?
JimboPalmer
Posts: 2573
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: What thread count to put on CPU

Post by JimboPalmer »

F@H by default reserves a CPU for each Graphics card to feed the PCIE bus with data, so you have 22 of 24 for folding

If you decide to over ride the -1, there is a quirk of F@H on CPUs. It hates Large prime numbers and multiples of them. 7 is always large. 5 is rarely large, 3 is never large.

So 2. 3. 4. 6. 8, 9, 12, 16, 18 are always safe. 5, 10, 15 and 20 are usually safe.

One haair brained but safe solution would be one cpu Slot of 18 and one cpu slot of 4
Last edited by JimboPalmer on Mon Mar 23, 2020 3:42 pm, edited 2 times in total.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
Kebast
Posts: 386
Joined: Thu Aug 06, 2015 5:21 pm

Re: What thread count to put on CPU

Post by Kebast »

See this for a bit of explanation: viewtopic.php?f=16&t=32752

Your GPUs will need 1 thread each, so you're down to 22 usable for folding at that point. I'd recommend creating one CPU slot with 8 and one CPU slot with 12.

I could certainly be wrong too.
Image
Ryzen 5900x 12T - RTX 4070 TI
Lockheed_Tvr
Posts: 14
Joined: Thu Aug 03, 2017 12:23 pm

Re: What thread count to put on CPU

Post by Lockheed_Tvr »

So what's the best course of action with a 4 core/8 thread CPU. Mine seem to select 7 threads on their own, but that sounds like a bad idea. Is six better and just leave one idle? 2 slots with 3/4? 6/1?
kiore
Posts: 931
Joined: Fri Jan 16, 2009 5:45 pm
Location: USA

Re: What thread count to put on CPU

Post by kiore »

Lockheed_Tvr wrote:So what's the best course of action with a 4 core/8 thread CPU. Mine seem to select 7 threads on their own, but that sounds like a bad idea. Is six better and just leave one idle? 2 slots with 3/4? 6/1?
Just leave it at the default setting unless overheating or you are on Windows and need to leave a thread free for the GPU.
Setting are on Advanced Control> Configure> Slots> CPU
Image
i7 7800x RTX 3070 OS= win10. AMD 3700x RTX 2080ti OS= win10 .

Team page: http://www.rationalskepticism.org
Lockheed_Tvr
Posts: 14
Joined: Thu Aug 03, 2017 12:23 pm

Re: What thread count to put on CPU

Post by Lockheed_Tvr »

kiore wrote:
Lockheed_Tvr wrote:So what's the best course of action with a 4 core/8 thread CPU. Mine seem to select 7 threads on their own, but that sounds like a bad idea. Is six better and just leave one idle? 2 slots with 3/4? 6/1?
Just leave it at the default setting unless overheating or you are on Windows and need to leave a thread free for the GPU.
Setting are on Advanced Control> Configure> Slots> CPU
I'm not overheating but I am on Windows. Is there a better configuration for Windows?
JimboPalmer
Posts: 2573
Joined: Mon Feb 16, 2009 4:12 am
Location: Greenwood MS USA

Re: What thread count to put on CPU

Post by JimboPalmer »

No. with 8 and a GPU, 6 is as good as you will do.
Tsar of all the Rushers
I tried to remain childlike, all I achieved was childish.
A friend to those who want no friends
RMCholewa
Posts: 29
Joined: Fri Mar 27, 2020 2:25 pm
Hardware configuration: Lenovo Y540 Notebook with an Intel Core i7-9750H, nvidia RTX2060 Mobile amd 32GB RAM
Location: Recife, Pernambuco / BRAZIL
Contact:

Re: What thread count to put on CPU

Post by RMCholewa »

I have a similar question.

I have a Lenovo Legion Y540 notebook with an Intel i7-9750H (6 core / 12 threads), nvidia RTX 2060 Mobile and 32GB of RAM (Windows 10 1909).

If I leave the Folding@Home client at it's default settings (-1 for CPU and GPU) it will get 11 cores for the CPU (the GPU is being properly detected and used).

Since 11 is a prime, it would be a better idea to force a CPU slot with a 10 thread count?

I think I am getting a really low PPD (around 80k). GPU is always 90%+ used.

Thanks in advance.
toTOW
Site Moderator
Posts: 6309
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: What thread count to put on CPU

Post by toTOW »

RMCholewa wrote:I think I am getting a really low PPD (around 80k). GPU is always 90%+ used..
Do you have a passkey set : https://foldingathome.org/support/faq/points/passkey/ ?
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
RMCholewa
Posts: 29
Joined: Fri Mar 27, 2020 2:25 pm
Hardware configuration: Lenovo Y540 Notebook with an Intel Core i7-9750H, nvidia RTX2060 Mobile amd 32GB RAM
Location: Recife, Pernambuco / BRAZIL
Contact:

Re: What thread count to put on CPU

Post by RMCholewa »

No, I asked for one this morning (6 hours ago or so) but received no email so far...
toTOW
Site Moderator
Posts: 6309
Joined: Sun Dec 02, 2007 10:38 am
Location: Bordeaux, France
Contact:

Re: What thread count to put on CPU

Post by toTOW »

Did you look in your spam folder ?
Image

Folding@Home beta tester since 2002. Folding Forum moderator since July 2008.
RMCholewa
Posts: 29
Joined: Fri Mar 27, 2020 2:25 pm
Hardware configuration: Lenovo Y540 Notebook with an Intel Core i7-9750H, nvidia RTX2060 Mobile amd 32GB RAM
Location: Recife, Pernambuco / BRAZIL
Contact:

Re: What thread count to put on CPU

Post by RMCholewa »

toTOW wrote:Did you look in your spam folder ?
Yes, nothing there...

Maybe this information is relevant: I am receiving forum post alerts without problems.
_r2w_ben
Posts: 285
Joined: Wed Apr 23, 2008 3:11 pm

Re: What thread count to put on CPU

Post by _r2w_ben »

JimboPalmer wrote:One haair brained but safe solution would be one cpu Slot of 18 and one cpu slot of 4
18 is a probably a very good idea because it factors to 2x2x3. The smaller the factors the better because the cells are larger.

Ian Cutress at AnandTech has been producing great charts showing per core power consumption for high core count CPUs.
Image
Source: https://www.anandtech.com/show/14605/th ... the-bar/19

All cores are fighting for a piece of the power budget. One slot with 18 threads, rather than 18 + 4, may actually produce more points.
The idle cores/threads will donate their budget to the active cores, which will clock higher.

Theoretically, 18 cores active @ 3300 MHz = 59400 vs. 22 cores active @ 3000 MHz = 66000 would mean the 22 core configuration is capable of more FLOPS.
Will the higher QRB on the 18 configuration compensate compared to more science done by 18 + 4? For the project as a whole right now, having one less slot vying for a limited supply of work might be beneficial as well.
Post Reply