From owner-cvs-src Sun Mar 9 0:15:28 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E655237B404; Sun, 9 Mar 2003 00:15:25 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9462043F3F; Sun, 9 Mar 2003 00:15:24 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h298FNNw081272; Sun, 9 Mar 2003 09:15:23 +0100 (CET) (envelope-from phk@phk.freebsd.dk) Cc: Nate Lawson , cvs-src@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/sys devicestat.h From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 09 Mar 2003 08:15:36 +0100." <70769.1047194136@critter.freebsd.dk> Date: Sun, 09 Mar 2003 09:15:23 +0100 Message-ID: <81271.1047197723@critter.freebsd.dk> Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Here is a small gadget for people to play with if they want to see where this is going: http://phk.freebsd.dk/misc/Gstat.tgz extract and run make. Now start the program: ./gstat and you will get a curses screen like this: -------------------------------------------------------------------------- dT: 0.510 flag_I 500000us sizeof 184 i -1 L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name 0 0| 0 0 . | 0 0 . | 0.0| geom.ctl 0 0| 0 0 . | 0 0 . | 0.0| ad0 0 0| 0 0 . | 0 0 . | 0.0| ad0s1 0 0| 0 0 . | 0 0 . | 0.0| ad4 0 0| 0 0 . | 0 0 . | 0.0| ad0s1a 0 0| 0 0 . | 0 0 . | 0.0| ad0s1b 0 0| 0 0 . | 0 0 . | 0.0| ad0s1c 0 0| 0 0 . | 0 0 . | 0.0| ad0s1d 0 0| 0 0 . | 0 0 . | 0.0| ad0s1e 0 0| 0 0 . | 0 0 . | 0.0| ad0s1f 0 0| 0 0 . | 0 0 . | 0.0| ad0s1g 0 0| 0 0 . | 0 0 . | 0.0| ad0s1h 1 8| 0 0 . | 6 78 0.62| 0.4| da0 0 10| 0 0 . | 10 133 0.61| 0.6| da1 1 16| 0 0 . | 14 212 0.70| 1.0| ccd0 -------------------------------------------------------------------------- dT is the measurement interval in seconds. flag_I is the interval we attempt to use in microseconds. (You can change this with the '<' and '>' keys which double/half the interval.) L(q) is the queue length, you need to run with short updates or be lucky (as I were above) to see this being non-zero, disks are, after all, pretty fast. ops/s is the number of operations per second. r/s is read operations per second kBps is number of kilobytes read per second ms/r is the average number of milliseconds per read. w/s, kBps and ms/w are the same, only for writes. %busy is the percentage of time where at least one request is outstanding. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message