[petsc-dev] Getting Petsc memory in use over time

Matthew Knepley knepley at gmail.com
Wed Apr 1 11:54:37 CDT 2020


On Wed, Apr 1, 2020 at 12:52 PM Jacob Faibussowitsch <jacob.fai at gmail.com>
wrote:

> Hello all,
>
> Is there a way to get memory usage in time from petsc? I know using
> -log_view gives you total amount of memory usage by the end of the program,
> but I'm interested in finding the point in time when petsc has the most
> _concurrently_ allocated amount of memory. It's fine if petsc allocated say
> 300 petabytes of memory over the program lifetime but it is useful to see
> when petsc is at its most memory intensive. Valgrind has the "--tool=massif"
> tool for this but I'm wondering if petsc has an in-house version.
>

Not really. You can look at the resident set size during the run, but that
can be misleading and you do not know where to look at it.
Using Massif is recommended.

  Thanks,

     Matt


> Best regards,
>
> Jacob Faibussowitsch
> (Jacob Fai - booss - oh - vitch)
> Cell: (312) 694-3391
>
>

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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200401/413e1537/attachment.html>


More information about the petsc-dev mailing list