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

Michael S. Tsirkin mst at mellanox.co.il
Wed Jun 15 08:13:53 PDT 2005


Quoting r. Grant Grundler <iod00d at hp.com>:
> Subject: Re: cycles_to_units is incorrect in rdma_lat, rdma_bw.
> 
> On Thu, Jun 09, 2005 at 10:17:33PM -0700, Shirley Ma wrote:
> > > Please provide "cat /proc/cpuinfo" output so I can rule out
> > > broken firmware and look for something else.
> > 
> > processor       : 0
> > cpu             : PPC970, altivec supported
> > clock           : 1600.000000MHz
> > revision        : 2.2
> 
> Ah no wonder...every other arch uses "cpu MHz".
> 
> > I modified the get_cpu_mhz() to for PPC. 
> >         rc = sscanf(buf, "clock : %lf", &m);
> 
> Is 1600Mhz correct? I'm assuming it is.
> Does the attached patch work for you?
> 
> It will allow PPC to change to "cpu MHz" and it will still work.
> Or accomodate other arches that might have cloned PPC code.
> 
> grant

I checked that in.
Thanks!

-- 
MST



More information about the general mailing list