On Thu, Sep 17, 2009 at 6:04 PM, Matt Funk <mafunk at nmsu.edu> wrote:
> Hi, > > > I am wondering whether the -memory_info option and the > PetscMemoryGetMaximumUsage<http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Sys/PetscMemoryGetMaximumUsage.html#PetscMemoryGetMaximumUsage>() > call report different things. > > > The reason i am asking is because i call the PetscMemoryGetCurrentUsage fcn > in my code and it shows: > 5.25558e+08. > This call get_rusage(), so it gives you the entire process size. > At the end of the run the -memory_info option reports: > max process malloc()'ed: 4.00524e+08 > This is a sampling of rusage every time an object is destroyed. > max petsc malloc()'ed: 1.15254e+08. > This is all the memory malloced using PetscMalloc() summed. Matt > So i am a little confused by those numbers unless the fcn call is the more > complete picture (as said on the manual page) > > > I guess then my question is whether the -memory_info corresponds to the > PetscMalloc* fcns? > > > thanks > matt > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090917/e13dc089/attachment.htm>
