From: Sean Hefty Date: Wed, 1 Dec 2010 03:38:15 +0000 (-0800) Subject: ibacm: decrease default retries X-Git-Tag: v1.0.4~15 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=25005d0475638542ab125b42d439d853c185402a;p=~shefty%2Fibacm.git ibacm: decrease default retries With 15 retries, 2 seconds per timeout, the total timeout ends up being too long when running on large clusters, where a node can drop off at anytime. Decrease the default number of retries to 2. Signed-off-by: Sean Hefty --- diff --git a/acm_opts.cfg b/acm_opts.cfg index 3feadeb..372cd7b 100644 --- a/acm_opts.cfg +++ b/acm_opts.cfg @@ -67,7 +67,7 @@ timeout 2000 # Number of times that the ACM service will retry a request. This affects # both ACM multicast messages and and IB SA messages. -retries 15 +retries 2 # resolve_depth: # Specifies the maximum number of outstanding requests that can be in diff --git a/src/acm.c b/src/acm.c index 099518e..3152392 100644 --- a/src/acm.c +++ b/src/acm.c @@ -213,7 +213,7 @@ static enum acm_route_prot route_prot = ACM_ROUTE_PROT_ACM; static enum acm_loopback_prot loopback_prot = ACM_LOOPBACK_PROT_LOCAL; static short server_port = 6125; static int timeout = 2000; -static int retries = 15; +static int retries = 2; static int resolve_depth = 1; static int sa_depth = 1; static int send_depth = 1; diff --git a/src/acme.c b/src/acme.c index 9c4aa8d..218dbe8 100644 --- a/src/acme.c +++ b/src/acme.c @@ -101,7 +101,7 @@ static void gen_opts_temp(FILE *f) fprintf(f, "# Indicates the amount of detailed data written to the log file. Log levels\n"); fprintf(f, "# should be one of the following values:\n"); fprintf(f, "# 0 - basic configuration & errors\n"); - fprintf(f, "# 1 - verbose configuation & errors\n"); + fprintf(f, "# 1 - verbose configuration & errors\n"); fprintf(f, "# 2 - verbose operation\n"); fprintf(f, "\n"); fprintf(f, "log_level 0\n"); @@ -147,7 +147,7 @@ static void gen_opts_temp(FILE *f) fprintf(f, "# Number of times that the ACM service will retry a request. This affects\n"); fprintf(f, "# both ACM multicast messages and and IB SA messages.\n"); fprintf(f, "\n"); - fprintf(f, "retries 15\n"); + fprintf(f, "retries 2\n"); fprintf(f, "\n"); fprintf(f, "# resolve_depth:\n"); fprintf(f, "# Specifies the maximum number of outstanding requests that can be in\n");