From owner-freebsd-hackers Thu Jan 28 11:55:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA02872 for freebsd-hackers-outgoing; Thu, 28 Jan 1999 11:55:05 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zed.ludd.luth.se (zed.ludd.luth.se [130.240.16.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA02828 for ; Thu, 28 Jan 1999 11:54:57 -0800 (PST) (envelope-from pantzer@sister.ludd.luth.se) Received: from sister.ludd.luth.se (pantzer@sister.ludd.luth.se [130.240.16.77]) by zed.ludd.luth.se (8.8.5/8.8.5) with SMTP id UAA05490; Thu, 28 Jan 1999 20:54:39 +0100 Message-Id: <199901281954.UAA05490@zed.ludd.luth.se> X-Mailer: exmh version 2.0.2 2/24/98 To: "Kenneth D. Merry" cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Device statistics In-reply-to: Your message of "Thu, 28 Jan 1999 12:43:07 MST." <199901281943.MAA75529@panzer.plutotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Jan 1999 20:54:38 +0100 From: Mattias Pantzare Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message