memory reporting question

Matt Funk mafunk at nmsu.edu
Thu Sep 17 18:13:44 CDT 2009


I forgot to mention:
Some of the memory allocated in the code is from non-petsc structures. Not 
sure if that is important.

Another question:
The number reported by -memory_info, is it in bytes?

thanks
matt


On Thursday 17 September 2009, you wrote:
> Hi,
>
> I am wondering whether the -memory_info option and the
> 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.
>
> At the end of the run the -memory_info option reports:
> max process malloc()'ed: 4.00524e+08
> max petsc malloc()'ed: 1.15254e+08.
>
> 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090917/375be5a2/attachment.htm>


More information about the petsc-users mailing list