[netperf-talk] negative CPU utilization

Rick Jones rick.jones2 at hp.com
Thu May 28 11:49:22 PDT 2009


> I'm not sure.  I've been mainly a kernel/driver guy for the last 15
> years, and never deal with anything but integer arithmetic, so I've
> forgotten all the integer/floating point conversion rules that I
> learned doing scientific programming for a college internship. :) I
> just tried to preserve the existing types (which I think were doing
> the same uint64t -> float thing).  Also, netlib.h declares
> lib_local_per_cpu_util as a float, and its used in all the other
> netcpu* modules.
> 
> If that doesn't inspire you with overwhelming confidence, then
> consider that the total_ticks here is a difference, so its unlikely to
> be larger than 32-bits anyway, unless a single netperf test has been
> running for weeks or months.

I'm content to let sleeping dogs lie.

rick


More information about the netperf-talk mailing list