[OMPI devel] RFC: rewrite of ORTE OOB
Hi folks As most of you know, I have been working for quite some time on rewriting the OOB. It is now getting close to being ready to be committed. Unfortunately, I am changing jobs on May 20th (starting a position at Intel) that will cause a hopefully short "service interruption" in my ability to contribute code to OMPI. I have started the legal paperwork to resolve that situation and have the backing of my new management, but these things always take time. Ordinarily, I would simply hold off the commit until the paperwork was completed. However, after talking with a few people in the community, the changes are important and desirable enough to get this into the trunk without the indefinite delay. I can continue to help debug even after my status changes - just cannot directly contribute code. So I have committed the code to the OMPI repository in a public temporary branch. Once the community believes the code is ready, Jeff can merge it back to the trunk if I'm not able to do so. WHAT:Rewrite of ORTE OOB WHY: Support asynchronous progress and a host of other features WHEN:TBD (will discuss at weekly telecon and/or on mailing list) SYNOPSIS: The current OOB has served us well, but a number of limitations have been identified over the years. Specifically: * it is only progressed when called via opal_progress, which can lead to hangs or recursive calls into libevent (which is not supported by that code) * we've had issues when multiple NICs are available as the code doesn't "shift" messages between transports - thus, all nodes had to be available via the same TCP interface. * the OOB "unloads" incoming opal_buffer_t objects during the transmission, thus preventing use of OBJ_RETAIN in the code when repeatedly sending the same message to multiple recipients * there is no failover mechanism across NICs - if the selected NIC (or its attached switch) fails, we are forced to abort * only one transport (i.e., component) can be "active" The revised OOB resolves these problems: * async progress is used for all application processes, with the progress thread blocking in the event library * each available NIC is supported by its own TCP module. The ability to asynchronously progress each module independently is provided, but not enabled by default (a runtime MCA parameter turns it "on") * multi-address NICs (e.g., a NIC with both an IPv4 and IPv6 address, or with virtual interfaces) are supported - reachability is determined by comparing the contact info for a peer against all addresses within the range covered by the address/mask pairs for the NIC. * a message that arrives on one NIC is automatically shifted to whatever NIC that is connected to the next "hop" if that peer cannot be reached by the incoming NIC. If no TCP module will reach the peer, then the OOB attempts to send the message via all other available components - if none can reach the peer, then an "error" is reported back to the RML, which then calls the errmgr for instructions. * opal_buffer_t now conforms to standard object rules re OBJ_RETAIN as we no longer "unload" the incoming object * NIC failure is reported to the TCP component, which then tries to resend the message across any other available TCP NIC. If that doesn't work, then the message is given back to the OOB base to try using other components. If all that fails, then the error is reported to the RML, which reports to the errmgr for instructions * obviously from the above, multiple OOB components (e.g., TCP and UD) can be active in parallel * the matching code has been moved to the RML (and out of the OOB/TCP component) so it is independent of transport * routing is done by the individual OOB modules (as opposed to the RML). Thus, both routed and non-routed transports can simultaneously be active * all blocking send/recv APIs have been removed. Everything operates asynchronously. KNOWN LIMITATIONS: * although provision is made for component failover as described above, the code for doing so has not been implemented yet. At the moment, if all connections for a given component fail, the errmgr is notified of a "lost connection", which by default results in termination of the job if it was a lifeline * the IPv6 code is present and compiles, but has not been tested as I don't have access to any IPv6-enabled cluster * routing is performed at the individual module level, yet the active routed component is selected on a global basis. We probably should update that to reflect that different transports may need/choose to route in different ways * obviously, not every error path has been tested nor necessarily covered * determining abnormal termination is more challenging than in the old code as we now potentially have multiple ways of connecting to a process. Ideally, we would declare "connection failed" when *all* transports can no longer reach the process, but that requires some additional (possibly comp
[OMPI devel] Openib + common/verbs CPC consolidation
FYI: On the teleconf today, we talked about the next dominos to fall in the quest to move the BTLs down to OPAL: 1. Nathan will make the openib "udcm" CPC the default in the immediate future --> This paves the way to ditch the problematic "oob" openib CPC --> This also will give udcm more widespread testing 2. Mellanox will add XRC support to udcm --> This paves the way to ditch the problematic "xoob" openib CPC --> Josh thought they could do this within a month, but that's a SWAG and subject to change 3. I will ping Chelsio about getting them to add proper iWARP support into common/ofacm --> This paves the way to eliminate btl/openib/cpc --> No idea on timeframe yet 4. Once #3 is done, make openib use common/ofacm 5. Once #2, #3, and #4 are done, delete btl/openib/cpc #1-3 have people assigned to them. #4 does not (#5 is pretty trivial -- an svn rm plus some Makefile.am mods). -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
[OMPI devel] Build warnings in trunk
I have noticed several warnings while building the trunk. Feel free to fix anything that you are familiar with. CC sys_limits.lo ../../../opal/util/sys_limits.c: In function 'opal_util_init_sys_limits': ../../../opal/util/sys_limits.c:107:20: warning: 'lim' may be used uninitialized in this function CC mca_base_param.lo ../../../../opal/mca/base/mca_base_param.c: In function 'register_param': ../../../../opal/mca/base/mca_base_param.c:113:25: warning: 'var_type' may be used uninitialized in this function CC mca_base_var.lo ../../../../opal/mca/base/mca_base_var.c: In function 'var_set_from_string': ../../../../opal/mca/base/mca_base_var.c:797:14: warning: 'int_value' may be used uninitialized in this function ../../../../opal/mca/base/mca_base_var.c: In function 'mca_base_var_dump': ../../../../opal/mca/base/mca_base_var.c:2016:27: warning: 'original' may be used uninitialized in this function ../../../../opal/mca/base/mca_base_var.c:2015:30: warning: 'synonyms' may be used uninitialized in this function ../../../../opal/mca/base/mca_base_var.c:2018:17: warning: 'type_string' may be used uninitialized in this function CC runtime/opal_info_support.lo ../../opal/runtime/opal_info_support.c: In function 'opal_info_register_project_frameworks': ../../opal/runtime/opal_info_support.c:241:12: warning: 'rc' may be used uninitialized in this function CC base/oob_base_init.lo ../../../../orte/mca/oob/base/oob_base_init.c: In function 'mca_oob_base_init': ../../../../orte/mca/oob/base/oob_base_init.c:55:43: warning: 's_component' may be used uninitialized in this function CC ras_slurm_module.lo ../../../../../orte/mca/ras/slurm/ras_slurm_module.c: In function 'init': ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:143:11: warning: 'slurm_host' may be used uninitialized in this function ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:144:14: warning: 'port' may be used uninitialized in this function ../../../../../orte/mca/ras/slurm/ras_slurm_module.c: In function 'recv_data': ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:742:31: warning: 'jtrk' may be used uninitialized in this function ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:740:17: warning: 'idx' may be used uninitialized in this function ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:740:22: warning: 'sjob' may be used uninitialized in this function ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:741:20: warning: 'nodelist' may be used uninitialized in this function CC rmaps_lama_params.lo ../../../../../orte/mca/rmaps/lama/rmaps_lama_params.c: In function 'rmaps_lama_ok_to_prune_level': ../../../../../orte/mca/rmaps/lama/rmaps_lama_params.c:789:19: warning: comparison between 'rmaps_lama_order_type_t' and 'rmaps_lama_level_type_t' --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. ---
Re: [OMPI devel] Build warnings in trunk
On Tue, May 14, 2013 at 02:30:17PM -0700, Rolf vandeVaart wrote: > I have noticed several warnings while building the trunk. Feel free to fix > anything that you are familiar with. > > CC mca_base_param.lo > ../../../../opal/mca/base/mca_base_param.c: In function 'register_param': > ../../../../opal/mca/base/mca_base_param.c:113:25: warning: 'var_type' may be > used uninitialized in this function I will take this one. I will put out the RFC for removing this code now. -Nathan HPC-3, LANL
Re: [OMPI devel] Build warnings in trunk
I can take a gander at these On May 14, 2013, at 2:30 PM, Rolf vandeVaart wrote: > CC base/oob_base_init.lo > ../../../../orte/mca/oob/base/oob_base_init.c: In function > 'mca_oob_base_init': > ../../../../orte/mca/oob/base/oob_base_init.c:55:43: warning: 's_component' > may be used uninitialized in this function > > CC ras_slurm_module.lo > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c: In function 'init': > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:143:11: warning: > 'slurm_host' may be used uninitialized in this function > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:144:14: warning: 'port' > may be used uninitialized in this function > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c: In function 'recv_data': > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:742:31: warning: 'jtrk' > may be used uninitialized in this function > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:740:17: warning: 'idx' > may be used uninitialized in this function > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:740:22: warning: 'sjob' > may be used uninitialized in this function > ../../../../../orte/mca/ras/slurm/ras_slurm_module.c:741:20: warning: > 'nodelist' may be used uninitialized in this function
Re: [OMPI devel] RFC: rewrite of ORTE OOB
I have placed a tarball of this branch for those willing to MTT it: http://www.open-mpi.org/~rhc/openmpi-1.9.tar.bz2 I will update if/when major changes are made. On May 13, 2013, at 9:00 PM, Ralph Castain wrote: > Hi folks > > As most of you know, I have been working for quite some time on rewriting the > OOB. It is now getting close to being ready to be committed. > > Unfortunately, I am changing jobs on May 20th (starting a position at Intel) > that will cause a hopefully short "service interruption" in my ability to > contribute code to OMPI. I have started the legal paperwork to resolve that > situation and have the backing of my new management, but these things always > take time. > > Ordinarily, I would simply hold off the commit until the paperwork was > completed. However, after talking with a few people in the community, the > changes are important and desirable enough to get this into the trunk without > the indefinite delay. I can continue to help debug even after my status > changes - just cannot directly contribute code. So I have committed the code > to the OMPI repository in a public temporary branch. Once the community > believes the code is ready, Jeff can merge it back to the trunk if I'm not > able to do so. > > > WHAT:Rewrite of ORTE OOB > > WHY: Support asynchronous progress and a host of other features > > WHEN:TBD (will discuss at weekly telecon and/or on mailing list) > > SYNOPSIS: > The current OOB has served us well, but a number of limitations have been > identified over the years. Specifically: > > * it is only progressed when called via opal_progress, which can lead to > hangs or recursive calls into libevent (which is not supported by that code) > > * we've had issues when multiple NICs are available as the code doesn't > "shift" messages between transports - thus, all nodes had to be available via > the same TCP interface. > > * the OOB "unloads" incoming opal_buffer_t objects during the transmission, > thus preventing use of OBJ_RETAIN in the code when repeatedly sending the > same message to multiple recipients > > * there is no failover mechanism across NICs - if the selected NIC (or its > attached switch) fails, we are forced to abort > > * only one transport (i.e., component) can be "active" > > > The revised OOB resolves these problems: > > * async progress is used for all application processes, with the progress > thread blocking in the event library > > * each available NIC is supported by its own TCP module. The ability to > asynchronously progress each module independently is provided, but not > enabled by default (a runtime MCA parameter turns it "on") > > * multi-address NICs (e.g., a NIC with both an IPv4 and IPv6 address, or with > virtual interfaces) are supported - reachability is determined by comparing > the contact info for a peer against all addresses within the range covered by > the address/mask pairs for the NIC. > > * a message that arrives on one NIC is automatically shifted to whatever NIC > that is connected to the next "hop" if that peer cannot be reached by the > incoming NIC. If no TCP module will reach the peer, then the OOB attempts to > send the message via all other available components - if none can reach the > peer, then an "error" is reported back to the RML, which then calls the > errmgr for instructions. > > * opal_buffer_t now conforms to standard object rules re OBJ_RETAIN as we no > longer "unload" the incoming object > > * NIC failure is reported to the TCP component, which then tries to resend > the message across any other available TCP NIC. If that doesn't work, then > the message is given back to the OOB base to try using other components. If > all that fails, then the error is reported to the RML, which reports to the > errmgr for instructions > > * obviously from the above, multiple OOB components (e.g., TCP and UD) can be > active in parallel > > * the matching code has been moved to the RML (and out of the OOB/TCP > component) so it is independent of transport > > * routing is done by the individual OOB modules (as opposed to the RML). > Thus, both routed and non-routed transports can simultaneously be active > > * all blocking send/recv APIs have been removed. Everything operates > asynchronously. > > > KNOWN LIMITATIONS: > > * although provision is made for component failover as described above, the > code for doing so has not been implemented yet. At the moment, if all > connections for a given component fail, the errmgr is notified of a "lost > connection", which by default results in termination of the job if it was a > lifeline > > * the IPv6 code is present and compiles, but has not been tested as I don't > have access to any IPv6-enabled cluster > > * routing is performed at the individual module level, yet the active routed > component is selected on a global basis. We probably should update that to > reflect that differe