Port-i386 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: measuring x86 idle time?



On Fri, May 09, 2008 at 04:59:58AM +0000, Michael van Elst wrote:
> dyoung%pobox.com@localhost (David Young) writes:
> 
> >In NetBSD, is there a way to measure the amount of time that an x86 CPU
> >has spent executing no instructions since boot?  I.e., idle time spent
> >in hlt?  If I have to hack the kernel to do it, that's ok.
> 
> sysctl kern.cp_time ?

Thanks.  That appears to be in 1/hz units.  The numbers add to the uptime
and everything! :-)

Looks like my system is mainly idle, just as I suspected.

Are there virtual hosting services that will not bill me for the time
that my NetBSD/i386/amd64/xen system is idle?

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 278-3933 ext 24


Home | Main Index | Thread Index | Old Index