Welcome to MilkyWay@home

cpu usage


Advanced search

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,267,551
RAC: 1,178
3 million credit badge13 year member badge
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
diego

Send message
Joined: 9 Jun 22
Posts: 2
Credit: 8,588,417
RAC: 31,436
5 million credit badge
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: 397
Credit: 17,517,035
RAC: 11,835
10 million credit badge12 year member badge
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
diego

Send message
Joined: 9 Jun 22
Posts: 2
Credit: 8,588,417
RAC: 31,436
5 million credit badge
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

Message boards : Number crunching : cpu usage

©2023 Astroinformatics Group