[petsc-dev] Petsc memory usage w/ top
    Jed Brown 
    jedbrown at mcs.anl.gov
       
    Fri Dec  2 22:16:51 CST 2011
    
    
  
On Fri, Dec 2, 2011 at 21:55, Dave Nystrom <Dave.Nystrom at tachyonlogic.com>wrote:
> When I run my code using our native, home grown cg solver with a
> cholesky preconditioner, top reports for my current problem size memory
> usage
> of 567 MB.  My current problem size is using a 2d grid that is 200x602 -
> not
> really all that big.  And yet when I am running petsc solvers, top is
> reporting 24 to 26 GB whether or not I am using cuda.
>
No, something is very wrong. It sounds like either you have a memory leak
or you do a non-scalable gather. You can run with -malloc_log to see all
the memory that PETSc has allocated. Or use a heap profiler.
Some day we will write a better tool that tracks stack traces for large
allocations only.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111202/00a272d8/attachment.html>
    
    
More information about the petsc-dev
mailing list