[openib-general] cycles_to_units is incorrect in rdma_lat, rdma_bw.

Shirley Ma xma at us.ibm.com
Thu Jun 9 22:13:13 PDT 2005


>I think adding such a calibration to get_cpu_mhz()
>so we can warn if /proc/cpuinfo data doesn't agree with
>gettimeofday() and get_cycles().

using below to calculate the cycles_to_unit is more accurate.

        clock_gettime();
        get_cycles();
        sleep(5);
        clock_gettime();
        get_cycles();

cycles_to_unit = offset - cycles/ offset - time;


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/ba844d09/attachment.html>


More information about the general mailing list