<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span><br>How can i free these requests ?</span></div><div><span>For the data-structure that was created, I use MPI_Type_free(&amp;MPIText_DataType), </span><span>and I use MPI_Finalize() at the end of the program...<br></span></div><div><span><br></span></div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Pavan Balaji &lt;balaji@mcs.anl.gov&gt;<br><b><span style="font-weight: bold;">To:</span></b> Hisham Adel &lt;hosham2004@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> mpich-discuss@mcs.anl.gov<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, September 6, 2011 1:40 PM<br><b><span
 style="font-weight: bold;">Subject:</span></b> Re: [mpich2-dev] In direct memory block for handle type REQUEST, 8 handles are still allocated<br></font><br><br>[Dropping mpich2-dev from the cc list, as this is a user question, not a <br>developer question].<br><br>It sounds like your program is not freeing some MPI request that it created.<br><br>&nbsp; -- Pavan<br><br>On 09/06/2011 06:32 AM, Hisham Adel wrote:<br>&gt; Hi,<br>&gt;<br>&gt; On Ubuntu 11.04 with gcc 4.5.2., I use mpich2-1.4.1p1 with this<br>&gt; configuration options:<br>&gt; ~/mpich2-1.4/configure --enable-error-messages=all --enable-g=all<br>&gt; --enable-shared --enable-sharedlibs=gcc --without-mpe<br>&gt; --with-pm=hydra:mpd --disable-f77 --disable-fc<br>&gt;<br>&gt; After the program terminates, I receive a message related to the memory,<br>&gt; When I use MPI_Send.<br>&gt;<br>&gt; For example: The message bellow appears when I use 3 MPI_Send.<br>&gt; The first and second MPI_Send are
 used to send two separate integers.<br>&gt; The third one is used to send a special data structure created by me.<br>&gt; At the end node, the received data are printed out well.<br>&gt;<br>&gt; How can I fix it ?<br>&gt; I would be grateful if you can help me.<br>&gt;<br>&gt; Regards,<br>&gt; Hisham<br>&gt;<br>&gt; In direct memory block for handle type REQUEST, 8 handles are still<br>&gt; allocated<br>&gt; In indirect memory block 0 for handle type REQUEST, 16 handles are still<br>&gt; allocated<br>&gt; [3] 1624 at [0x08930c98],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x08930bf0], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x08930b48], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x08930450],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x089303a8], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at
 [0x08930300], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0892fc08],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x0892fb60], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0892fab8], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0892f3c0],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x0892f318], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0892f270], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0892eb78],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x0892ead0], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0892ea28], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0892e330],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at
 [0x0890f948], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0890f8a0], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0890f1a8],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x0890f100], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0890f058], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 1624 at [0x0890e960],<br>&gt; 1.4.1p1/src/mpid/ch3/src/ch3u_handle_recv_pkt.c[248]<br>&gt; [3] 8 at [0x0890e8b8], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt; [3] 8 at [0x0890e810], am/mpich2-1.4.1p1/src/mpid/ch3/src/ch3u_eager.c[439]<br>&gt;<br><br>-- <br>Pavan Balaji<br><a href="http://www.mcs.anl.gov/%7Ebalaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br><br><br></div></div></div></body></html>