ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 14 Jan 2019 07:34:54 -0600max memory used during a processhttp://ask.sagemath.org/question/44944/max-memory-used-during-a-process/ In Mathematica, the command `MaxMemoryUsed[computation]` tells you what the largest usage of RAM was when executing some `computation`. Is there a similar comand in SageMath?Mon, 07 Jan 2019 15:00:12 -0600http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/Comment by Iguananaut for <p>In Mathematica, the command <code>MaxMemoryUsed[computation]</code> tells you what the largest usage of RAM was when executing some <code>computation</code>. Is there a similar comand in SageMath?</p>
http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45044#post-id-45044Off the top of my head, no, I don't think so. One could write such a utility (in fact such utilities likely already exist outside `sage`) to track memory usage of a process over some period of time (e.g. start and stop of some computation). It would also have to track memory usage across child processes as many computations can launch subprocesses, either to run other programs, or to parallelize the computation. This make computing the exact memory usage a bit tricky since parallel processes in particular will use a lot of shared memory.Mon, 14 Jan 2019 07:31:35 -0600http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45044#post-id-45044Comment by Iguananaut for <p>In Mathematica, the command <code>MaxMemoryUsed[computation]</code> tells you what the largest usage of RAM was when executing some <code>computation</code>. Is there a similar comand in SageMath?</p>
http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45045#post-id-45045Although I've never used it directly myself, I believe I've seen some people produce reports from [memory-profiler](https://pypi.org/project/memory-profiler/) before.Mon, 14 Jan 2019 07:34:54 -0600http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45045#post-id-45045Comment by Leon for <p>In Mathematica, the command <code>MaxMemoryUsed[computation]</code> tells you what the largest usage of RAM was when executing some <code>computation</code>. Is there a similar comand in SageMath?</p>
http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45018#post-id-45018Any ideas?Fri, 11 Jan 2019 11:08:26 -0600http://ask.sagemath.org/question/44944/max-memory-used-during-a-process/?comment=45018#post-id-45018