1
1
openmpi/ompi/mca/osc/pt2pt
Nathan Hjelm d7264aa613 osc/pt2pt: various threading fixes
This commit fixes several bugs identified by a new multi-threaded RMA
benchmarking suite. The following bugs have been identified and fixed:

 - The code that signaled the actual start of an access epoch changed
   the eager_send_active flag on a synchronization object without
   holding the object's lock. This could cause another thread waiting
   on eager sends to block indefinitely because the entirety of
   ompi_osc_pt2pt_sync_expected could exectute between the check of
   eager_send_active and the conditon wait of
   ompi_osc_pt2pt_sync_wait.

 - The bookkeeping of fragments could get screwed up when performing
   long put/accumulate operations from different threads. This was
   caused by the fragment flush code at the end of both put and
   accumulate. This code was put in place to avoid sending a large
   number of unexpected messages to a peer. To fix the bookkeeping
   issue we now 1) wait for eager sends to be active before stating
   any large isend's, and 2) keep track of the number of large isends
   associated with a fragment. If the number of large isends reaches
   32 the active fragment is flushed.

 - Use atomics to update the large receive/send tag counters. This
   prevents duplicate tags from being used. The tag space has also
   been updated to use the entire 16-bits of the tag space.

These changes should also fix open-mpi/ompi#1299.

Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2016-02-02 12:33:33 -07:00
..
configure.m4 Rename the OSC "rdma" component to pt2p to better reflect that it does not actually use btl rdma 2015-01-06 13:38:55 -07:00
Makefile.am osc/pt2pt: reduce memory footprint of window 2015-09-16 13:01:56 -06:00
osc_pt2pt_active_target.c osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_comm.c osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_component.c osc/pt2pt: use two distinct "namespaces" for tags 2016-01-05 16:57:37 +09:00
osc_pt2pt_data_move.c osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_data_move.h mpi conformance: fix prototypes 2015-08-31 10:34:05 +09:00
osc_pt2pt_frag.c osc/pt2pt: reduce memory footprint of window 2015-09-16 13:01:56 -06:00
osc_pt2pt_frag.h osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_header.h osc/pt2pt: reduce memory footprint of window 2015-09-16 13:01:56 -06:00
osc_pt2pt_module.c osc: fixed issues identified by coverity 2015-09-22 09:23:39 -06:00
osc_pt2pt_passive_target.c osc/pt2pt: fix coveity issues 2015-09-26 11:18:22 -06:00
osc_pt2pt_pending_frag.h Rename the OSC "rdma" component to pt2p to better reflect that it does not actually use btl rdma 2015-01-06 13:38:55 -07:00
osc_pt2pt_request.c osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_request.h osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt_sync.c osc/pt2pt: fix warnings 2015-10-22 15:50:40 -06:00
osc_pt2pt_sync.h osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
osc_pt2pt.h osc/pt2pt: various threading fixes 2016-02-02 12:33:33 -07:00
owner.txt ownership: update ownership files 2015-06-25 10:04:42 -06:00