<div dir="ltr"><div dir="ltr">On Wed, Apr 1, 2020 at 12:52 PM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com">jacob.fai@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word">Hello all,<div><br></div><div>Is there a way to get memory usage in time from petsc? I know using -log_view gives you total amount of memory usage by the end of the program, but I'm interested in finding the point in time when petsc has the most _concurrently_ allocated amount of memory. It's fine if petsc allocated say 300 petabytes of memory over the program lifetime but it is useful to see when petsc is at its most memory intensive. Valgrind has the "<span style="white-space:pre-wrap">--tool=massif" </span>tool for this but I'm wondering if petsc has an in-house version.</div></div></blockquote><div><br></div><div>Not really. You can look at the resident set size during the run, but that can be misleading and you do not know where to look at it.</div><div>Using Massif is recommended.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;word-wrap:break-word"><div>Best regards,<br><br>Jacob Faibussowitsch<br>(Jacob Fai - booss - oh - vitch)<br>Cell: (312) 694-3391</div></div>

</div>

<br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>