<div style="font-family: Helvetica; font-size: 13px; ">I was afraid the attachment wouldn't go through. I think my point was understandable without it though. No big deal.<div><br></div><div>I didn't know about the ability to generate different keys for each process. That is one way of  solving the problem for IB. Is there any other hardware where this might come up?</div><div><br></div><div>Wesley</div></div>
                <div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, July 30, 2013 at 2:59 PM, Sur, Sayantan wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->


<div>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Wesley,<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Looks like your attachment didn’t make it through. Using IB, one can generate rkeys for each sender and just invalidate the key for the observed failed process.
 HW can just drop the “slow” message when it arrives. I’m assuming that generating keys should be fast in the future given that recently announced HW/firmware has support for on-demand registration. In any case, it is not a restriction of IB per se.<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Sayantan<o:p></o:p></span></p>
<p style="margin: 0px; "><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p style="margin: 0px; "><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> mpi3-ft-bounces@lists.mpi-forum.org [<a href="mailto:mpi3-ft-bounces@lists.mpi-forum.org">mailto:mpi3-ft-bounces@lists.mpi-forum.org</a>]
<b>On Behalf Of </b>Wesley Bland<br>
<b>Sent:</b> Tuesday, July 30, 2013 11:04 AM<br>
<b>To:</b> MPI3-FT Working Group<br>
<b>Subject:</b> [Mpi3-ft] Problem with reusing rendezvous memory buffers<o:p></o:p></span></p>
</div>
</div>
<p style="margin: 0px; "><o:p> </o:p></p>
<div>
<p style="margin: 0px; ">Pavan pointed out a problem to me yesterday related to memory buffers used with rendezvous protocols. If a process passes a piece of memory to the library in an MPI_RECV and the library gives that memory to the hardware, where it is pinned,
 we can get into trouble if one of the processes that could write into that memory fails. The problem comes from a process sending a slow message and then dying. It is possible that the other processes could detect and handle the failure before the slow message
 arrives. Then when the message does arrive, it could corrupt the memory without the application having a way to handle this. My whiteboard example is attached as an image.<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "> <img src="cid:image002.jpg@01CE8D24.97FE0830"> <o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p> </o:p></p>
</div>
<div>
<p style="margin: 0px; ">We can't just unmap memory from the NIC when a failure occurs because that memory is still being used by another process's message. Some hardware supports unmapping memory for specific senders which would solve this issue, but some don't,
 such as InfiniBand, where the memory region just has a key and unmapping it removes it for all senders.<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p> </o:p></p>
</div>
<div>
<p style="margin: 0px; ">This problem doesn't have a good solution (that I've come up with), but I did come up with a solution. We would need to introduce another error code (something like MPI_ERR_BUFFER_UNUSABLE) that would be able to tell the application that
 the buffer that the library was using is no longer usable because it might be corrupted. For some hardware, this wouldn't have to be returned, but for hardware where this isn't possible, the library could pass this error to the implementation to say that I
 need a new buffer in order to complete this operation. On the sender side, the operation would probably complete successfully since to it, the memory was still available. That means that there will be some rollback necessary, but that's up to the application
 to figure out.<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p> </o:p></p>
</div>
<div>
<p style="margin: 0px; ">I know this is an expensive and painful solution, but this is all I've come up with so far. Thoughts from the group?<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; "><o:p> </o:p></p>
</div>
<div>
<p style="margin: 0px; ">Thanks,<o:p></o:p></p>
</div>
<div>
<p style="margin: 0px; ">Wesley<o:p></o:p></p>
</div>
</div>
</div>


</div><div><div>_______________________________________________</div><div>mpi3-ft mailing list</div><div><a href="mailto:mpi3-ft@lists.mpi-forum.org">mpi3-ft@lists.mpi-forum.org</a></div><div><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>