]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:21 +0000 (01:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:21 +0000 (01:11 -0700)]
pop

12 years agolibrdmacm: Delay ACM connection until resolving an address
Sean Hefty [Fri, 25 May 2012 17:48:47 +0000 (10:48 -0700)]
librdmacm: Delay ACM connection until resolving an address

Avoid creating a connection to the ACM service when
it's not needed.  For example, if the user of the librdmacm
is a server application, it will not use ACM services.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:08 +0000 (01:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:08 +0000 (01:11 -0700)]
pop

12 years agoacm: Use -1 to indicate an invalid socket rather than 0
Sean Hefty [Fri, 25 May 2012 19:23:10 +0000 (12:23 -0700)]
acm: Use -1 to indicate an invalid socket rather than 0

socket() can return 0 as a valid socket.  This can happen
when using a daemon that closes stdin/out/err.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:01 +0000 (01:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:11:01 +0000 (01:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:10:58 +0000 (01:10 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:10:58 +0000 (01:10 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:07:52 +0000 (01:07 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 08:07:52 +0000 (01:07 -0700)]
pop

12 years agorsockets: Reduce the default inline size
Sean Hefty [Fri, 25 May 2012 01:18:43 +0000 (18:18 -0700)]
rsockets: Reduce the default inline size

Inline data consumes the same space used by the SGL.  Since
we reduced the default number of SGEs per SQ entry to 1,
also reduce the default inline data size to 16 bytes.
Otherwise, the SQ size won't actually be reduced.

Although this increases the latency of small messages over
16 bytes, tests show that decreasing the inline data size
from 64 bytes to 32 or 16 bytes improves large message
bandwidth 8-10%.

Sample rstream 64k_bw test results:

inline size 64: 24.85 Gbps
inline size 16: 26.5  Gbps

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Mon, 28 May 2012 08:07:15 +0000 (01:07 -0700)]
refresh

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 08:07:15 +0000 (01:07 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 08:07:15 +0000 (01:07 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 08:07:15 +0000 (01:07 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-1sge
Sean Hefty [Mon, 28 May 2012 08:07:14 +0000 (01:07 -0700)]
Refresh of rs-1sge

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 07:59:49 +0000 (00:59 -0700)]
refresh

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 07:59:49 +0000 (00:59 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 07:59:49 +0000 (00:59 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 07:59:49 +0000 (00:59 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-1sge
Sean Hefty [Mon, 28 May 2012 07:59:49 +0000 (00:59 -0700)]
Refresh of rs-1sge

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:36:04 +0000 (00:36 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:36:04 +0000 (00:36 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:31:11 +0000 (00:31 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:31:11 +0000 (00:31 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:20:08 +0000 (00:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:20:08 +0000 (00:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:19:46 +0000 (00:19 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:19:46 +0000 (00:19 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:18:07 +0000 (00:18 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:18:07 +0000 (00:18 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:16:05 +0000 (00:16 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:16:05 +0000 (00:16 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:11:49 +0000 (00:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:11:49 +0000 (00:11 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:08:51 +0000 (00:08 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:08:51 +0000 (00:08 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:08:39 +0000 (00:08 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:08:39 +0000 (00:08 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:07:15 +0000 (00:07 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:07:15 +0000 (00:07 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:05:25 +0000 (00:05 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:05:25 +0000 (00:05 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:05:09 +0000 (00:05 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:05:09 +0000 (00:05 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:55 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:55 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:47 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:47 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:45 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:04:45 +0000 (00:04 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:48 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:48 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:47 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:47 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:15 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:01:15 +0000 (00:01 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:00:20 +0000 (00:00 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 07:00:20 +0000 (00:00 -0700)]
pop

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 06:56:47 +0000 (23:56 -0700)]
refresh

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 06:56:47 +0000 (23:56 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 06:56:47 +0000 (23:56 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 06:56:47 +0000 (23:56 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-1sge
Sean Hefty [Mon, 28 May 2012 06:56:47 +0000 (23:56 -0700)]
Refresh of rs-1sge

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 06:55:12 +0000 (23:55 -0700)]
refresh

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 06:55:12 +0000 (23:55 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 06:55:11 +0000 (23:55 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 06:55:11 +0000 (23:55 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-1sge
Sean Hefty [Mon, 28 May 2012 06:55:11 +0000 (23:55 -0700)]
Refresh of rs-1sge

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:28:20 +0000 (23:28 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:28:20 +0000 (23:28 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:26:22 +0000 (23:26 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:26:22 +0000 (23:26 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:21:00 +0000 (23:21 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:21:00 +0000 (23:21 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:20:50 +0000 (23:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:20:50 +0000 (23:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:20:11 +0000 (23:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:20:11 +0000 (23:20 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:18:27 +0000 (23:18 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 06:18:27 +0000 (23:18 -0700)]
pop

12 years agorsockets: Change the default QP size from 512 to 384
Sean Hefty [Thu, 24 May 2012 21:31:12 +0000 (14:31 -0700)]
rsockets: Change the default QP size from 512 to 384

Simple bandwidth tests using rstream showed no difference in
performance between using a QP sized to 384 entries versus 512.
Reduce the overhead of a default rsocket by using 384 entries.
A user can request a larger size by calling rsetsockopt.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Reduce SQ from 2 SGE per WR to 1 SGE
Sean Hefty [Thu, 24 May 2012 21:36:41 +0000 (14:36 -0700)]
rsocket: Reduce SQ from 2 SGE per WR to 1 SGE

We currently request 2 SGEs per WR when allocating a QP.  The
second SGE is only used when sending data at the end of
the circular send buffer and the start.  All other sends are
restricted to a single SGE.

Reduce the size of the SQ by only requesting 1 SGE per WR.  The
resulting performance is basically unaffected.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Reduce SQ from 2 SGE per WR to 1 SGE
Sean Hefty [Thu, 24 May 2012 21:36:41 +0000 (14:36 -0700)]
rsocket: Reduce SQ from 2 SGE per WR to 1 SGE

We currently request 2 SGEs per WR when allocating a QP.  The
second SGE is only used when sending data at the end of
the circular send buffer and the start.  All other sends are
restricted to a single SGE.

Reduce the size of the SQ by only requesting 1 SGE per WR.  The
resulting performance is basically unaffected.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Reduce SQ from 2 SGE per WR to 1 SGE
Sean Hefty [Thu, 24 May 2012 21:36:41 +0000 (14:36 -0700)]
rsocket: Reduce SQ from 2 SGE per WR to 1 SGE

We currently request 2 SGEs per WR when allocating a QP.  The
second SGE is only used when sending data at the end of
the circular send buffer and the start.  All other sends are
restricted to a single SGE.

Reduce the size of the SQ by only requesting 1 SGE per WR.  The
resulting performance is basically unaffected.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Reduce SQ from 2 SGE per WR to 1 SGE
Sean Hefty [Thu, 24 May 2012 21:36:41 +0000 (14:36 -0700)]
rsocket: Reduce SQ from 2 SGE per WR to 1 SGE

We currently request 2 SGEs per WR when allocating a QP.  The
second SGE is only used when sending data at the end of
the circular send buffer and the start.  All other sends are
restricted to a single SGE.

Reduce the size of the SQ by only requesting 1 SGE per WR.  The
resulting performance is basically unaffected.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Mon, 28 May 2012 00:05:56 +0000 (17:05 -0700)]
pop

12 years agopop
Sean Hefty [Mon, 28 May 2012 00:05:56 +0000 (17:05 -0700)]
pop

12 years agorstream: Use separate connections for latency/bw tests
Sean Hefty [Sun, 27 May 2012 21:07:42 +0000 (14:07 -0700)]
rstream: Use separate connections for latency/bw tests

Optimize each connection for either latency or bandwidth
results.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Fix hang in rrecv/rsend after disconnecting
Sean Hefty [Sat, 26 May 2012 00:24:08 +0000 (17:24 -0700)]
rsocket: Fix hang in rrecv/rsend after disconnecting

If a user calls rrecv() after a blocking rsocket has been disconnected,
it will hang.  This problem and the cause was reported by Sirdhar Samudrala
<samudrala@us.ibm.com>.  It can be reproduced by running netserver -f -D
using the rs-preload library.  A similar issue exists with rsend().

Fix this by not blocking on a CQ unless we're connected.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsockets: Simplify state checks
Sean Hefty [Sat, 26 May 2012 00:28:44 +0000 (17:28 -0700)]
rsockets: Simplify state checks

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agors-preload: Handle recursive socket() calls
Sean Hefty [Fri, 25 May 2012 19:42:12 +0000 (12:42 -0700)]
rs-preload: Handle recursive socket() calls

When ACM support is enabled in the librdmacm, it will attempt to
establish a socket connection to the ACM daemon.  When the rsocket
preload library is in use, this can result in a recursive call
to socket() that results in the library hanging.  The resulting
call stack is:

socket() -> rsocket() -> rdma_create_id() -> ucma_init() ->
socket() -> rsocket() -> rdma_create_id() -> ucma_init()

The second call to ucma_init() hangs because initialization is
still pending.

Fix this by checking for recursive calls to socket() in the preload
library.  When detected, call the real socket() call instead of
directing the call back into rsockets().  Since rsockets is a part
of the librdmacm, it can call rsockets directly if it wants to use
rsockets instead of standard sockets.

This problem and the cause was reported by Chet Murthy <chet@watson.ibm.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agolibrdmacm: Delay ACM connection until resolving an address
Sean Hefty [Fri, 25 May 2012 17:48:47 +0000 (10:48 -0700)]
librdmacm: Delay ACM connection until resolving an address

Avoid creating a connection to the ACM service when
it's not needed.  For example, if the user of the librdmacm
is a server application, it will not use ACM services.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agoacm: Use -1 to indicate an invalid socket rather than 0
Sean Hefty [Fri, 25 May 2012 19:23:10 +0000 (12:23 -0700)]
acm: Use -1 to indicate an invalid socket rather than 0

socket() can return 0 as a valid socket.  This can happen
when using a daemon that closes stdin/out/err.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsockets: Reduce the default inline size
Sean Hefty [Fri, 25 May 2012 01:18:43 +0000 (18:18 -0700)]
rsockets: Reduce the default inline size

Inline data consumes the same space used by the SGL.  Since
we reduced the default number of SGEs per SQ entry to 1,
also reduce the default inline data size to 16 bytes.
Otherwise, the SQ size won't actually be reduced.

Although this increases the latency of small messages over
16 bytes, tests show that decreasing the inline data size
from 64 bytes to 32 or 16 bytes improves large message
bandwidth 8-10%.

Sample rstream 64k_bw test results:

inline size 64: 24.85 Gbps
inline size 16: 26.5  Gbps

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Mon, 28 May 2012 00:05:53 +0000 (17:05 -0700)]
refresh

12 years agorefresh
Sean Hefty [Mon, 28 May 2012 00:05:53 +0000 (17:05 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Mon, 28 May 2012 00:05:53 +0000 (17:05 -0700)]
refresh (create temporary patch)