memory reporting question

2009-09-18 Thread Matt Funk
Ok, i am more confused now. The following is part of my code: PetscLogDouble mem; PetscMemoryGetCurrentUsage(mem); coutPetscMemoryGetCurrentUsage: mem\n; cout.flush(); PetscMemoryGetMaximumUsage(mem); coutPetscMemoryGetMaximumUsage: mem\n; cout.flush(); This is what is reported:

memory reporting question

2009-09-18 Thread Satish Balay
There is no destroy call between PetscMemoryGetCurrentUsage(), PetscMemoryGetMaximumUsage - so MaxUsage isn't updated. Perhaps it should be updated in PetscMemoryGetCurrentUsage() call aswell? Satish On Fri, 18 Sep 2009, Matt Funk wrote: Ok, i am more confused now. The following is part

memory reporting question

2009-09-17 Thread Matt Funk
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

memory reporting question

2009-09-17 Thread Matt Funk
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 reporting question

2009-09-17 Thread Matthew Knepley
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