]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Spin before blocking on an rsocket
authorSean Hefty <sean.hefty@intel.com>
Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 6 Jun 2012 17:34:02 +0000 (10:34 -0700)
commita0d1e796acd395c573a1b6d11dcdae09bd5d1b09
treeb81754028658b7a877798e12b2fd67dd9d2ae0be
parent3593589a3e9bfc8bbaab75b45e090182313a69dc
rsocket: Spin before blocking on an rsocket

The latency cost of blocking is significant compared to round
trip ping-pong time.  Spin briefly on rsockets before calling
into the kernel and blocking.

The time to spin before blocking is read from an rsocket
configuration file %sysconfig%/rdma/rsocket/polling_time.  This
is user adjustable or may be set automatically by ibacm.

As a completely unintentional side effect, this just happens to
improve application performance in benchmarks, like netpipe,
significantly. ;)

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Makefile.am
configure.in
src/cma.h
src/rsocket.c