<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; margin: 0px; line-height: auto;"><br></div> <br><p style="color:#A0A0A8;">On July 16, 2013 at 6:25:46 PM, George Bosilca (bosilca@icl.utk.edu) wrote:</p> <div><blockquote type="cite" style="color: rgb(0, 0, 0); font-family: helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); border-left-style: solid; border-width: 1px; margin-left: 0px; padding-left: 10px; "><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Jim,</div><div><br></div><div>On Jul 16, 2013, at 22:09 , Jim Dinan <<a href="mailto:james.dinan@gmail.com">james.dinan@gmail.com</a>> wrote:</div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi George,<div><br></div><div>Thanks for the detailed response.  Let's set aside the MPI_Comm_create_group discussion.  You raised a good point about the difficulty in reaching consensus on the group argument that has not come up before.  If there is some mechanism for consensus, then Comm_create_group will just work.</div></div></blockquote><div><br></div><div>We can hardly settle here. I was not trying to pinpoint the difficulty of using MPI_Comm_create_group to build a new communicator, I was gently trying to suggest the impossibility of doing so with only the MPI_Comm_create_group call.</div><div><br></div><div>Using MPI_Comm_agree to agree that the creation of the communicator based on the group (MPI_Comm_create_group) was successful requires you to have a __valid__ (potentially revoked) communicator to do so. You can't use the old communicator, as you will not be able to make a difference between the processes that failed before and after the MPI_Comm_create_group. Similarly, you can't use the newly created communicator either, as it might be incomplete (you did not have an agreement on the group of dead processes on the first place).</div><div><br></div><div>However, as I mentioned before, there are scenarios where you can use this function if complemented with a shrink (that will in fact build both the consistent knowledge about the dead processes and a communicator to further agree on).</div><div><br></div><blockquote type="cite"><div dir="ltr"><div>I still have some remaining concerns about supporting a usage model where the communicator has "holes" in it.</div><div><br></div><div>The group query routine that I was thinking of is a local query, which would return information on which processes I know to have failed.</div></div></blockquote><div><br></div><div>Any particular reason the current get_acked() is not satisfying?</div><br><blockquote type="cite"><div dir="ltr"><div> An application won't be able to track failures that occur within libraries,</div></div></blockquote><div><br></div><div>Within libraries?</div><br><blockquote type="cite"><div dir="ltr"><div>so this query is necessary to find out what is locally known.  I assume that MPI will have to track this information anyway, in case you attempt to communicate with a failed process.</div></div></blockquote><div><br></div><div>There is no such requirement from the MPI library in the current proposal. In many applications global knowledge is not required, so there is no reason to propagate such information and force the associated overhead on the application. In these applications the failure will eventually be discovered if a communication with the dead process is initiated.</div><div><br></div><blockquote type="cite"><div dir="ltr"><div>Consensus.  Is it true that right now, that the only ways to reach consensus on the failed group is to revoke the communicator, shrink it, and then compare groups, or to implement your own consensus protocol on top of send/recv?  The concern I have is that the revoke method requires the application to destroy the old communicator and renumber the processes, which the programmer may not want to do.  The ranks could have some important meaning to the application.</div></div></blockquote><div><br></div><div>As I hinted in my previous email there are many other ways to turn around this problem. You can use topologies, or you can use a shadow communicator that will deal with the revoke operations, while your "working" communicator (which is meant only for point-to-point communications) remains "unrevoked" (but eventually the failures will be acknowledged).</div><br><blockquote type="cite"><div dir="ltr"><div>I am probably going to regret asking this, but is it possible to include an MPI_Comm_resume() function that re-activates a revoked communicator with holes in it?</div></div></blockquote><div><br></div><div>For many reasons related to the complexities of distributed systems (lack of synchronization in the error detection, divergent view of the entire system from each process) this operation must have a consensus meaning. Thus in terms of cost it is similar to MPI_Comm_shrink (except the reordering of the processes). It might provide some limited benefit, for people that want to use such type of scenario. Now, if by doing the re-enable you expect that the communicator will behave as a freshly new communicator and everything MPI-related, file, one-sided, collective will just work on this communicator with holes … then we're talking about something so complex that I would not even dare considering for inclusion in the standard.</div></div></div></div></div></div></span></blockquote></div><p>I don't think that was the intent here. I think the intent was to essentially put the communicator into the same state as is was before the revoke, where the difference is that now all of the processes in the communicator know about the failure. This means that they can continue pt2pt, cannot use collectives, can use wildcards (if they've called FAILURE_ACK), and whatever else we say you can do after a failure. The use case we're trying to enable is to say that you can notify the other processes of a failure (global failure knowledge and the deadlock prevention that comes with it) without having to create a new communicator. Yes, it will be as expensive as revoking and shrinking the communicator, but the difference is that you don't have to shrink the communicator to make it work. If you want a communicator with holes, you use your existing communicator. If you want a communicator without holes, you shrink (or call COMM_CREATE_GROUP).</p><p><br></p><p>Wesley</p><div><blockquote type="cite" style="color: rgb(0, 0, 0); font-family: helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); border-left-style: solid; border-width: 1px; margin-left: 0px; padding-left: 10px; "><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><br class="Apple-interchange-newline"><br></div><div>  George.</div><div><br></div><blockquote type="cite"><div dir="ltr"><div><br></div><div> ~Jim.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 15, 2013 at 9:28 AM, George Bosilca<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:bosilca@icl.utk.edu" target="_blank">bosilca@icl.utk.edu</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; "><div style="word-wrap: break-word; ">Jim, let me try to articulate a comprehensible answer without going too deep into technicalities.<br><div><div class="im"><div><br></div><div>On Jul 10, 2013, at 16:07 , Jim Dinan <<a href="mailto:james.dinan@gmail.com" target="_blank">james.dinan@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Hi George,<div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; "><div style="word-wrap: break-word; "><div><blockquote type="cite"><div dir="ltr"><div>Re: comm_create and friends -- I'd be interested in hearing the result of the F2F discussion.  I've been the person complaining about this, so if it would be helpful for me to join you guys over the phone next Friday, let me know.</div></div></blockquote><div><br></div></div><div>I did not have the opportunity to hear your complaint about this. Can you please summarize it here on the mailing list to make sure 1) that we are all at the same level of understanding; 2) the complaint reach all the interested audience and 3) we have the opportunity to address it as accurately as possible.</div></div></blockquote><div><br></div><div>I'm concerned that the current spec is missing a few features that are needed for the usage model where users continue to use a communicator with "holes" in it.  In order for this model to work well, users must be able to query which processes are known to have failed in a given communicator.</div></div></div></div></div></blockquote><div><br></div></div>The proposed FT framework was designed to address a wide spectrum of possible approaches, by covering two extreme cases, on one side where global knowledge and global actions are required and on the other side where only local knowledge and local actions are required, while providing building blocks for all other intermediary approaches.<br><br>Looking specifically at your concern it seems that you want to continue to use a communicator with holes while avoiding the revoke, but expect to need global knowledge about the failures. Thus you propose to have a special call GET_ALL_FAILED that provides you the list of failed processes. Interesting idea but unfortunately it has pitfalls.<br><br>- In order to be able to use the list of failed processes to create new communicators using the COMM_CREATE_GROUP this list should be identical on all processes. Therefore the call to GET_ALL_FAILED is similar to an agreement (collective and must have a consensus meaning). Then the obvious question will be how do you synchronize all the living processes to call this blocking function together? This is why you need an atomic broadcast (guaranteed delivery despite failure) that can interrupt the normal behavior of the application. And this is typically the goal of the revoke functionality. You could implement your own protocol of failure knowledge propagation inside your communication scheme, but imagine how much your code will be impacted by this: at any point where you do a communication, you must be able to receive either a normal message of your application, or a notification message.</div><div><br><blockquote type="cite"><blockquote type="cite">without the revoke functionality (the knowledge about the fault is only propagated to processes that directly communicate with the dead nodes)? Do you really intend to implement your own protocol of failure knowledge propagation integrated in the application?<div class="im"><br><br><blockquote type="cite">Given the current interface, users are not able to query<br>the set of failed processes without creating a new communicator and<br>translating ranks, via MPI_Comm_shrink. This requires the user to first<br>revoke the parent communicator, which is something we want to avoid.<br></blockquote><br></div>Again the revoke is an optional step. If you have a special way to have a consensus over all still alive processes about the list of dead processes, you just have to use it. However, for the sake of performance and portability we strongly believe that MPI should propose such a functionality for the users, that unlike you, don't want to implement their own consensus.<div class="im"><br><br><blockquote type="cite">Along these same lines, we should also ensure that MPI_Comm_create_group<br>will work as expected when a communicator with holes is used, provided<br>the output group excludes failed processes (i.e., the operation is not<br>collective over any failed processes). <br></blockquote><br></div>I fail to see your concern here as I can't imagine which of the part of the current proposal prevent you from using such an approach. So from a technical point of view this approach should work in the context of the current proposal<br><br>Now from a performance point of view the story is slightly different. While in the case of MPI_Comm_shrink highly optimized implementations have the opportunity for merge all the stage of the operation (consensus over the dead processes and creation of a new communicator) in a single step, your approach will have to validate (via an agreement) that the newly created communicator is indeed valid (aka, no new failure has been discovered during the communicator creation).<br></blockquote></blockquote><div class="im"><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> Given the current interface, users are not able to query the set of failed processes without creating a new communicator and translating ranks, via  MPI_Comm_shrink.  This requires the user to first revoke the parent communicator, which is something we want to avoid.</div></div></div></div></blockquote><div><br></div></div>Again the revoke is an optional step. If you have a special way to have a consensus over all still alive processes about the list of dead processes, you just have to use it. However, for the sake of performance and portability we strongly believe that MPI should propose such a functionality for the users, that unlike you, don't want to implement their own consensus.</div><div><br></div><div><div class="im"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Along these same lines, we should also ensure that MPI_Comm_create_group will work as expected when a communicator with holes is used, provided the output group excludes failed processes (i.e., the operation is not collective over any failed processes).</div></div></div></div></blockquote><div><br></div></div><div>I fail to see your concern here as I can't imagine which of the part of the current proposal prevent you from using such an approach. So from a technical point of view this approach should work in the context of the current proposal<br><br>Now from a performance point of view the story is slightly different. While in the case of MPI_Comm_shrink highly optimized implementations have the opportunity for merge all the stage of the operation (consensus over the dead processes and creation of a new communicator) in a single step, your approach will have to validate (via an agreement) that the newly created communicator is indeed valid (aka, no new failure has been discovered during the communicator creation). And to do so, you will have to have a communicator without holes, because agree will not provide you appropriate information on communicators with holes.</div><div class="im"><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> This might not require any text changes, unless we want to allow this operation on revoked communicators.</div></div></div></div></blockquote><div><br></div></div><div>At this point I get confused as I was under the impression that your goal was to avoid revoking the communicator?<br><br>Anyway, we do not want original meaning of COMM_CREATE_GROUP to be tainted by FT semantic. Especially true for comm_create_group which is supposed to be super scalable. See above for why it serves little purpose anyway, if it is not to become an expensive agreement operation.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>  George.</div><br></font></span><blockquote type="cite"><div class="im"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; "><div style="word-wrap: break-word; "><div><blockquote type="cite"><div dir="ltr"><div>Re: Roadmap -- Before a reading, it might be helpful to give a brief presentation to the Forum again giving the high level ideas and justifications for each new addition to the FT proposal.  I think it's been long enough that people have forgotten the details and this might help them feel more comfortable that the proposal is complete and self-consistent.</div></div></blockquote><div><br></div></div><div>There was at least one [more or less] "brief" presentation of the FT proposal at every meeting for the last two years. I would even emphasize the fact that over the last year no major modification of the proposal has been put forward, fact that might indicate a certain level of completeness and self-consistency. </div></div></blockquote><div><br></div><div>I'm just trying to convey the temperature in the room, as I felt it.  I think a 15 minute, very high level warm-up immediately before the reading on the usage models, big ideas, and conventions would go a long way toward prepping the audience.</div><div><br></div><div> ~Jim.</div></div></div></div></div><div class="im">_______________________________________________<br>mpi3-ft mailing list<br><a href="mailto:mpi3-ft@lists.mpi-forum.org" target="_blank">mpi3-ft@lists.mpi-forum.org</a><br><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft</a></div></blockquote></div><br></div><br>_______________________________________________<br>mpi3-ft mailing list<br><a href="mailto:mpi3-ft@lists.mpi-forum.org">mpi3-ft@lists.mpi-forum.org</a><br><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft" target="_blank">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft</a><br></blockquote></div><br></div>_______________________________________________<br>mpi3-ft mailing list<br><a href="mailto:mpi3-ft@lists.mpi-forum.org">mpi3-ft@lists.mpi-forum.org</a><br><a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi3-ft</a></blockquote></div><br></div></div></div><br></div></span></blockquote><br class="Apple-interchange-newline"></div> <div class="" id="bloop_sign_1374083728107662080"><br><br><span style="font-family:helvetica,arial;font-size:13px"></span><span></span></div></body></html>