[ofa-general] libsdp usage

Kulkarni, Mayuresh (IT) Mayuresh.Kulkarni at morganstanley.com
Wed Jul 16 19:12:42 PDT 2008


Hello,

We are just starting out with OFED and I am not sure how to troubleshoot
the following problem. 

The setup has two machines, each has a RNIC and they communicate over
TCP/IP. From my understanding, just preloading libsdp.so in a TCP/IP
sockets based app should work fine. Is that correct? It is not working
for a very simple client/server app.

I changed the logging level in the libsdp.conf file down to 1. Then I
ran the client and server on different machines.

When the server and client are both running with libsdp.so preloaded,
the logs are appended at the end. The last thing the client says is
"connected SDP fd:8 to:192.168.0.50 port 5023" (The IP address belongs
to the server's RNIC). But then it just hangs instead of sending some
data as it is supposed to. The server logs seem to say that it is just
waiting around for something to happen.

It is possible I am doing something entirely silly or OFED is not
installed properly, so any pointers on what might be happening are
greatly appreciated. 

Thanks a lot,
Mayuresh.

--------------
Server:
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CONFIG: use both
server * *:*
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CONFIG: use both
client * *:*
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp Max file
descriptors:1024
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:-1:-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:-1:-1> result <-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1> result <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <1:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1> result <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1> result <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <1:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:4:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp CLOSE:
<echoServer:4:-1> result <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp IOCTL:
<echoServer:7:-1> request <21537>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp IOCTL:
<echoServer:7:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:6:-1> command <2> argument <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp FCNTL:
<echoServer:6:-1> result <0:0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp SOCKET: <echoServer>
domain <2> type <1> protocol <0>
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp MATCH PROGRAM: => both
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp SOCKET: making TCP
socket
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp SOCKET: making SDP
shadow socket type:1 proto:6
 Wed Jul 16 21:24:13 2008 echoServer[1999] libsdp SOCKET:
<echoServer:8:9>
 Wed


Client:
Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONFIG: use both server
* *:*
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONFIG: use both
client * *:*
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp Max file
descriptors:1024
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:-1:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:-1:-1> result <-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1> result <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1> result <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1> result <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <1> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:4:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CLOSE:
<echoClient:4:-1> result <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp IOCTL:
<echoClient:7:-1> request <21537>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp IOCTL:
<echoClient:7:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:6:-1> command <2> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:6:-1> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SOCKET: <echoClient>
domain <2> type <1> protocol <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp MATCH PROGRAM: => both
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SOCKET: making TCP
socket
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SOCKET: making SDP
shadow socket type:1 proto:6
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SOCKET:
<echoClient:8:9>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> level <1> name <2>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> command <5> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> result <-1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> command <5> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> result <-1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp GETSOCKNAME
<echoClient:8>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp GETSOCKNAME: address
is:0.0.0.0 port:0
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp GETSOCKNAME
<echoClient:8> result <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> command <5> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> result <-1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp BIND: <echoClient:8:9>
type <2> IP <192.168.0.100> port <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp __sdp_sockaddr_to_sdp:
Given IPv4 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp
find_free_port: starting search for common free port
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port: taking
loop (1)
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port:
creating the two sockets
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port:
binding first tcp socket
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port:
listening on first socket
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port: first
socket port:33035
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port:
binding second socket
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp find_free_port: return
port:<33035>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp close_and_bind:
closing <11> binding <8>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp close_and_bind:
returning <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp close_and_bind:
closing <10> binding <9>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp close_and_bind:
returning <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp BIND: <echoClient:8:9>
result <0:-1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp IOCTL:
<echoClient:8:9> request <21537>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp IOCTL:
<echoClient:8:9> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> level <1> name <9>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> substitute level 27
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> level <6> name <1>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp SETSOCKOPT:
<echoClient:8:9> result <0:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> command <5> argument <0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp FCNTL:
<echoClient:3:-1> result <-1:0>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT:
<echoClient:8:9> domain <2> IP <192.168.0.50> port <5023>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT: fd <8> opts
are <0x802>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp MATCH: matching
192.168.0.50:5023 to use both * *:* =>
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp POSITIVE
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp MATCH CONNECT: => both
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT: libsdp does
not support async connect in BOTH, moving to SDP only
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp __sdp_sockaddr_to_sdp:
Given IPv4
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT: connecting
through SDP
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT: connected SDP
fd:8 to:192.168.0.50 port 5023
 Wed Jul 16 21:24:22 2008 echoClient[2309] libsdp CONNECT: <echoC

--------------------------------
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.



More information about the general mailing list