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
This commit is contained in:
Amar Tumballi 2009-08-04 17:51:44 +00:00 committed by Anand V. Avati
parent 2c056117b6
commit edd633f30a

View File

@ -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;