[petsc-users] memory reporting

Michael Povolotskyi mpovolot at purdue.edu
Sun Mar 31 10:00:24 CDT 2013


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

So, how then it can include the external memory if it is not allocated 
by PetscMalloc() ?
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130331/990baffb/attachment.html>


More information about the petsc-users mailing list