Message boards : ATLAS application : app_config to manage Number of Cores seems to work fine
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Yeti
Volunteer moderator
Avatar

Send message
Joined: 2 Sep 04
Posts: 455
Credit: 201,266,309
RAC: 24,684
Message 29016 - Posted: 2 Mar 2017, 17:52:02 UTC
Last modified: 2 Mar 2017, 17:54:42 UTC

For those, that are used to work with an app_config, I just tested it here and it seems to work fine.

My preference is configured to use 2 Cores, my app_config.xml allows 4 Cores and I downloaded an 4-Core-WU.

For those that are interested:
<app_config>
 <project_max_concurrent>2</project_max_concurrent>
<app_version>
    <app_name>ATLAS</app_name>
    <version_num>100</version_num>
    <platform>windows_x86_64</platform>
    <avg_ncpus>4.000000</avg_ncpus>
    <max_ncpus>4.000000</max_ncpus>
    <plan_class>vbox64_mt_mcore_atlas</plan_class>
    <api_version>7.7.0</api_version>
    <cmdline>--memory_size_mb 7500</cmdline>
    <dont_throttle/>
    <is_wrapper/>
    <needs_network/>
</app_version>
</app_config>

Note, my memory-setting is higher as needed.

The latest formular for calculating memory size is 1,4 GB + (NumberOfCores) * 0,8 GB

so for a 4-Core-WU it is: 1,4 GB + 4*0,8 GB = 4,6 GB


Supporting BOINC, a great concept !
ID: 29016 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2534
Credit: 254,142,812
RAC: 54,845
Message 29020 - Posted: 2 Mar 2017, 19:23:26 UTC - in response to Message 29016.  

Hello Yeti,

Why do you place the following tags in your app_config.xml?

<version_num>100</version_num>
<platform>windows_x86_64</platform>
<max_ncpus>4.000000</max_ncpus>
<api_version>7.7.0</api_version>
<dont_throttle/>
<is_wrapper/>
<needs_network/>


According to the official BOINC documentation http://boinc.berkeley.edu/wiki/client_configuration#Application_configuration the app_config.xml has the following format/tags:

<app_config>
   [<app>
      <name>Application_Name</name>
      <max_concurrent>1</max_concurrent>
      [<fraction_done_exact/>]
      <gpu_versions>
          <gpu_usage>.5</gpu_usage>
          <cpu_usage>.4</cpu_usage>
      </gpu_versions>
    </app>]
   ...
   [<app_version>
       <app_name>Application_Name</app_name>
       [<plan_class>mt</plan_class>]
       [<avg_ncpus>x</avg_ncpus>]
       [<ngpus>x</ngpus>]
       [<cmdline>--nthreads 7</cmdline>]
   </app_version>]
   ...
   [<project_max_concurrent>N</project_max_concurrent>]
</app_config>


A view into the BOINC source code (app_config.cpp of version 7.6.31) shows that other tags will either be ignored or cause a warning message.
ID: 29020 · Report as offensive     Reply Quote
Profile Yeti
Volunteer moderator
Avatar

Send message
Joined: 2 Sep 04
Posts: 455
Credit: 201,266,309
RAC: 24,684
Message 29029 - Posted: 3 Mar 2017, 6:47:49 UTC - in response to Message 29020.  
Last modified: 3 Mar 2017, 6:48:13 UTC

Hello Yeti,

Why do you place the following tags in your app_config.xml?

<version_num>100</version_num>
<platform>windows_x86_64</platform>
<max_ncpus>4.000000</max_ncpus>
<api_version>7.7.0</api_version>
<dont_throttle/>
<is_wrapper/>
<needs_network/>


A view into the BOINC source code (app_config.cpp of version 7.6.31) shows that other tags will either be ignored or cause a warning message.

HM, I copied the whole section from client_state.xml to avoid missing an important parameter.

As long as the BOINC-Client dosn't say unknown parameter I think all is fine


Supporting BOINC, a great concept !
ID: 29029 · Report as offensive     Reply Quote
Crystal Pellet
Volunteer moderator
Volunteer tester

Send message
Joined: 14 Jan 10
Posts: 1419
Credit: 9,474,701
RAC: 2,980
Message 29040 - Posted: 3 Mar 2017, 11:12:56 UTC - in response to Message 29029.  

HM, I copied the whole section from client_state.xml to avoid missing an important parameter.

As long as the BOINC-Client dosn't say unknown parameter I think all is fine

Hello Yeti,

I agree with computezrmle to use only the needed parameters in the app_config.xml to avoid confusing by other crunchers.

The app_version part of the xml for ATLAS only needs:

 <app_version>
  <app_name>ATLAS</app_name>
  <plan_class>vbox64_mt_mcore_atlas</plan_class>
  <avg_ncpus>4.000000</avg_ncpus>
  <cmdline>--memory_size_mb 4600</cmdline>
 </app_version>


One could add the line <cmdline>--nthreads 4.000000</cmdline>
but with the <avg_ncpus> also the right cored VM is created and let BOINC know to reserve 4 cores for the task.
ID: 29040 · Report as offensive     Reply Quote
Filipe

Send message
Joined: 9 Aug 05
Posts: 36
Credit: 7,698,293
RAC: 0
Message 39859 - Posted: 8 Sep 2019, 10:02:18 UTC
Last modified: 8 Sep 2019, 10:22:51 UTC

Can i change the number of CPU-cores used whitin a wu on app_config, on middle of a task without killing it?
ID: 39859 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2534
Credit: 254,142,812
RAC: 54,845
Message 39860 - Posted: 8 Sep 2019, 11:01:41 UTC - in response to Message 39859.  

Can i change the number of CPU-cores used whitin a wu on app_config, on middle of a task without killing it?

This might technically be possible although not by just changing the app_config.xml.
Nonetheless it is not recommended for the following reasons:

1.
The server planned your tasks according to the settings when work has been requested.
Hence a task requested as 2-core task would remain a 2-core task from your BOINC client's perspective.

2.
A task that has already set up it's worker threads inside the VM would continue running the same worker threads after the resume.
It would not add nor cancel any threads.


It is recommended to set your client to NNT (No New Tasks) and wait until all work is done.
Then change the setup and finally request fresh work.
ID: 39860 · Report as offensive     Reply Quote

Message boards : ATLAS application : app_config to manage Number of Cores seems to work fine


©2024 CERN