<div dir="ltr"><div dir="ltr"><br><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 1, 2020 at 12:00 PM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com">jacob.fai@gmail.com</a>> wrote:<br></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="overflow-wrap: break-word;"><blockquote type="cite"> but it does report the peak usage.</blockquote><div><br></div>On default -log_view? Or is it another option? I have always been using the below from -log_view, I always thought it was total memory usage.</div></blockquote><div>Try -log_view -log_view_memory created by Barry.</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="overflow-wrap: break-word;"><div><br></div><div>Memory usage is given in bytes:<br><br>Object Type Creations Destructions Memory Descendants' Mem.<br>Reports information only for process 0.<br><br>--- Event Stage 0: Main Stage<br><br> Matrix 11 11 38060 0.<br> Vec Scatter 3 3 2400 0.<br> Vector 6 6 9776 0.<br> Index Set 12 12 10776 0.<br> Star Forest Graph 3 3 3360 0.<br> Viewer 4 3 2520 0.<br><div><br></div><div><br></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"><div>Best regards,<br><br>Jacob Faibussowitsch<br>(Jacob Fai - booss - oh - vitch)<br>Cell: (312) 694-3391</div></div>
</div>
<div><br><blockquote type="cite"><div>On Apr 1, 2020, at 11:56 AM, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> wrote:</div><br><div><div>PETSc does not have this type of memory tracing, but it does report the peak usage.<br><br>Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a>> writes:<br><br><blockquote type="cite">Hello all,<br><br>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 "--tool=massif" tool for this but I'm wondering if petsc has an in-house version.<br><br>Best regards,<br><br>Jacob Faibussowitsch<br>(Jacob Fai - booss - oh - vitch)<br>Cell: (312) 694-3391<br></blockquote></div></div></blockquote></div><br></div></div></blockquote></div></div>