summaryrefslogtreecommitdiffstats
path: root/transport/ib-verbs/src/ib-verbs.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-08-04 17:51:44 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-08-04 17:07:04 -0700
commitedd633f30adba95c65d29c58a2562ccbb18c3495 (patch)
tree446a10251a824d3770be1c33b5532d1a2ed45df5 /transport/ib-verbs/src/ib-verbs.c
parent2c056117b6cfe4bf3f62c791d2c6514bae8655d9 (diff)
increased ib-verbs buffer size
Noticed that in few cases, where ib-verbs doesn't handle a bigger sized buffer to be sent across, which happens without problem in tcp. Caused frame losses in the case where server's reply msg was bigger, hence the msg got dropped at the server end. With this patch ib-verbs buffer size is fixed to 512KB. (4 x page-size) Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 190 (missing frames due to larger reply message size.. (ib-verbs)) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=190
Diffstat (limited to 'transport/ib-verbs/src/ib-verbs.c')
-rw-r--r--transport/ib-verbs/src/ib-verbs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/transport/ib-verbs/src/ib-verbs.c b/transport/ib-verbs/src/ib-verbs.c
index 469287489a2..0df10439fef 100644
--- a/transport/ib-verbs/src/ib-verbs.c
+++ b/transport/ib-verbs/src/ib-verbs.c
@@ -1281,8 +1281,8 @@ ib_verbs_options_init (transport_t *this)
/* TODO: validate arguments from options below */
- options->send_size = this->xl->ctx->page_size;
- options->recv_size = this->xl->ctx->page_size;
+ options->send_size = this->xl->ctx->page_size * 4; /* 512 KB */
+ options->recv_size = this->xl->ctx->page_size * 4; /* 512 KB */
options->send_count = 32;
options->recv_count = 32;