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 :). Ken 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 [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss