Hi, You can add a RAM parameter to your application that will allow you to control this (AddRamParameter()). You can also set the OTB_MAX_RAM_HINT environment variable (this will be documented in cookbook for next release [1].
Looking at your logs (btw those logs are pretty new in OTB, congrats for using a bleeding edge version ;)), OTB is splitting the data into very small chunks (one line at a time). This is likely to be slower than larger chunks. To get larger chunks, you can increase the RAM parameter, but you can even set the chunk size yourself using extended filenames [1]. How long is the inner pipeline of your application ? If OTB decides that it can only process one line at a time with 128 Mb, I expect the inner pipeline to be quite long (or include non-streamed filters). Hope that helps, Julien [1] https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/blob/develop/Documentation/Cookbook/rst/AdvancedUse.rst De : otb-users@googlegroups.com [mailto:otb-users@googlegroups.com] De la part de Leonardo Hardtke Envoyé : mercredi 16 mai 2018 06:47 À : otb-users <otb-users@googlegroups.com> Objet : [otb-users] How to change default RAM limit? Dear all, I am starting a new project and was investigating the likelihood of doing it in OTB. I used otb apps from python many times before but never tried to write my own apps. Part of my application will be based on the code /Examples/Segmentation/ConnectedThresholdImageFilter.cxx It compiles and runs OK, but it is a little bit slow (8 secs) for what I need (interactive application with Landsat images [7591, 7731]). The info shows it uses only 128 Mb of RAM while I have at least 4 Gb of RAM free: 2018-05-16 14:33:10 (INFO): No kwl metadata found in file fire_test.tif 2018-05-16 14:33:10 (INFO): Default RAM limit for OTB is 128 MB 2018-05-16 14:33:10 (INFO): GDAL maximum cache size is 393 MB 2018-05-16 14:33:10 (INFO): OTB will use at most 8 threads 2018-05-16 14:33:10 (INFO): Estimated memory for full processing: 3.94151e+06MB (avail.: 128 MB), optimal image partitioning: 30794 blocks 2018-05-16 14:33:10 (INFO): File fire_segment.tif will be written in 30924 blocks of 1898x1 pixels How do I configure the amount of RAM that the application uses? Thanks in advance! -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com<mailto:otb-users@googlegroups.com> To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com> For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com<mailto:otb-users+unsubscr...@googlegroups.com>. For more options, visit https://groups.google.com/d/optout. -- -- Check the OTB FAQ at http://www.orfeo-toolbox.org/FAQ.html You received this message because you are subscribed to the Google Groups "otb-users" group. To post to this group, send email to otb-users@googlegroups.com To unsubscribe from this group, send email to otb-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/otb-users?hl=en --- You received this message because you are subscribed to the Google Groups "otb-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.