From owner-freebsd-hackers Fri Nov 10 14:28:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (Postfix) with ESMTP id D9CA737B479 for ; Fri, 10 Nov 2000 14:28:45 -0800 (PST) Received: (from daemon@localhost) by smtp01.primenet.com (8.9.3/8.9.3) id PAA13181; Fri, 10 Nov 2000 15:27:43 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp01.primenet.com, id smtpdAAA8caO0w; Fri Nov 10 11:32:16 2000 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id LAA23780; Fri, 10 Nov 2000 11:33:03 -0700 (MST) From: Terry Lambert Message-Id: <200011101833.LAA23780@usr08.primenet.com> Subject: Re: "iowait" CPU state To: float@firedrake.org (void) Date: Fri, 10 Nov 2000 18:33:03 +0000 (GMT) Cc: hackers@FreeBSD.ORG In-Reply-To: <20001110050823.A10063@firedrake.org> from "void" at Nov 10, 2000 05:08:23 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Thank you! This gets the me disk %busy, which is one of the things I > was looking for. Now, can anyone tell me how to tell what percentage of > processor time is being spent waiting for disk I/O to complete? Uh, none? If there is disk I/O pending, the processor just runs a different process... am I missing your question? Are you maybe asking what percentage of time a given process spends waiting on disk I/O, thather than doing processing? A rough approximation of this would be (system time/(user time + system time))*100. Using the wall time would not take other processes use of the CPU into account, but you might consider using that anyway, depending on why you want the statistic. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message