Welcome to MilkyWay@home

cpu usage

Message boards : Number crunching : cpu usage
Message board moderation

To post messages, you must log in.

AuthorMessage
nairb

Send message
Joined: 17 Feb 09
Posts: 24
Credit: 3,503,203
RAC: 388
Message 74188 - Posted: 15 Sep 2022, 22:12:35 UTC

On both the win10 & linux machines the nbody tasks only seem to use about 90% of the cpu. Both have the cpu usage set to 100% on the computing prefs. Other projects use the full cpu (100%).

Is this typical of the nbody process??

Ta
Nairb
ID: 74188 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
diegobo

Send message
Joined: 9 Jun 22
Posts: 2
Credit: 10,768,375
RAC: 0
Message 74714 - Posted: 29 Nov 2022, 14:12:24 UTC - in response to Message 74188.  

same here, n-body (12 CPUs) using 82%...
ID: 74714 · 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 74715 - Posted: 29 Nov 2022, 14:47:59 UTC
Last modified: 29 Nov 2022, 14:50:42 UTC

IIRC the solution is to run more than one task concurrently with app_config.xml file.

<app_config>
 <app>
  <name>milkyway_nbody</name>
  <max_concurrent>3</max_concurrent>
 </app>
 <app_version>
  <app_name>milkyway_nbody</app_name>
  <plan_class>mt</plan_class>
  <avg_ncpus>4.0</avg_ncpus>
  <cmdline>--nthreads 4</cmdline>
 </app_version>
</app_config>

This will run 3 n-Body tasks with each 4 threads on a 12 core CPU. If that isn't enough, you can try "--nthreads 5" without changing anything else, but you'll have to see, if that really improves the throughput. Don't do it, if the CPU also needs to feed a GPU.
ID: 74715 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
diegobo

Send message
Joined: 9 Jun 22
Posts: 2
Credit: 10,768,375
RAC: 0
Message 74716 - Posted: 29 Nov 2022, 18:38:06 UTC - in response to Message 74715.  

thanksss, 95% now
ID: 74716 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Skip Da Shu
Avatar

Send message
Joined: 11 Apr 08
Posts: 82
Credit: 61,198,546
RAC: 38,023
Message 75165 - Posted: 19 Mar 2023, 17:27:00 UTC - in response to Message 74715.  

IIRC the solution is to run more than one task concurrently with app_config.xml file.

<app_config>
 <app>
  <name>milkyway_nbody</name>
  <max_concurrent>3</max_concurrent>
 </app>
 <app_version>
  <app_name>milkyway_nbody</app_name>
  <plan_class>mt</plan_class>
  <avg_ncpus>4.0</avg_ncpus>
  <cmdline>--nthreads 4</cmdline>
 </app_version>
</app_config>

This will run 3 n-Body tasks with each 4 threads on a 12 core CPU. If that isn't enough, you can try "--nthreads 5" without changing anything else, but you'll have to see, if that really improves the throughput. Don't do it, if the CPU also needs to feed a GPU.


Can I use the nthreads option to stop getting CPU WUs that require 15 threads? Hoping so as I copied your app_config into boinc-client/projects/milkyway.cs.rpi.edu_milkyway folder... so pending a download request to see.

Yeehaw... worked! Now I can tweak it.

Thanx much, Skip
ID: 75165 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : cpu usage

©2024 Astroinformatics Group