[openib-general] [PATCH] [RFC] - example user mode rdma ping/pongprogram using CMA

Caitlin Bestler caitlinb at broadcom.com
Thu Feb 9 11:10:06 PST 2006


openib-general-bounces at openib.org wrote:
>> Attached is a user-mode program, called rping, that uses librdmacm
>> and libibverbs to implement a ping-pong program over an RC
>> connection.  The program utilizes SEND, RECV, RDMA READ, and WRITE
>> ops, as well as cq channels to get cq events, and rdma_get_event()
>> to detect CMA events. It is multi-threaded. 
>> 
>> I've built it as an example program in librdmacm/examples and tested
>> it with mthca.  It is useful to test CMA as well as all the major
>> rdma operations in a transport-neutral way.
>> 
>> If you all find it has utility, please pull it into
>> librdmacm/examples. 
> 
> What exactly should I see that indicates that the test works?
>  I enabled debug output.  The server side ends up at
> "rdma_bind_addr worked".  The client side creates a QP, calls
> rping_setup_buffers, then disconnects.  The parameters that I used
> are: 
> 
> rping -s -a 192.168.0.101 -p 7174
> rping -c -a 192.168.0.101 -p 7174
> 
> Without debugging turned on, should I see output confirming
> that the test has executed correctly?
> 

That actually raises an excellent point relevant to the 
point of starting to accumulate a collection of test programs
that might someday be called a suite.

Having uniform expectations on what a test tool should
output to stdout, stderr, what exit codes should be used
and even some uniformity on switches would be very good.

Is there an existing test program that should be considered
as a template for others writing new test tools?




More information about the general mailing list