Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
useful_tips [2013/09/26 20:24] admin |
useful_tips [2023/08/14 16:34] 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 | 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 raster map swapping" is checked. On the Console Launcher Tool, check 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 Windows XP/Vista/7 32 bit SO.// | + | * 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 checked. On the Console Launcher Tool, check 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.// |
- | * Make sure the "[[mingw_plugin|MinGW for Dinamica EGO]]" extension is installed and the GUI option "Tools -> Options | Advanced | Disable native expression compilation" 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 | General | Main 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 27: | Line 27: | ||
You can use the following procedure to minimize the possibility of a model loss during the development: | You can use the following procedure to minimize the possibility of a model loss during the development: | ||
- | Edit "Tools -> Options | General | Model Backup" and check "Also save a backup upon saving a model". Then, chose a "Backup Folder" where Dinamica EGO will place all model copies. If you leave this field empty, the model copy will be placed in the same folder where the original model is being stored. | + | Edit "Tools => Options | General | Model Backup" and check "Create backup copy of the current model script upon saving". Then, chose a "Backup Folder" where Dinamica EGO will place all model copies. If you leave this field empty, the model copy will be placed in the same folder where the original model is being stored. |
- | After you configure this option, an additional copy of the model will be saved in the corresponding folder every time you click "Save" or "Save As". If you want to restore the model to a previous state, just open the backup file using Dinamica EGO and use "Save As" to write the file back to its original location. //Beware that you can not simply copy the file, otherwise all model inputs and outputs will point to the wrong folder.// | + | After you configure this option, the content of any files being overwritten will be copied every time you click "Save" or "Save As". If you want to restore the model to a previous state, just copy the corresponding files back from the back folder to their original location. |
===== Loading Files from Zip Files ===== | ===== Loading Files from Zip Files ===== | ||
- | Maps, tables, lookup tables and Weights of Evidence files can be loaded from [[wp>Zip_(file_format)|zip]] files. | + | Maps, tables, lookup tables and Weights of Evidence files can be loaded from [[wp>Zip_(file_format)|zip]] files. |
- | 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 the [[Load Map]], [[Load Weights]] etc inside the [[Workdir]] container. The file name mentioned in the [[Load Map]], [[Load Weights]] etc must be the name used by the file contained inside the [[wp>Zip_(file_format)|zip]] archive. | + | [[wp>Zip_(file_format)|Zip]] files are useful to pack all files used by a model in a single archive. However, zipping all files does not increase the amount of data that Dinamica EGO can handle simultaneously. Behind the curtains, Dinamica unzips the files into a temporary folder and loads them from there. |
- | The example ''run_lucc_northern_mato_grosso/run_roads_with_and_workdirs'', available as part of the Dinamica installation, reads its inputs from a [[wp>Zip_(file_format)|zip]] file. Check it out to see how that works in practice. | + | [[wp>Zip_(file_format)|Zip]] files are also limited to 4 GBytes in Dinamica. If you use a file outside the zip archive, these files can be much bigger than that. |
+ | |||
+ | 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. | ||