Date: Thu, 28 Jan 1999 13:02:14 -0700 (MST) From: "Kenneth D. Merry" <ken@plutotech.com> To: pantzer@ludd.luth.se (Mattias Pantzare) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Device statistics Message-ID: <199901282002.NAA75707@panzer.plutotech.com> In-Reply-To: <199901281954.UAA05490@zed.ludd.luth.se> from Mattias Pantzare at "Jan 28, 99 08:54:38 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Mattias Pantzare wrote... > > > > That means that I can't use the current time to subtreact from boot time, as > > > that won't give the same time... > > > > > > If getmicrouptime was recorded in devstat when the sample is taken that > > > would work to (even better). > > > > If you look at last_comp_time, that's the time of the most recent > > transaction completion, as reported by getmicrouptime(). > > That time is not helping me. To calculate the percent of busy time I have to > account for the ongoing transaction from start_time to the time that the > sample was taken. The time of the most recent transaction is only relevant if > it happend when I took my sample. What's wrong with just looking at the busy_time value that the kernel keeps track of? If you really want an accurate version of the current system uptime, you should probably talk to Poul-Henning about it. Providing the current uptime is more of a generic service, and not something that would "fit" into devstat.. Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901282002.NAA75707>