Welcome to MilkyWay@home

One WU using only 16 threads.

Message boards : Number crunching : One WU using only 16 threads.
Message board moderation

To post messages, you must log in.

AuthorMessage
Oppie

Send message
Joined: 30 Oct 10
Posts: 1
Credit: 267,111
RAC: 0
Message 75656 - Posted: 17 Jun 2023, 17:46:20 UTC
Last modified: 17 Jun 2023, 17:47:04 UTC



Shows it only using 16 threads. I have a dual processor server that I am running boinc on. It has 8 cores/16 threads per processor. Why doesn't it use all 32 threads?
ID: 75656 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Keith Myers
Avatar

Send message
Joined: 24 Jan 11
Posts: 715
Credit: 555,629,295
RAC: 42,185
Message 75657 - Posted: 17 Jun 2023, 18:08:00 UTC - in response to Message 75656.  


Shows it only using 16 threads. I have a dual processor server that I am running boinc on. It has 8 cores/16 threads per processor. Why doesn't it use all 32 threads?

Looks like the N-body application is unaware of the second cpu. I know other projects run all cores on dual socket hosts like the Universe project. So it isn't a problem with BOINC. Need to have one of the Einstein N-body devs answer your question.
ID: 75657 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Link
Avatar

Send message
Joined: 19 Jul 10
Posts: 627
Credit: 19,302,868
RAC: 2,033
Message 75670 - Posted: 18 Jun 2023, 8:17:21 UTC - in response to Message 75656.  
Last modified: 18 Jun 2023, 8:18:07 UTC

Why doesn't it use all 32 threads?
What are your CPU usage settings? Does BOINC recognize both CPUs? Check startup messages.
ID: 75670 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan
Avatar

Send message
Joined: 2 Jan 08
Posts: 123
Credit: 69,796,739
RAC: 493
Message 75672 - Posted: 18 Jun 2023, 9:34:33 UTC

I have a 12 core 24 thread Ryzen CPU, whenever I ran N-body work units only 1 would run and it would take 16 cores, when that one finished then another would start.

Buggered up the work throughput as most would not be completed before the deadline.

I added an app_config.xml file to make it use only 8 cores and now 3 will happily run and use all threads.

I think 16 is the default, at least for me it was.

In theory if you have 32 threads then it should run 2 work units but not sure about the default nature of the settings if it will then start another WU if one is already running.

Conan
ID: 75672 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ahorek's team

Send message
Joined: 8 Sep 07
Posts: 7
Credit: 2,357,594
RAC: 69
Message 75747 - Posted: 20 Jun 2023, 13:46:26 UTC

the app does support > 16 threads, but it doesn't scale well. There is only a 10% improvement 16 vs 32 threads on Ryzen 5950x, so running multiple wu's like 2x16 threads is more efficient.

it would be nice to setup "Max # of CPUs for this project" in the administration like other projects (amicable, primegrid...) have.
app_config.xml is another alternative...
ID: 75747 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Wailing Angus Beef

Send message
Joined: 24 Dec 07
Posts: 33
Credit: 1,923,208,587
RAC: 34,993
Message 75748 - Posted: 20 Jun 2023, 14:04:09 UTC - in response to Message 75656.  
Last modified: 20 Jun 2023, 14:06:57 UTC

Shows it only using 16 threads. I have a dual processor server that I am running boinc on. It has 8 cores/16 threads per processor. Why doesn't it use all 32 threads?

Are you using an app_config.xml to limit the number of concurrent WUs to 1 or have your boinc preferences set to use less than 100% of the cores?

Looks like the N-body application is unaware of the second cpu. I know other projects run all cores on dual socket hosts like the Universe project. So it isn't a problem with BOINC. Need to have one of the Einstein N-body devs answer your question.

Are you saying universe has an multi-threaded app or just it will use all threads on a multi CPU system with 1 thread per WU?
ID: 75748 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Keith Myers
Avatar

Send message
Joined: 24 Jan 11
Posts: 715
Credit: 555,629,295
RAC: 42,185
Message 75754 - Posted: 20 Jun 2023, 18:11:24 UTC - in response to Message 75748.  


Are you saying universe has an multi-threaded app or just it will use all threads on a multi CPU system with 1 thread per WU?

No, I was just commenting that other projects can utilize more than a single physical cpu in a host.
Universe tasks are only single threaded for running on a single core. But if you have a two socket host supporting 128 threads per socket, you can have 256 Universe tasks running for example.
ID: 75754 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ahorek's team

Send message
Joined: 8 Sep 07
Posts: 7
Credit: 2,357,594
RAC: 69
Message 75755 - Posted: 20 Jun 2023, 18:17:55 UTC

just use app_config.xml

<app_config>
<app>
<name>milkyway_nbody</name>
<max_concurrent>1</max_concurrent>
</app>
<app_version>
<app_name>milkyway_nbody</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>32</avg_ncpus>
<cmdline>-n 32</cmdline>
</app_version>
</app_config>

ID: 75755 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : One WU using only 16 threads.

©2024 Astroinformatics Group