<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 &quot;ulimit&quot; to limit memory usage. You can also do that within an application by calling &quot;setrlimit&quot;. There is also a parameter &quot;CarpetLib::max_memory_size_MB&quot; 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 &quot;CarpetLib::max_allowed_memory_MB&quot; 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&#39;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 &lt;<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>&gt; <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div>