From fce2911e29e68bc3bf6fed2a68761877eda2156c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 4 Aug 2009 14:50:07 +0000 Subject: 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 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 --- transport/ib-verbs/src/ib-verbs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transport') 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; -- cgit