[mpich-devel] memory profiling HOWTO?

Jim Dinan dinan at mcs.anl.gov
Fri Feb 22 09:28:29 CST 2013


Jeff,

Which memory are you interested in -- memory the application allocates, 
or memory that MPICH allocates?  If the former, you can use the PMPI 
interface to hook MPI_Alloc/Free_mem.  If you are interested in MPICH 
internal memory use, Dave can probably give the most informed answer.  I 
would probably just modify MPIU_Malloc.

  ~Jim.

On 2/22/13 8:44 AM, Jeff Hammond wrote:
> Is there any documentation of how to properly instrument MPICH with
> memory profiling?  I understand MPIU_MALLOC allows me to do this.
>
> My goal is to merely print out every time memory is allocated larger
> than a particular size.  I'd also like the rank to show up in the
> output.
>
> Please RTM me if the M exists.  Source comments are also a good M if
> they are correct and sufficiently complete.
>
> Thanks!
>
> Jeff
>


More information about the devel mailing list