[petsc-users] memory reporting

Matthew Knepley knepley at gmail.com
Sun Mar 31 09:20:47 CDT 2013


On Mon, Apr 1, 2013 at 1:15 AM, Michael Povolotskyi <mpovolot at purdue.edu>wrote:

>  On 3/31/2013 10:03 AM, Jed Brown wrote:
>
> On Sun, Mar 31, 2013 at 8:58 AM, Michael Povolotskyi <mpovolot at purdue.edu>wrote:
>
>> Dear PETSc developers,
>> I have the following question.
>> PETSc has memory reporting system. Does it report the memory allocated
>> inside a library (e.g MUMPS) when I call it from PETSc program?
>>
>
>  It does not attribute it per object, though it is part of the total
> memory used by a process (e.g., PetscMemoryGetCurrentUsage, or
> -malloc_info).
>
>
>>
>> Thank you,
>> Michael.
>>
>
>   Thank you.
> In our code we have our own linear system solver, optimized for a
> distributed 3 block diagonal matrix.
>

Does it do block elimination, or is it Jacobi/GS?


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

It is automatically reported there, since we just query the OS. You can
report the memory used in your solver
to Petsc logging using PetscLogObjectMemory().

  Thanks,

     Matt


> Thank you,
> Michael.
>



-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130401/91fc384e/attachment-0001.html>


More information about the petsc-users mailing list