[zeromq-dev] zeroMQ with SDP and Python on Infiniband

Feng Yi Chan fungust at tintedshadow.com
Fri Jul 20 01:07:21 CEST 2012


Hi,

I have been trying to get libsdp.so to wrap a simple ZMQ REQ-REP socket 
in python with the following commands on two separate boxes connected 
via Infiniband.

All attempts thus far at pre-loading libsdp.so have not resulted in a 
successful connection via SDP sockets.

Instead, the ZeroMQ messages are passed via tcp, which results in poorer 
throughput on the fabric than possible with SDP.

Is there something I am doing wrong? The code and run commands are 
below. The environment and libsdp.so have been tested and shown to 
function via SDP using the iperf benchmark program. 192.168.11.11 
corresponds to the host infiniband IPoIB address.

Thank you.

LD_PRELOAD=/usr/lib64/libsdp.so LIBSDP_CONFIG_FILE=/etc/libsdp.conf 
python2.7 server.py
LD_PRELOAD=/usr/lib64/libsdp.so LIBSDP_CONFIG_FILE=/etc/libsdp.conf 
python2.7 client.py

Server code:
import zmq

context = zmq.Context()
reply = context.socket(zmq.REP)
reply.bind('tcp://192.168.11.11:5001')

while True:
     msg=reply.recv()
     reply.send(msg)

Client Code:
import zmq

context = zmq.Context()
request = context.socket(zmq.REQ)
request.connect('tcp://192.168.11.11:5001')

while True:
     request.send('hello')
     z = request.recv()



More information about the zeromq-dev mailing list