From edd633f30adba95c65d29c58a2562ccbb18c3495 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 4 Aug 2009 17:51:44 +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 469287489..0df10439f 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