]> git.openfabrics.org - ~shefty/librdmacm.git/log
~shefty/librdmacm.git
12 years agonew
Sean Hefty [Fri, 8 Jun 2012 21:41:20 +0000 (14:41 -0700)]
new

12 years agonew
Sean Hefty [Fri, 8 Jun 2012 21:41:20 +0000 (14:41 -0700)]
new

12 years agorsockets: Revert commit 110fcad2ecce39d6888448c19b08791ea193e7f9
Sean Hefty [Fri, 8 Jun 2012 21:41:20 +0000 (14:41 -0700)]
rsockets: Revert commit 110fcad2ecce39d6888448c19b08791ea193e7f9

It turns out ignoring the SHUT_WR shutdown flag introduces a
separate issue with netperf.  From Sridhar Samudrala <sri@us.ibm.com> :

This causes netperf to hang in recv() after shutdown(SHUT_WR)
on the data socket.

#0  0x000000805caa77e4 in __read_nocancel () from /lib64/libc.so.6
#1  0x00000fff78e6422c in .read ()
   from /home/sridhar/git/librdmacm/src/preload.so
#2  0x000000805ccfe68c in .ibv_get_cq_event () from /usr/lib64/libibverbs.so.1
#3  0x00000fff78e8a9d4 in rs_get_cq_event (rs=0x1000b85f220)
    at src/rsocket.c:867
#4  0x00000fff78e8c160 in rs_process_cq (rs=0x1000b85f220,
    nonblock=<value optimized out>,
    test=@0xfff78e9efc0: 0xfff78e899c0 <rs_conn_have_rdata>)
    at src/rsocket.c:915
#5  0x00000fff78e8d2c0 in rrecv (socket=<value optimized out>,
    buf=0xfffd897e428, len=1, flags=<value optimized out>)
    at src/rsocket.c:1037
#6  0x00000fff78e63eec in .recv ()
   from /home/sridhar/git/librdmacm/src/preload.so
#7  0x00000000100497f4 in .disconnect_data_socket ()
#8  0x000000001004c528 in .send_omni_inner ()
#9  0x00000000100502e0 in .send_tcp_stream ()
#10 0x00000000100028a4 in .main ()

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agocommit
Sean Hefty [Wed, 6 Jun 2012 21:41:35 +0000 (14:41 -0700)]
commit

12 years agocommit
Sean Hefty [Wed, 6 Jun 2012 21:41:35 +0000 (14:41 -0700)]
commit

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under %sysconfig%/rdma/rsocket as shown:

mem_default - default size of receive buffer(s)
wmem_default - default size of send buffer(s)
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 19:07:43 +0000 (12:07 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 19:07:43 +0000 (12:07 -0700)]
pop

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 18:37:07 +0000 (11:37 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 18:37:07 +0000 (11:37 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 18:37:00 +0000 (11:37 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 18:37:00 +0000 (11:37 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-spin
Sean Hefty [Wed, 6 Jun 2012 18:37:00 +0000 (11:37 -0700)]
Refresh of rs-spin

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:36:57 +0000 (11:36 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:36:57 +0000 (11:36 -0700)]
pop

12 years agodelete
Sean Hefty [Wed, 6 Jun 2012 18:24:30 +0000 (11:24 -0700)]
delete

12 years agodelete
Sean Hefty [Wed, 6 Jun 2012 18:24:30 +0000 (11:24 -0700)]
delete

12 years agodelete
Sean Hefty [Wed, 6 Jun 2012 18:24:25 +0000 (11:24 -0700)]
delete

12 years agodelete
Sean Hefty [Wed, 6 Jun 2012 18:24:25 +0000 (11:24 -0700)]
delete

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:41 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:41 +0000 (11:23 -0700)]
pop

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under %sysconfig%/rdma/rsocket as shown:

mem_default - default size of receive buffer(s)
wmem_default - default size of send buffer(s)
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorsocket: Spin before blocking on an rsocket
Sean Hefty [Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)]
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.

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>
12 years agorsocket: Spin before blocking on an rsocket
Sean Hefty [Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)]
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>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:34 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:34 +0000 (11:23 -0700)]
pop

12 years agorsocket: Handle TCP_MAXSEG socket option
Sean Hefty [Mon, 4 Jun 2012 20:22:10 +0000 (13:22 -0700)]
rsocket: Handle TCP_MAXSEG socket option

netperf uses the TCP_MAXSEG socket option.  Add support for it.
Problem reported by Sridhar Samudrala <sri@us.ibm.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:30 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:30 +0000 (11:23 -0700)]
pop

12 years agorsocket: Handle SHUT_RD/WR shutdown flags
Sean Hefty [Mon, 4 Jun 2012 20:14:42 +0000 (13:14 -0700)]
rsocket: Handle SHUT_RD/WR shutdown flags

Sridhar Samudrala <sri@us.ibm.com> reported an error (EOPNOTSUPP)
after calling select().

The issue is that rshutdown(SHUT_WR) was called before select().
As part of shutdown, rsockets switches the underlying fd from
nonblocking to blocking to ensure that previously sent data has
completed.  shutdown(SHUT_WR) indicates that the socket should be
kept open for receiving data.

Delay handling the actual shutdown unless SHUT_RDWR is specified,
or the socket is closed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:24 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:24 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:19 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:19 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:17 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:17 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:17 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:17 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:16 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:16 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:14 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 18:23:14 +0000 (11:23 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:36:23 +0000 (10:36 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:36:23 +0000 (10:36 -0700)]
pop

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under %sysconfig%/rdma/rsocket as shown:

mem_default - default size of receive buffer(s)
wmem_default - default size of send buffer(s)
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:36:03 +0000 (10:36 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:36:03 +0000 (10:36 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:35:23 +0000 (10:35 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:35:23 +0000 (10:35 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-spin
Sean Hefty [Wed, 6 Jun 2012 17:35:23 +0000 (10:35 -0700)]
Refresh of rs-spin

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:35:21 +0000 (10:35 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:35:21 +0000 (10:35 -0700)]
pop

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:35:18 +0000 (10:35 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:35:18 +0000 (10:35 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:34:37 +0000 (10:34 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:34:37 +0000 (10:34 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-defaults
Sean Hefty [Wed, 6 Jun 2012 17:34:37 +0000 (10:34 -0700)]
Refresh of rs-defaults

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under %sysconfig%/rdma/rsocket as shown:

mem_default - default size of receive buffer(s)
wmem_default - default size of send buffer(s)
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:34:35 +0000 (10:34 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:34:35 +0000 (10:34 -0700)]
pop

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under rdma/rsocket as shown:

mem_default - default size of receive buffer
wmem_default - default size of send buffer
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:34:32 +0000 (10:34 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:34:32 +0000 (10:34 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:34:04 +0000 (10:34 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:34:04 +0000 (10:34 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-spin
Sean Hefty [Wed, 6 Jun 2012 17:34:04 +0000 (10:34 -0700)]
Refresh of rs-spin

12 years agorsocket: Spin before blocking on an rsocket
Sean Hefty [Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)]
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>
12 years agorsocket: Spin before blocking on an rsocket
Sean Hefty [Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)]
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 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>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:34:02 +0000 (10:34 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:34:02 +0000 (10:34 -0700)]
pop

12 years agorsocket: Spin before blocking on an rsocket
Sean Hefty [Mon, 4 Jun 2012 21:51:41 +0000 (14:51 -0700)]
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 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. ;)

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:34:00 +0000 (10:34 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:34:00 +0000 (10:34 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:55 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:55 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-maxseg
Sean Hefty [Wed, 6 Jun 2012 17:33:55 +0000 (10:33 -0700)]
Refresh of rs-maxseg

12 years agorsocket: Handle TCP_MAXSEG socket option
Sean Hefty [Mon, 4 Jun 2012 20:22:10 +0000 (13:22 -0700)]
rsocket: Handle TCP_MAXSEG socket option

netperf uses the TCP_MAXSEG socket option.  Add support for it.
Problem reported by Sridhar Samudrala <sri@us.ibm.com>

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:54 +0000 (10:33 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:54 +0000 (10:33 -0700)]
pop

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:33:51 +0000 (10:33 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:33:51 +0000 (10:33 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:30 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:30 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-shutdown
Sean Hefty [Wed, 6 Jun 2012 17:33:30 +0000 (10:33 -0700)]
Refresh of rs-shutdown

12 years agorsocket: Handle SHUT_RD/WR shutdown flags
Sean Hefty [Mon, 4 Jun 2012 20:14:42 +0000 (13:14 -0700)]
rsocket: Handle SHUT_RD/WR shutdown flags

Sridhar Samudrala <sri@us.ibm.com> reported an error (EOPNOTSUPP)
after calling select().

The issue is that rshutdown(SHUT_WR) was called before select().
As part of shutdown, rsockets switches the underlying fd from
nonblocking to blocking to ensure that previously sent data has
completed.  shutdown(SHUT_WR) indicates that the socket should be
kept open for receiving data.

Delay handling the actual shutdown unless SHUT_RDWR is specified,
or the socket is closed.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:26 +0000 (10:33 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:26 +0000 (10:33 -0700)]
pop

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:33:24 +0000 (10:33 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 17:33:24 +0000 (10:33 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:15 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 17:33:15 +0000 (10:33 -0700)]
refresh (create temporary patch)

12 years agoRefresh of ip6-opt
Sean Hefty [Wed, 6 Jun 2012 17:33:15 +0000 (10:33 -0700)]
Refresh of ip6-opt

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:10 +0000 (10:33 -0700)]
pop

12 years agopop
Sean Hefty [Wed, 6 Jun 2012 17:33:10 +0000 (10:33 -0700)]
pop

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 00:06:23 +0000 (17:06 -0700)]
refresh

12 years agorefresh
Sean Hefty [Wed, 6 Jun 2012 00:06:23 +0000 (17:06 -0700)]
refresh

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 00:06:23 +0000 (17:06 -0700)]
refresh (create temporary patch)

12 years agorefresh (create temporary patch)
Sean Hefty [Wed, 6 Jun 2012 00:06:23 +0000 (17:06 -0700)]
refresh (create temporary patch)

12 years agoRefresh of rs-defaults
Sean Hefty [Wed, 6 Jun 2012 00:06:22 +0000 (17:06 -0700)]
Refresh of rs-defaults

12 years agorsocket: Use configuration files to specify default settings
Sean Hefty [Tue, 5 Jun 2012 22:28:18 +0000 (15:28 -0700)]
rsocket: Use configuration files to specify default settings

Give an administrator control over the default settings
used by rsockets.  Use files under rdma/rsocket as shown:

mem_default - default size of receive buffer
wmem_default - default size of send buffer
sqsize_default - default size of send queue
rqsize_default - default size of receive queue
inline_default - default size of inline data

If configuration files are not available, rsockets will continue to
use internal defaults.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>