rpi_logo
Restricting CPUs per Work Unit
Restricting CPUs per Work Unit
log in

Advanced search

Message boards : Number crunching : Restricting CPUs per Work Unit

Author Message
Profile UnionJack
Send message
Joined: 8 Jan 10
Posts: 16
Credit: 4,616,295
RAC: 3,111

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.

Jim1348
Send message
Joined: 9 Jul 17
Posts: 26
Credit: 1,736,676
RAC: 30,678

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.

Profile UnionJack
Send message
Joined: 8 Jan 10
Posts: 16
Credit: 4,616,295
RAC: 3,111

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.

alanb1951
Send message
Joined: 16 Mar 10
Posts: 34
Credit: 29,163,166
RAC: 10,927

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.


Post to thread

Message boards : Number crunching : Restricting CPUs per Work Unit


Main page · Your account · Message boards


Copyright © 2018 AstroInformatics Group