On Thu, Sep 17, 2009 at 6:04 PM, Matt Funk <span dir="ltr"><<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;">Hi,<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>I am wondering whether the -memory_info option and the <a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Sys/PetscMemoryGetMaximumUsage.html#PetscMemoryGetMaximumUsage" target="_blank"><span style="text-decoration: underline; color: rgb(0, 87, 174);">PetscMemoryGetMaximumUsage</span></a>() call report different things.<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>The reason i am asking is because i call the PetscMemoryGetCurrentUsage fcn in my code and it shows:<br>
5.25558e+08.<br>
</div></blockquote><div><br>This call get_rusage(), so it gives you the entire process size.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;">At the end of the run the -memory_info option reports:<br>
max process malloc()'ed: 4.00524e+08<br></div></blockquote><div><br>This is a sampling of rusage every time an object is destroyed.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;">
max petsc malloc()'ed: 1.15254e+08.<br>
</div></blockquote><div><br>This is all the memory malloced using PetscMalloc() summed.<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="font-family: 'Arial'; font-size: 12pt; font-weight: 400; font-style: normal;">So i am a little confused by those numbers unless the fcn call is the more complete picture (as said on the manual page)<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>I guess then my question is whether the -memory_info corresponds to the PetscMalloc* fcns?<br>
<p style="margin: 0px; text-indent: 0px;"><br></p>thanks<br><font color="#888888">
matt</font></div></blockquote></div><br><br clear="all"><br>-- <br>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<br>