Date: Sun, 09 Mar 2003 09:15:23 +0100 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> Cc: Nate Lawson <nate@root.org>, cvs-src@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: cvs commit: src/sys/sys devicestat.h Message-ID: <81271.1047197723@critter.freebsd.dk> In-Reply-To: Your message of "Sun, 09 Mar 2003 08:15:36 %2B0100." <70769.1047194136@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?81271.1047197723>