]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
ibacm: decrease default retries
authorSean Hefty <sean.hefty@intel.com>
Wed, 1 Dec 2010 03:38:15 +0000 (19:38 -0800)
committerSean Hefty <sean.hefty@intel.com>
Wed, 1 Dec 2010 22:57:17 +0000 (14:57 -0800)
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 <sean.hefty@intel.com>
acm_opts.cfg
src/acm.c
src/acme.c

index 3feadebfcbf2b502a521e11dc9ed9333c38a92aa..372cd7b0823d339135d91aa7e0a326be3c5496a9 100644 (file)
@@ -67,7 +67,7 @@ timeout 2000
 # Number of times that the ACM service will retry a request.  This affects\r
 # both ACM multicast messages and and IB SA messages.\r
 \r
-retries 15\r
+retries 2\r
 \r
 # resolve_depth:\r
 # Specifies the maximum number of outstanding requests that can be in\r
index 099518e835634718bd69beac80c46db5ee280356..31523929500f6e347c5afde56f0b921c8ca589fd 100644 (file)
--- 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;
index 9c4aa8dda7fed369dac1e71161ce58e158e6a1ec..218dbe8ffa448445c13629e936685d39b481461d 100644 (file)
@@ -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");