[mpich-discuss] How to know total memory allocated by MPICH at a certain time?

Raffenetti, Kenneth J. raffenet at mcs.anl.gov
Wed Jun 5 12:29:39 CDT 2019

We don't currently have any support for this feature. MPICH internally 
tracks memory allocations (with --enable-g[=mem] configuration option), 
and has the option to dump a report at MPI_Finalize (export 
MPIR_CVAR_MEMDUMP=1) that summarizes types of allocations, # of 
allocations, and a high water mark. I don't think it would take much to 
hack an on-demand usage report, however I can't give any ETA on when it 
might be added. It might be faster if you do a draft first and post a 
pull request on Github :).


On 6/3/19 3:56 PM, Zhang, Junchao via discuss wrote:
> Hello,
>    Is there a way for users to know total memory allocated by MPICH at a 
> certain time?  I am asking that since I want to know the difference of 
> this value before/after a user function. The function is quite complex 
> and calls many other functions.
>    The background is that a PETSc user claimed a PETSc routine increased 
> RSS (resident set size) periodically when running with MPICH, but not 
> with OpenMPI.  The application itself is valgrind clean and has no 
> memory leaks.
>    Thank you.
> --Junchao Zhang
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

More information about the discuss mailing list