From: Sean Hefty Date: Mon, 4 Jun 2012 21:51:41 +0000 (-0700) Subject: rsocket: Spin before blocking on an rsocket X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=d79db2e8c377cf4c8d794c37bcd4054a9b4ec71d;p=~shefty%2Flibrdmacm.git 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. We calculate the time to delay blocking by timing the round trip ping-pong time on a QP configured for loopback traffic. The delay time is a multiple of this time to include wire transfer time, plus minimal response time on the remote side. Signed-off-by: Sean Hefty ---