Multithreadding not using all cores
log in

Advanced search

Message boards : Number crunching : Multithreadding not using all cores

Author Message
Partygott
Send message
Joined: 14 Dec 16
Posts: 9
Credit: 34,143,332
RAC: 345,849
Message 11398 - Posted: 28 Jan 2026, 16:16:32 UTC

Hello.

I generated an app_config.xml to use more than one core per WU.
The file looks like this:

<app_config>
<app>
<name>srbase</name>
<fraction_done_exact/>
<max_concurrent>3</max_concurrent>
</app>
<app_version>
<app_name>srbase</app_name>
<cmdline>-t4</cmdline>
<avg_ncpus>4</avg_ncpus>
</app_version>
</app_config>

It is an i7-1355U with 10 cores and 12 threads.
BOINC is running 3 WUs with (4 CPUs) label but the task manager shows only 6-10% load per WU, so only about one core is used, while the idle task has about 60-75%.

I wanted to config the xml so that average use 4 and long WUs use all 12 possible threads but the cpu is only on full load when I take one core and 12 WUs.

So whats wrong about my config?
Thank you in advance.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 8323
Credit: 146,772,563
RAC: 0
Message 11399 - Posted: 28 Jan 2026, 17:38:08 UTC

Try to change

<max_concurrent>3</max_concurrent>

to
<max_concurrent>1</max_concurrent>

Partygott
Send message
Joined: 14 Dec 16
Posts: 9
Credit: 34,143,332
RAC: 345,849
Message 11402 - Posted: 29 Jan 2026, 8:42:38 UTC - in response to Message 11399.

I tried to change to

<max_concurrent>1</max_concurrent>
<cmdline>-t12</cmdline>
<avg_ncpus>12</avg_ncpus>

but then I have one WU running using only one core while boinc shows (12 CPUs)

I also tried to reset the project but no change.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 8323
Credit: 146,772,563
RAC: 0
Message 11403 - Posted: 29 Jan 2026, 9:21:54 UTC
Last modified: 29 Jan 2026, 9:31:27 UTC

I see, you want 4x3 not 1x12. Do you have enabled HT in BIOS? MT should use 95% CPU usage.

Use this

<max_concurrent>3</max_concurrent> <cmdline>-t3</cmdline> <avg_ncpus>3</avg_ncpus>


or better 5, 2, 2 for 10 real cores

Partygott
Send message
Joined: 14 Dec 16
Posts: 9
Credit: 34,143,332
RAC: 345,849
Message 11404 - Posted: 29 Jan 2026, 12:52:22 UTC - in response to Message 11403.
Last modified: 29 Jan 2026, 13:24:37 UTC

HT is turned on in BIOS and i cannot change this, cause it is a very minimalistic Lenovo ThinkPad BIOS.

I tried

<max_concurrent>2</max_concurrent>
<cmdline>-t5</cmdline>
<avg_ncpus>5</avg_ncpus>

and

<max_concurrent>3</max_concurrent>
<cmdline>-t3</cmdline>
<avg_ncpus>3</avg_ncpus>

and

<max_concurrent>4</max_concurrent>
<cmdline>-t3</cmdline>
<avg_ncpus>3</avg_ncpus>

and

<max_concurrent>1</max_concurrent>
<cmdline>-t12</cmdline>
<avg_ncpus>12</avg_ncpus>


With 1 or 2 cores per WU the load per WU is about 8% or respective 16%, while 8,33% per task is a 100% usage (100% / 12 threads = 8,33%).
But if I raise the amount of cores per WU the usage goes down, like 3-6% per WU at 5 cores. At 12 Cores per 1 WU, the usage drops to 1-3%.

I tested on another system with a 5800X CPU (Win10) and 2x 8 cores on 2 WUs brings about 90-99% usage, so it is not a question of correct app_config settings.

I also tried another project (Amicable Numbers) and a 12 Core WU reaches about 80-85% usage.
But here the app itself uses all cores per WU without needing an app_config file.

So it seems to be a problem with Win11, strange configs by company policies or something else in BOINC or the srbase exe.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 8323
Credit: 146,772,563
RAC: 0
Message 11406 - Posted: 29 Jan 2026, 13:53:45 UTC

Perhaps something with powerplan or overheat of the GPU itself which reduce the speed. I'am not recommened to run anything heavy load on laptops.

mmonnin
Send message
Joined: 1 Feb 17
Posts: 40
Credit: 1,068,587,786
RAC: 26,350
Message 11408 - Posted: 30 Jan 2026, 1:26:00 UTC

Partygott - Just to make sure, you are telling the client to read the updated app_config file? And that the app name is correct per the FAQ?

https://srbase.my-firewall.org/sr5/forum_thread.php?id=6&postid=698#698

List of apps:
srbase = Sierpinski / Riesel Base


Your PCs are hidden so I can't see if you are running the Sierpinski / Riesel Base app which has the srbase name in an app_config.

rebirther - None of your posts make sense. max_concurrent is unrelated to the question. The user is saying -t4 and -t12 still run as single threaded. Changing to -t3 is not a solution and OP even said " 3 WUs with (4 CPUs)" which would be 4t. Then you post about GPUs, not related/helpful.

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 8323
Credit: 146,772,563
RAC: 0
Message 11409 - Posted: 30 Jan 2026, 9:09:55 UTC - in response to Message 11408.
Last modified: 30 Jan 2026, 9:10:33 UTC

The -t option doesn't count on HT on prst, only on real cores.

Sightus@CAU
Send message
Joined: 30 Mar 24
Posts: 1
Credit: 3,207,226,254
RAC: 3,072,654
Message 11410 - Posted: 30 Jan 2026, 11:50:27 UTC

I have the same issue regarding my Lenovo M70t with Intel i7 13700; Boinc will only use the slow efficiency cores. Hence I gave up running Boinc on these machines.

mmonnin
Send message
Joined: 1 Feb 17
Posts: 40
Credit: 1,068,587,786
RAC: 26,350
Message 11411 - Posted: 30 Jan 2026, 21:59:33 UTC - in response to Message 11409.

The -t option doesn't count on HT on prst, only on real cores.


BOINC knows about threads and not cores.

And yet -4t should use 2 if what you said was true. More nonsense.

Partygott
Send message
Joined: 14 Dec 16
Posts: 9
Credit: 34,143,332
RAC: 345,849
Message 11416 - Posted: 1 Feb 2026, 23:24:34 UTC - in response to Message 11406.
Last modified: 1 Feb 2026, 23:28:39 UTC

I did some testing the last days...

It is no overheat. The CPU is held at about 70°C in "Best Performance" mode, which is ok I think. The CPU throttle comes in at over 90°C.

But I measured the runtimes of the same type of WU and found out that MT is working fine. Only all cores on 1 WU is doing a bit worse.
And using the HT-cores has nearly no impact.

Then I watched the task manager.
Normally I take a look to the detailed view, cause it is more precise.
But here it shows nonsense, with idle task at 80-90%.
The normal process view shows 100% cpu and the performance view the same.

So it only seems to be a kind of bug that the detailed view shows such a high idle percentage and I did not expect such a behavior.
Now I will keep running at 2x5, cause 2x6, 3x4, 4x3 and 6x2 have no advantage.
Only 1 core per WU (12x1) is doing slightly better, but has way longer computation time.


the numbers to compare (on Sierpinski / Riesel Base 0.49 WUs):
12 WUs x 1 core: 220 minutes per core
6 x 2: 114 >> 228
2 x 6: 38 >> 228 (2 x 5: 229)
1 x 12: 23 >> 276


No problem at all - just a display of wrong values.
Thanks for help and patience.

Profile marmot
Avatar
Send message
Joined: 17 Nov 16
Posts: 106
Credit: 209,246,601
RAC: 867
Message 11418 - Posted: 2 Feb 2026, 9:39:45 UTC

My Puppy Linux on E5-2697V4's had this issue (HT off, 36 total threads)
Played around with the various app_config

<max_concurrent>X</max_concurrent> <cmdline>-tY</cmdline> <avg_ncpus>Y</avg_ncpus>

configs.

It would stay at 80-85% CPU usage.

My solution to reach 95% twofold:
1) Use:
<cmdline>-t4</cmdline> <avg_ncpus>4</avg_ncpus>

It's a compromise. 2 would take too long to run; higher than 4 made the CPU usage issue get worse. 4 was optimal.

2) Overbooking and that means modifying cc_config.xml line:
<ncpus>virtual-cores</ncpus>

Start virtual-cores equal to your actual number of threads then step up by increments of 4 till reaching the desired CPU usage.

In your case -t2 and stepping up by 2 might be best.

If you need to reduce virtual-cores while the laptop is in heavy use; set preferences in BOINC to "When Computer is in Use" -> "Use at most 25%..." (choose your percentage) CPU's.

TBH all my servers got this treatment for SRbase.
____________
My primes found at SRBase:
9702*871^256606+1 (Top 5000)
40*1017^215605+1 (Top 5000)
18922*111^383954+1 (Top 5000)
19116*24^791057-1 (Top 5000)
580848 · 40499188 + 1 (Top 5000)
4281*880^27069+1

Aurum
Send message
Joined: 20 Apr 19
Posts: 2
Credit: 30,420,850
RAC: 519,089
Message 11518 - Posted: 12 Mar 2026, 17:59:49 UTC - in response to Message 11418.
Last modified: 12 Mar 2026, 18:02:07 UTC

My Puppy Linux on E5-2697V4's had this issue (HT off, 36 total threads)
An E5-2697 v4 has 18 cores with 36 threads if hyperthreading is enabled. You say "HT off" so I assume you've disabled hyperthreading in the BIOS.
I've never heard of using virtual-cores and that they can used in BOINC, so I'm learning. I assume that your total WU throughput has increased with this configuration.
https://blog.coolicehost.com/what-is-virtual-core-and-how-does-it-differ-from-physical-core/
"Every virtual core is similar to the other, and while none of them are as powerful as the actual core, their combined strength significantly outshines that of the physical core in the case of Hyper-Threading being disabled."
____________

Profile rebirther
Volunteer moderator
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 2 Jan 13
Posts: 8323
Credit: 146,772,563
RAC: 0
Message 11519 - Posted: 12 Mar 2026, 19:55:27 UTC - in response to Message 11518.

You don't need to disable HT in BIOS. Just run BOINC on 50% of your cores instead 100% if you want to run without. There are some other apps which are benefit from HT.

Aurum
Send message
Joined: 20 Apr 19
Posts: 2
Credit: 30,420,850
RAC: 519,089
Message 11529 - Posted: 18 Mar 2026, 16:05:24 UTC - in response to Message 11519.
Last modified: 18 Mar 2026, 16:05:48 UTC

You don't need to disable HT in BIOS. Just run BOINC on 50% of your cores instead 100% if you want to run without. There are some other apps which are benefit from HT.
Thanks, yes I know.
I'm curious about how much more throughput one gets using <ncpus>virtual-cores</ncpus>


Post to thread

Message boards : Number crunching : Multithreadding not using all cores


Main page · Your account · Message boards


Copyright © 2014-2026 BOINC Confederation / rebirther