[petsc-users] memory reporting

Jed Brown jedbrown at mcs.anl.gov
Sun Mar 31 09:19:13 CDT 2013


On Sun, Mar 31, 2013 at 9:15 AM, Michael Povolotskyi <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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130331/13f0be76/attachment.html>


More information about the petsc-users mailing list