Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
useful_tips [2018/04/12 06:40]
hermann
useful_tips [2023/08/14 17:02]
admin [Increasing Performance]
Line 5: Line 5:
 To maximize the performance of Dinamica EGO execution, follow the guidelines below: To maximize the performance of Dinamica EGO execution, follow the guidelines below:
  
-  * Make sure the GUI option "Tools => Options | Advanced | Automatically detect the number of processors available"​ is selected. If you are running your models using the Console Launcher Tool, make sure the "Processors" option for each model is set to 0.+  * Make sure the GUI option "Tools => Options | Advanced | Automatically detect the number of processors available"​ is selected. If you are running your models using the command line, make sure the "-processor" option for each model is set to 0.
  
-  * If you have enough RAM memory, make sure the GUI option "Tools => Options | Advanced ​| Disable the swapping of raster maps between hard drive and memory" ​is checkedOn the Console Launcher Toolcheck the "​Disable map swapping"​ option. It will force EGO to use memory (not the hard disc) to do most calculations. It also allows the use of parallel algorithms by several operators. //Beware of [[faq#​question_p-2|memory ​limits]] whether you are using a Vista/7 32-bit SO.//+  * Set the memory ​management ​option ​("Tools" ​=> "Options" ​"Advanced"​) to "​Balanced"​ or "​Aggressive"​If your are using the command line toolyou will have to use the option "-memory-allocation-policy"​ with values 1 or 4, respectively;​
  
-  * Make sure the "​[[plugins_4|Enhancement Plugin for Dinamica EGO]]" extension is installed and the GUI option "Tools => Options | Advanced | Disable compilation of native expressions"​ is unchecked. On the Console Launcher, uncheck "​Disable expression compilation"​.+  * Make sure the "​[[plugins_4|Enhancement Plugin for Dinamica EGO]]" extension is installed and the GUI option "Tools => Options | Advanced | Disable compilation of native expressions"​ is unchecked.
  
-  * Make sure the GUI option "Tools => Options | System | Message log level" is set to Result. //​This ​is really important ​when running models with lots of loop containers like [[Repeat]], [[While]], [[For]] etc//.+  * Make sure the GUI option "Tools => Options | System | Message log level" is set to Result. //​This ​helps when running models with lots of loop containers like [[Repeat]], [[While]], [[For]] etc//.
  
   * Avoid the definition of maps using [[cell type type|cell type]] "1 Bit Integer"​. This cell type saves memory, but it also has a huge negative impact in performance.   * Avoid the definition of maps using [[cell type type|cell type]] "1 Bit Integer"​. This cell type saves memory, but it also has a huge negative impact in performance.
Line 40: Line 40:
  
 To read a file located in a [[wp>​Zip_(file_format)|zip]] file, you have to use a [[Workdir]] container. Then, edit the [[Workdir]] and use the [[wp>​Zip_(file_format)|zip]] file name in the "​folder"​ input port. Place a file loader ([[Load Map]], [[Load Weights]] etc) inside the [[Workdir]] container. The file name mentioned in the file loader must match the name used by the file contained in the [[wp>​Zip_(file_format)|zip]] archive. To read a file located in a [[wp>​Zip_(file_format)|zip]] file, you have to use a [[Workdir]] container. Then, edit the [[Workdir]] and use the [[wp>​Zip_(file_format)|zip]] file name in the "​folder"​ input port. Place a file loader ([[Load Map]], [[Load Weights]] etc) inside the [[Workdir]] container. The file name mentioned in the file loader must match the name used by the file contained in the [[wp>​Zip_(file_format)|zip]] archive.
- 
-The example ''​run_lucc_northern_mato_grosso/​run_roads_with_and_workdirs'',​ available as part of the Dinamica EGO installation,​ reads its inputs from a [[wp>​Zip_(file_format)|zip]] file. Check it out to see how that works in practice.