[openib-general] cycles_to_units is incorrect in rdma_lat, rdma_bw.
Shirley Ma
xma at us.ibm.com
Thu Jun 9 16:14:17 PDT 2005
I used cyclets_to_units() get
Bandwidth peak (#0 to #972): 1852.72 MByte/sec
Bandwidth average: 1852.67 MByte/sec
Which is far away from the 1X (2.5Gbit/s) throughtput.
This per secs cycles value is incorrect. Either change the measurment to
gettimeofday() to measure MB/s or
measure the how many cycles per sec by doing something like that:
#define MEASURE_TIME 16
get_cycles(tbegin);
sleep(MEASURE_TIME);
get_cycles(tend)
cycles_to_units = (tend-tbegin)/MEASURE_TIME
to caculate the right MB/s throughput.
Thanks
Shirley Ma
IBM Linux Technology Center
15300 SW Koll Parkway
Beaverton, OR 97006-6063
Phone(Fax): (503) 578-7638
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050609/d4ad7963/attachment.html>
More information about the general
mailing list