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

Jed Brown jed at jedbrown.org
Wed Apr 1 11:56:57 CDT 2020


PETSc does not have this type of memory tracing, but it does report the peak usage.

Jacob Faibussowitsch <jacob.fai at gmail.com> writes:

> 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.
>
> Best regards,
>
> Jacob Faibussowitsch
> (Jacob Fai - booss - oh - vitch)
> Cell: (312) 694-3391


More information about the petsc-dev mailing list