<div dir="ltr">[I received a question on how to limit the amount of memory that Cactus uses.]<div><br><div><br></div><div>You can try using "ulimit" to limit memory usage. You can also do that within an application by calling "setrlimit". There is also a parameter "CarpetLib::max_memory_size_MB" that does this. However, the Linux kernel is not good at enforcing memory limits, so this might turn out to be useless.</div><div><br></div><div>There is also a parameter "CarpetLib::max_allowed_memory_MB" that Carpet checks for all the memory that it allocates. This ignores memory allocated by other thorns (hopefully not much) as well as by external libraries (MPI message buffers, HDF5 file caching, libc's malloc implementation, etc.).</div><div><br></div><div>If one of these parameters is useful for you, please let me know.</div><div><br></div><div>-erik</div><div><br></div><div>-- <br></div></div><div class="gmail_signature">Erik Schnetter <<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div>