<html><body>
<p>On a single OS under AIX, IBM MPI does map the portion of send side memory that holds the send buffer into the receivers address space. We do this for both contiguous and non-contiguous buffers. The mapping lasts just long enough for the receive side CPU to do a memory copy from send buffer to receive buffer. (see patent <b><font size="4">7,392,256</font></b><font size="4">)</font><br>
<br>
This optimization does not have any effect on the addressability of the send buffer by the sending task. In our case, at least, this optimization does not argue against the proposal.<br>
<br>
Also, Robert and I had a chat about the byte swap trick and it seems it should be both semantically cleaner and require fewer CPU cycles to do it in the receive buffer. In the receive buffer there is no question that the application must wait for the communication to complete and the swap only needs to be done once (the message flows in with bytes in sender order and the MPI_Recv does one pass of byte swaps if required. In the send buffer trick, the swaps to receiver order must be done and then a second pass is needed to undo it)<br>
<br>
Dick <br>
<br>
Dick Treumann - MPI Team <br>
IBM Systems & Technology Group<br>
Dept X2ZA / MS P963 -- 2455 South Road -- Poughkeepsie, NY 12601<br>
Tele (845) 433-7846 Fax (845) 433-8363<br>
<br>
<br>
<tt>mpi-22-bounces@lists.mpi-forum.org wrote on 12/08/2008 04:11:45 PM:<br>
<br>
> [image removed] </tt><br>
<tt>> <br>
> Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> <br>
> Erez Haba </tt><br>
<tt>> <br>
> to:</tt><br>
<tt>> <br>
> MPI 2.2</tt><br>
<tt>> <br>
> 12/08/2008 04:13 PM</tt><br>
<tt>> <br>
> Sent by:</tt><br>
<tt>> <br>
> mpi-22-bounces@lists.mpi-forum.org</tt><br>
<tt>> <br>
> Please respond to "MPI 2.2"</tt><br>
<tt>> <br>
> Dear Alexander,</tt><br>
<tt>> </tt><br>
<tt>> As far as I recall memory remapping from the main processor to a <br>
> network device was discussed before (If I recall correctly, in the <br>
> April meeting). I think that it’s close enough to your scenario of <br>
> remapping to a different process for the purpose of this discussion.</tt><br>
<tt>> </tt><br>
<tt>> Is your case real? Do you know of systems that do that with MPI? Or <br>
> is it a hypothetical case?</tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> For the review process, we do need people to review the text; we <br>
> added this requirement in the last meeting. Regardless, it does not <br>
> prevent any other person from giving feedback on the proposal. I’m <br>
> sure that Jeff or Bill can give you’re a more formal definition of <br>
> the review process.</tt><br>
<tt>> </tt><br>
<tt>> The wiki page state that:</tt><br>
<tt>> <a href="https://svn.mpi-forum.org/trac/mpi-forum-web/wiki/mpi22/TicketWorkflow">https://svn.mpi-forum.org/trac/mpi-forum-web/wiki/mpi22/TicketWorkflow</a></tt><br>
<tt>> To advance to the first reading, a proposal must be reviewed by the <br>
> lead chapter author and three other reviewers. That review should <br>
> check the change against the standard text to ensure that the change<br>
> in context is correct; in addition, the change should be evaluated <br>
> for completeness. For changes that involve multiple chapters (but <br>
> are logically related and hence belong in a single ticket), the <br>
> respective chapter authors must review the changes in their <br>
> chapters. These reviews must be entered as comments on the ticket. <br>
> MPI 2.2 Chapter Authors </tt><br>
<tt>> </tt><br>
<tt>> </tt><br>
<tt>> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Supalov, Alexander<br>
> Sent: Saturday, December 06, 2008 11:44 AM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> </tt><br>
<tt>> Dear Erez,</tt><br>
<tt>> </tt><br>
<tt>> Thank you. I agree to respectfully disagree on this with you, for <br>
> the following two reasons:</tt><br>
<tt>> </tt><br>
<tt>> 1) The memory remapping scenario IO brought up a couple of days ago <br>
> was not discussed before the first voting as far as I can recall. If<br>
> you have proof to the contrary, I would most kindly ask you to <br>
> present it. If this cannot be done, I would say that a new issue has<br>
> been added to the discussion, and we may need to review its substance.</tt><br>
<tt>> </tt><br>
<tt>> 2) Next, I would like to see the definition of the ticket review <br>
> process that states the reviewers are supposed to only check the <br>
> proposed text for correspondence with the existing standard. My <br>
> opinion is that reviewers are there to bring both textual and <br>
> substantial concerns up when they see the need for this. So far I've<br>
> been acting on this conviction.</tt><br>
<tt>> </tt><br>
<tt>> I'm looking forward to the further discussion on the floor.</tt><br>
<tt>> </tt><br>
<tt>> Best regards.</tt><br>
<tt>> </tt><br>
<tt>> Alexander</tt><br>
<tt>> </tt><br>
<tt>> <br>
> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Erez Haba<br>
> Sent: Saturday, December 06, 2008 7:45 PM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> Thanks Alexander,</tt><br>
<tt>> </tt><br>
<tt>> I respectfully decline your proposal to suspend the review of these tickets.</tt><br>
<tt>> I don’t see any specific reference wrt text in your comments; and <br>
> you don’t bring any new issue that has not been discussed before the 1st<br>
> voting. Thus I don’t see any reason to suspend their review.</tt><br>
<tt>> </tt><br>
<tt>> Thanks,</tt><br>
<tt>> .Erez</tt><br>
<tt>> </tt><br>
<tt>> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Supalov, Alexander<br>
> Sent: Friday, December 05, 2008 4:19 PM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> </tt><br>
<tt>> Dear Erez,</tt><br>
<tt>> </tt><br>
<tt>> Thank you. I reviewed the text and found that further polishing of <br>
> its textual aspects should be suspended until the substance is <br>
> clarified. I put a comment to this effect into the ticket, as well <br>
> as into the dependent ticket #46. In my opinion, both tickets are <br>
> not yet ready to go into the standard and should go into another <br>
> round of contemplation of their possible repercussions.</tt><br>
<tt>> </tt><br>
<tt>> In both cases presumed application friendliness is traded for less <br>
> freedom of implementation. Application developers who disregard the <br>
> standard now will most likely continue to do this in the future, <br>
> possibly in some other way. Restricting the freedom of <br>
> implementation to make their life easier does not seem to be an <br>
> attractive proposition to me.</tt><br>
<tt>> </tt><br>
<tt>> If any of the issues identified so far, or comparable issues we <br>
> cannot fathom at the moment, surface up in one of the future HPC <br>
> platforms and hinder MPI adoption or transition to MPI-2.2 there, we<br>
> will have done disservice both to the MPI standard and to the <br>
> community. I hope this will bear on the minds of those who're going <br>
> to vote on these two items at the meeting.</tt><br>
<tt>> </tt><br>
<tt>> Best regards.</tt><br>
<tt>> </tt><br>
<tt>> Alexander</tt><br>
<tt>> </tt><br>
<tt>> <br>
> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Erez Haba<br>
> Sent: Saturday, December 06, 2008 12:28 AM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> Dear Alexander,</tt><br>
<tt>> </tt><br>
<tt>> It is okay and encouraged for people to comment and argue on the <br>
> proposals. You can add your comments to the ticket arguing your <br>
> important points. The forum then consider that various points and <br>
> vote on the proposal.</tt><br>
<tt>> </tt><br>
<tt>> However for the voting process we need people to review the text and<br>
> confirm that it does not conflict with the standard and it is <br>
> reasonable (from language pov) to be included in the standard.</tt><br>
<tt>> </tt><br>
<tt>> If we are willing to review the text and state that it valid for the<br>
> standard, that would be great. If you have any comments on the text <br>
> please send them to me.</tt><br>
<tt>> </tt><br>
<tt>> Thanks,</tt><br>
<tt>> .Erez</tt><br>
<tt>> </tt><br>
<tt>> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Supalov, Alexander<br>
> Sent: Friday, December 05, 2008 2:26 PM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> </tt><br>
<tt>> Dear Erez,</tt><br>
<tt>> </tt><br>
<tt>> Thank you. I'm afraid I would need to have it explained in more <br>
> detail why review may not include arguments on the substance. If <br>
> something in the proposal makes one think that the proposed matter <br>
> may be detrimental to the MPI standard and its implementations, I <br>
> consider it one's duty to point this out.</tt><br>
<tt>> </tt><br>
<tt>> Following up on your reply: the segfault situation you described <br>
> will make an MPI compliant program break. Thus, the implementation <br>
> will have to keep the send buffer mapped into the sending process <br>
> address space. This is a limitation on the MPI implementation that <br>
> should be taken into account during the voting.</tt><br>
<tt>> </tt><br>
<tt>> Another possibility that has been pointed out earlier was that the <br>
> proposed change disallows byte swap and other send buffer <br>
> conversions to be done in place. At least one historical MPI <br>
> implementation was doing this to a great avail. Who knows what is <br>
> going to happen in the future?</tt><br>
<tt>> </tt><br>
<tt>> Best regards.</tt><br>
<tt>> </tt><br>
<tt>> Alexander</tt><br>
<tt>> </tt><br>
<tt>> <br>
> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Erez Haba<br>
> Sent: Friday, December 05, 2008 11:18 PM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> I think that the idea is for the reviewers to check the text for any<br>
> mistakes and compatibility with the existing text, rather than check<br>
> for the validity of the proposal. The later as I recall is left for <br>
> the MPI forum assembly.</tt><br>
<tt>> </tt><br>
<tt>> As for your question, I’m sure that you can answer it yourself. J If<br>
> the memory is still also mapped to the original process (as with <br>
> shared memory) that everything is fine. If the memory is removed <br>
> from the original process, than the app will get an access-violation fault.</tt><br>
<tt>> (if this system works on a page boundary, to take this action it <br>
> needs to make sure that there are no other allocation on the same page)</tt><br>
<tt>> </tt><br>
<tt>> Thanks,</tt><br>
<tt>> .Erez</tt><br>
<tt>> </tt><br>
<tt>> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Supalov, Alexander<br>
> Sent: Friday, December 05, 2008 2:05 PM<br>
> To: MPI 2.2<br>
> Subject: Re: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> </tt><br>
<tt>> Hi,</tt><br>
<tt>> </tt><br>
<tt>> I'd like to review this proposal. Let's consider the following scenario:</tt><br>
<tt>> </tt><br>
<tt>> - In the MPI_Isend, MPI maps the send buffer into the address space <br>
> of the receiving process.</tt><br>
<tt>> - In the matching MPI_Recv, the receiving process makes a copy of <br>
> the mapped send buffer into the receive buffer.</tt><br>
<tt>> - Once the copy is complete, the send buffer is mapped back into the<br>
> sender address space during the wait/test call.</tt><br>
<tt>> </tt><br>
<tt>> What will happen one tries to access the send buffer in between?</tt><br>
<tt>> </tt><br>
<tt>> Best regards.</tt><br>
<tt>> </tt><br>
<tt>> Alexander</tt><br>
<tt>> </tt><br>
<tt>> <br>
> From: mpi-22-bounces@lists.mpi-forum.org [<a href="mailto:mpi-22-">mailto:mpi-22-</a><br>
> bounces@lists.mpi-forum.org] On Behalf Of Erez Haba<br>
> Sent: Friday, December 05, 2008 10:48 PM<br>
> To: MPI 2.2<br>
> Subject: [Mpi-22] please review - Send Buffer Access (ticket #45)</tt><br>
<tt>> This proposal has passed 1st voting and needs reviewers. We need 3 volunteers<br>
> to sign-off on this proposal, plus the 3 chapter authors to sign-off<br>
> on the text.</tt><br>
<tt>> </tt><br>
<tt>> The Chapter Authors for</tt><br>
<tt>> </tt><br>
<tt>> Chapter 3: Point-to-Point Communication</tt><br>
<tt>> Chapter 5: Collective Communication</tt><br>
<tt>> Chapter 11: One-Sided Communication</tt><br>
<tt>> </tt><br>
<tt>> Please add a comment to the ticket saying that you reviewed the <br>
> proposal, or please send me your comments.</tt><br>
<tt>> </tt><br>
<tt>> Send Buffer Access: <a href="https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/45">https://svn.mpi-forum.org/trac/mpi-forum-web/ticket/45</a></tt><br>
<tt>> </tt><br>
<tt>> Thanks,</tt><br>
<tt>> .Erez</tt><br>
<tt>> </tt><br>
<tt>> ---------------------------------------------------------------------</tt><br>
<tt>> Intel GmbH</tt><br>
<tt>> Dornacher Strasse 1</tt><br>
<tt>> 85622 Feldkirchen/Muenchen Germany</tt><br>
<tt>> Sitz der Gesellschaft: Feldkirchen bei Muenchen</tt><br>
<tt>> Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer</tt><br>
<tt>> Registergericht: Muenchen HRB 47456 Ust.-IdNr.</tt><br>
<tt>> VAT Registration No.: DE129385895</tt><br>
<tt>> Citibank Frankfurt (BLZ 502 109 00) 600119052</tt><br>
<tt>> </tt><br>
<tt>> This e-mail and any attachments may contain confidential material for</tt><br>
<tt>> the sole use of the intended recipient(s). Any review or distribution</tt><br>
<tt>> by others is strictly prohibited. If you are not the intended</tt><br>
<tt>> recipient, please contact the sender and delete all copies.</tt><br>
<tt>> ---------------------------------------------------------------------</tt><br>
<tt>> Intel GmbH</tt><br>
<tt>> Dornacher Strasse 1</tt><br>
<tt>> 85622 Feldkirchen/Muenchen Germany</tt><br>
<tt>> Sitz der Gesellschaft: Feldkirchen bei Muenchen</tt><br>
<tt>> Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer</tt><br>
<tt>> Registergericht: Muenchen HRB 47456 Ust.-IdNr.</tt><br>
<tt>> VAT Registration No.: DE129385895</tt><br>
<tt>> Citibank Frankfurt (BLZ 502 109 00) 600119052</tt><br>
<tt>> </tt><br>
<tt>> This e-mail and any attachments may contain confidential material for</tt><br>
<tt>> the sole use of the intended recipient(s). Any review or distribution</tt><br>
<tt>> by others is strictly prohibited. If you are not the intended</tt><br>
<tt>> recipient, please contact the sender and delete all copies.</tt><br>
<tt>> ---------------------------------------------------------------------</tt><br>
<tt>> Intel GmbH</tt><br>
<tt>> Dornacher Strasse 1</tt><br>
<tt>> 85622 Feldkirchen/Muenchen Germany</tt><br>
<tt>> Sitz der Gesellschaft: Feldkirchen bei Muenchen</tt><br>
<tt>> Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer</tt><br>
<tt>> Registergericht: Muenchen HRB 47456 Ust.-IdNr.</tt><br>
<tt>> VAT Registration No.: DE129385895</tt><br>
<tt>> Citibank Frankfurt (BLZ 502 109 00) 600119052</tt><br>
<tt>> </tt><br>
<tt>> This e-mail and any attachments may contain confidential material for</tt><br>
<tt>> the sole use of the intended recipient(s). Any review or distribution</tt><br>
<tt>> by others is strictly prohibited. If you are not the intended</tt><br>
<tt>> recipient, please contact the sender and delete all copies.</tt><br>
<tt>> ---------------------------------------------------------------------</tt><br>
<tt>> Intel GmbH</tt><br>
<tt>> Dornacher Strasse 1</tt><br>
<tt>> 85622 Feldkirchen/Muenchen Germany</tt><br>
<tt>> Sitz der Gesellschaft: Feldkirchen bei Muenchen</tt><br>
<tt>> Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer</tt><br>
<tt>> Registergericht: Muenchen HRB 47456 Ust.-IdNr.</tt><br>
<tt>> VAT Registration No.: DE129385895</tt><br>
<tt>> Citibank Frankfurt (BLZ 502 109 00) 600119052</tt><br>
<tt>> </tt><br>
<tt>> This e-mail and any attachments may contain confidential material for</tt><br>
<tt>> the sole use of the intended recipient(s). Any review or distribution</tt><br>
<tt>> by others is strictly prohibited. If you are not the intended</tt><br>
<tt>> recipient, please contact the sender and delete all copies.<br>
> _______________________________________________<br>
> mpi-22 mailing list<br>
> mpi-22@lists.mpi-forum.org<br>
> <a href="http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-22">http://lists.mpi-forum.org/mailman/listinfo.cgi/mpi-22</a><br>
</tt></body></html>