summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-08-04 14:50:07 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-08-04 16:47:52 -0700
commitfce2911e29e68bc3bf6fed2a68761877eda2156c (patch)
tree627ee0b216dccd183d202cffae240d6bbe9ae18c /transport
parent736624b3b930ecf0848bb3631af53df9d0b66f65 (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')
-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 687b9c3e874..0bf432546eb 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;