memory reporting question

Matt Funk mafunk at
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?


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: <>

More information about the petsc-users mailing list