Welcome to MilkyWay@home

Why is this project using all 8 cores when another project is trying to run

Message boards : Number crunching : Why is this project using all 8 cores when another project is trying to run
Message board moderation

To post messages, you must log in.

AuthorMessage
Richard Mitnick
Avatar

Send message
Joined: 9 Nov 23
Posts: 1
Credit: 864,934
RAC: 3,354
Message 76956 - Posted: 5 Mar 2024, 21:39:04 UTC

This project is using all eight available cores while another project is trying to run. Why is that?
Please check out my blog
http://sciencesprings.wordpress.com
http://facebook.com/sciencesprings
ID: 76956 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile Conan
Avatar

Send message
Joined: 2 Jan 08
Posts: 123
Credit: 69,796,215
RAC: 639
Message 76957 - Posted: 6 Mar 2024, 0:26:40 UTC - in response to Message 76956.  
Last modified: 6 Mar 2024, 0:34:16 UTC

This project is using all eight available cores while another project is trying to run. Why is that?


G'Day Richard,

The default for N-Body work units is to use up to 16 cores in multi-thread.

You can change this to what you want (2,3,4,5,6,7 whatever) using an app_config.xml file (placed in your MilkyWay project directory).
Speed of processing may change you would have to try it out to see what works best.

I currently use 8 cores so I can fit 3 work units at once on my 12 core 24 thread Ryzen CPU.

See also This thread

Conan
ID: 76957 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
True: you think [right? ...of ...

Send message
Joined: 27 Dec 22
Posts: 2
Credit: 34,828
RAC: 45
Message 76963 - Posted: 8 Mar 2024, 17:45:00 UTC
Last modified: 8 Mar 2024, 17:46:40 UTC

You can change this
(76957 - Posted: 6 Mar 2024, 0:26:40 UTC) (emphasis added)

At least one other project which uses multiple cores does NOT require users to 'dig in the dirt' coding conf files to set core usage limits.
E.g., Amicable Numbers
https://sech.me/boinc/Amicable
provides a setting in the
project Preferences
"You can set CPU core limits and fine-tune GPU here"
ID: 76963 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Profile mikey
Avatar

Send message
Joined: 8 May 09
Posts: 3339
Credit: 524,010,781
RAC: 0
Message 76964 - Posted: 9 Mar 2024, 0:20:16 UTC - in response to Message 76956.  

This project is using all eight available cores while another project is trying to run. Why is that?


Because it's an MT app, meaning 'multi-threaded', it has an upper limit of 16 cpu cores but with an app_config.xml file you can change how many cpu cores each tasks uses. Of course the trade-off is each task will take longer to run but if you are okay with that then follow the link below or above depending on how you have this thread sorted.
ID: 76964 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Why is this project using all 8 cores when another project is trying to run

©2024 Astroinformatics Group