Welcome to MilkyWay@home

Restricting CPUs per Work Unit


Advanced search

Message boards : Number crunching : Restricting CPUs per Work Unit
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileUnionJack

Send message
Joined: 8 Jan 10
Posts: 16
Credit: 6,618,237
RAC: 30,410
5 million credit badge9 year member badgeextraordinary contributions badge
Message 67225 - Posted: 8 Mar 2018, 14:41:32 UTC

I know I've seen this somewhere but I just can't find it, so apologies in advance.

I want MW@H to use no more than, say, 5 of my 12 CPU threads, and I know I have to set a value in a config file in the project's directory, but what, and which file? I don't want to apply the same restriction to all 8 of my projects.
Rgds
Peter.
ID: 67225 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Jim1348

Send message
Joined: 9 Jul 17
Posts: 54
Credit: 5,959,323
RAC: 23,965
5 million credit badge1 year member badge
Message 67227 - Posted: 8 Mar 2018, 16:38:28 UTC - in response to Message 67225.  
Last modified: 8 Mar 2018, 16:40:30 UTC

It is an "app_config.xml" file, placed in the project directory. This one is set up for 2 CPU cores per work unit, and a maximum of 3 work units. Also, the "fraction_done_exact" entry improves the accuracy of the estimated time.

<app_config>
<app>
<name>milkyway_nbody</name>
<max_concurrent>3</max_concurrent>
<fraction_done_exact/>
</app>
<app_version>
<app_name>milkyway_nbody</app_name>
<plan_class>mt</plan_class>
<avg_ncpus>2</avg_ncpus>
</app_version>
</app_config>


Note that you need to read the file to activate it. One way is to restart BOINC, or reboot, or use "Read config files" in the BOINC Options menu.
ID: 67227 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileUnionJack

Send message
Joined: 8 Jan 10
Posts: 16
Credit: 6,618,237
RAC: 30,410
5 million credit badge9 year member badgeextraordinary contributions badge
Message 67232 - Posted: 9 Mar 2018, 8:55:33 UTC - in response to Message 67227.  

That's what I needed to know - thank you.

Wouldn't it be good if there were a central place where all the config options were documented.
Rgds
Peter.
ID: 67232 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
alanb1951

Send message
Joined: 16 Mar 10
Posts: 36
Credit: 30,870,313
RAC: 11,089
30 million credit badge9 year member badgeextraordinary contributions badge
Message 67234 - Posted: 10 Mar 2018, 5:18:56 UTC - in response to Message 67232.  

Have a look at https://boinc.berkeley.edu/wiki/Client_configuration

It doesn't provide lots of examples(!) but there's a lot of information there.

Cheers - Al.
ID: 67234 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Restricting CPUs per Work Unit

©2019 Astroinformatics Group