From 2e4a2084bd7560fb402f925945d2130f536d99d1 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sat, 9 Apr 2005 05:51:31 +0000 Subject: [PATCH] Add a new MCA parameter fixing the limit between 2 of the long message protocols (gm_rndv_burst_limit) This commit was SVN r5236. --- src/mca/ptl/gm/src/ptl_gm.h | 1 + src/mca/ptl/gm/src/ptl_gm_component.c | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mca/ptl/gm/src/ptl_gm.h b/src/mca/ptl/gm/src/ptl_gm.h index 008ed23b78..e2a8aa2192 100644 --- a/src/mca/ptl/gm/src/ptl_gm.h +++ b/src/mca/ptl/gm/src/ptl_gm.h @@ -55,6 +55,7 @@ extern "C" { uint32_t gm_eager_limit; /**< number of bytes before the rendez-vous protocol. If the **< size of the message is less than this number then GM **< use a eager protocol. */ + uint32_t gm_rndv_burst_limit; uint32_t gm_rdma_frag_size; /**< maximum fragment size used to transfer data over RDMA */ char* gm_port_name; /**< the name used to get the port */ diff --git a/src/mca/ptl/gm/src/ptl_gm_component.c b/src/mca/ptl/gm/src/ptl_gm_component.c index 9122652626..817d789140 100644 --- a/src/mca/ptl/gm/src/ptl_gm_component.c +++ b/src/mca/ptl/gm/src/ptl_gm_component.c @@ -128,7 +128,9 @@ mca_ptl_gm_component_open(void) mca_ptl_gm_param_register_int ("max_frag_size", 256 * 1024 * 1024); /* Parameters setting the message limits. */ mca_ptl_gm_component.gm_eager_limit = - mca_ptl_gm_param_register_int( "eager_limit", 512 * 1024 ); + mca_ptl_gm_param_register_int( "eager_limit", 128 * 1024 ); + mca_ptl_gm_component.gm_rndv_burst_limit = + mca_ptl_gm_param_register_int( "rndv_burst_limit", 512 * 1024 ); mca_ptl_gm_component.gm_rdma_frag_size = mca_ptl_gm_param_register_int ("rdma_frag_size", 128 * 1024); @@ -481,6 +483,9 @@ mca_ptl_gm_init( mca_ptl_gm_component_t * gm ) 0, /* maximum number of list allocated elements will be zero */ 0, NULL ); /* not using mpool */ +#if OMPI_MCA_PTL_GM_CACHE_ENABLE + gmpi_regcache_init(); +#endif /* OMPI_MCA_PTL_GM_CACHE_ENABLE */ return (mca_ptl_gm_component.gm_num_ptl_modules > 0 ? OMPI_SUCCESS : OMPI_ERR_OUT_OF_RESOURCE); }