[openib-general] Re: diff-perftest-07 replace pp_get_local_lid()

Michael S. Tsirkin mst at mellanox.co.il
Wed May 18 06:51:30 PDT 2005


Quoting r. Grant Grundler <iod00d at hp.com>:
> Subject: diff-perftest-07 replace pp_get_local_lid()
> 
> Hi Michael,
> 
> Following patch to rdma_lat.c:
> o replaces pp_get_local_lid with code from ibv_pingpong.
>   This calls into libibverbs instead of fishing around in /sys FS.
> 
> o makes two minor white space fix-ups.
> 
> Signed-off-by: Grant Grundler <iod00d at hp.com>

No patch was attached :(

> 
> I'd like to slowly restructure main() into multiple distinct parts:
> 	1) parameter parsing/setting
> 	2) global data init (e.g. srand())
> 	3) setup connection
> 	3) negotiate test+parameters with server/client
> 	4) run test (maybe several iterations with different params)
> 	5) exit/cleanup

Good, but lets pass data around in function parameters
instead of in global data section.

> I'm thinking about how to keep the server running and iterating.
> The goal is to be able to run a sequence of tests just
> from the client side.

I just do ssh server $PWD/rdma_lat & ( sleep 1 && $PWD/rdma_lat)

> Or is this a waste of time?
> Should I rather be looking at fixing up netperf to support IB?
> 
> thanks,
> grant
> 

That may be kind of hard, given that uverbs API is completely different
from socket API.

-- 
MST - Michael S. Tsirkin



More information about the general mailing list