1
1
openmpi/opal
Jeff Squyres 8ace07efed This commit brings in two major things:
1. Galen's fine-grain control of queue pair resources in the openib
   BTL.
1. Pasha's new implementation of asychronous HCA event handling.

Pasha's new implementation doesn't take much explanation, but the new
"multifrag" stuff does.  

Note that "svn merge" was not used to bring this new code from the
/tmp/ib_multifrag branch -- something Bad happened in the periodic
trunk pulls on that branch making an actual merge back to the trunk
effectively impossible (i.e., lots and lots of arbitrary conflicts and
artifical changes).  :-(

== Fine-grain control of queue pair resources ==

Galen's fine-grain control of queue pair resources to the OpenIB BTL
(thanks to Gleb for fixing broken code and providing additional
functionality, Pasha for finding broken code, and Jeff for doing all
the svn work and regression testing).

Prior to this commit, the OpenIB BTL created two queue pairs: one for
eager size fragments and one for max send size fragments.  When the
use of the shared receive queue (SRQ) was specified (via "-mca
btl_openib_use_srq 1"), these QPs would use a shared receive queue for
receive buffers instead of the default per-peer (PP) receive queues
and buffers.  One consequence of this design is that receive buffer
utilization (the size of the data received as a percentage of the
receive buffer used for the data) was quite poor for a number of
applications.

The new design allows multiple QPs to be specified at runtime.  Each
QP can be setup to use PP or SRQ receive buffers as well as giving
fine-grained control over receive buffer size, number of receive
buffers to post, when to replenish the receive queue (low water mark)
and for SRQ QPs, the number of outstanding sends can also be
specified.  The following is an example of the syntax to describe QPs
to the OpenIB BTL using the new MCA parameter btl_openib_receive_queues:

{{{
-mca btl_openib_receive_queues \
     "P,128,16,4;S,1024,256,128,32;S,4096,256,128,32;S,65536,256,128,32"
}}}

Each QP description is delimited by ";" (semicolon) with individual
fields of the QP description delimited by "," (comma).  The above
example therefore describes 4 QPs.

The first QP is:

    P,128,16,4

Meaning: per-peer receive buffer QPs are indicated by a starting field
of "P"; the first QP (shown above) is therefore a per-peer based QP.
The second field indicates the size of the receive buffer in bytes
(128 bytes).  The third field indicates the number of receive buffers
to allocate to the QP (16).  The fourth field indicates the low
watermark for receive buffers at which time the BTL will repost
receive buffers to the QP (4).

The second QP is:

    S,1024,256,128,32

Shared receive queue based QPs are indicated by a starting field of
"S"; the second QP (shown above) is therefore a shared receive queue
based QP.  The second, third and fourth fields are the same as in the
per-peer based QP.  The fifth field is the number of outstanding sends
that are allowed at a given time on the QP (32).  This provides a
"good enough" mechanism of flow control for some regular communication
patterns.

QPs MUST be specified in ascending receive buffer size order.  This
requirement may be removed prior to 1.3 release.

This commit was SVN r15474.
2007-07-18 01:15:59 +00:00
..
asm remove unneeded footer 2006-09-26 20:30:49 +00:00
class Pinpoint the usual execution path (add OPAL_LIKELY). 2007-04-12 06:18:01 +00:00
etc * fix a typo 2007-02-06 21:59:55 +00:00
event Fix a bunch of issues exposed by Ken Cain in getting Open MPI to work with 2007-07-10 03:46:57 +00:00
include This commit brings in two major things: 2007-07-18 01:15:59 +00:00
mca Remove an unused variable. 2007-07-17 22:34:59 +00:00
memoryhooks Change a bunch of 'OMPI' names to OPAL names, since this is opal. 2007-03-29 01:00:33 +00:00
runtime Quiet a warning on the Cray systems in which mkfifo does not work. 2007-07-12 20:30:09 +00:00
threads Add solaris condition variables 2007-06-27 16:48:30 +00:00
tools * Integrate man pages contributed by Dirk Eddelbuettel 2007-07-02 15:27:39 +00:00
util Fix a bunch of issues exposed by Ken Cain in getting Open MPI to work with 2007-07-10 03:46:57 +00:00
win32 dd some Windows missing defines & macros. 2007-04-01 15:55:34 +00:00
Makefile.am Clean up a couple of configure things: 2007-05-15 04:23:48 +00:00
win_makefile Move all win32 related files in opal, and modify all the Makefiles.am to 2005-12-08 06:17:15 +00:00