[petsc-users] memory reporting

Michael Povolotskyi mpovolot at purdue.edu
Sun Mar 31 10:05:40 CDT 2013


On 3/31/2013 11:02 AM, Matthew Knepley wrote:
> On Mon, Apr 1, 2013 at 2:00 AM, Michael Povolotskyi 
> <mpovolot at purdue.edu <mailto:mpovolot at purdue.edu>> wrote:
>
>     On 3/31/2013 10:19 AM, Jed Brown wrote:
>>
>>     On Sun, Mar 31, 2013 at 9:15 AM, Michael Povolotskyi
>>     <mpovolot at purdue.edu <mailto:mpovolot at purdue.edu>> wrote:
>>
>>         In our code we have our own linear system solver, optimized
>>         for a distributed 3 block diagonal matrix.
>>         We are testing its performance against MUMPS and SUPERLU_dist.
>>         We interfaced this solver with PETSc matrix and vector for
>>         the left and right hand sides of a linear system.
>>         My question: what can I do to make the memory allocated
>>         inside the solver to be reported by  PetscMemoryGetCurrentUsage?
>>
>>
>>     This function just uses the process resident size (like
>>     getrusage(3)) so that external memory is automatically included.
>>     If those packages had their own memory profiling support, we
>>     could use it, but they do not so we can't give finer grained
>>     information about the memory they are using.
>     Hi,
>     I'm a bit confused:
>     The web page about PetscMemoryGetCurrentUsage says: gets the
>     current amount of memory used that was PetscMalloc()ed
>
>
> I don't think it does:
>
> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscMemoryGetCurrentUsage.html
>
>     Matt
>
>     So, how then it can include the external memory if it is not
>     allocated by PetscMalloc() ?
>     Thank you.
>
>
>
>
> -- 
> 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
Sorry, I confused with PetscMallocGetCurrentUsage.
Now it is clear.
Michael.
Mic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130331/6062be21/attachment.html>


More information about the petsc-users mailing list