From owner-freebsd-hackers Wed Feb 21 14:28:07 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA04850 for hackers-outgoing; Wed, 21 Feb 1996 14:28:07 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA04843 for ; Wed, 21 Feb 1996 14:28:03 -0800 (PST) Received: from mailgate.ericsson.se (mailgate.ericsson.se [130.100.2.2]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id OAA20524 for ; Wed, 21 Feb 1996 14:28:01 -0800 Received: from sa.erisoft.se (epls01.sa.erisoft.se [150.132.128.1]) by mailgate.ericsson.se (8.6.11/1.0) with SMTP id XAA26823 for ; Wed, 21 Feb 1996 23:26:36 +0100 Received: from sws021.sa.erisoft.se by sa.erisoft.se (4.1/SMI-4.1-ERIS0.99) id AA24453; Wed, 21 Feb 96 23:26:35 +0100 From: Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund) Received: by sws021.sa.erisoft.se (5.x/client-1.3) id AA02876; Wed, 21 Feb 1996 23:25:53 +0100 Message-Id: <9602212225.AA02876@sws021.sa.erisoft.se> Subject: iostat To: FreeBSD-hackers@FreeBSD.ORG Date: Wed, 21 Feb 1996 23:25:52 +0100 (MET) Cc: Mattias.Gronlund@sa.erisoft.se X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG Precedence: bulk Hi, I have been trying to implement a new version of iostat for FreeBSD for some time now and I think that it have become stable enough to let some one else test it. At the current stage it implements the -c -w options and the possibility to specify the order of the disk that it should display. It does not show any information about tty and cpu. Some extra features that is implemented are the -x mode (extended mode like Solaris), that give's information about service-time activity jobs waiting. The -l flag for "limit" is alos implemented and limits the number of drives that should be shown. I did also implement a -n flag that just give the old iostat information expect msps that is exchanged for service-time as a proposal for a new standard format for iostat. The implementation consist of two parts one kernel part and one user progra. The kernel part consist of a couple of functions that is called from the device-driver and that way make the effort needed to support more device-drivers low. Currently only the sd and fd drivers are supported because that's the only ones that I could test. Because of the need for better time percision the implementation curently uses microtime to get the time, but this is'nt realy that good, because it is possible for it to go backward! So if someone think that this is something that could be usefull for FreeBSD I would love to rewrite it for a simple clock that only should be useful to get delta times from, but with high percisiton. I have uploaded the sourcecode (files and diffs) as: ftp://ftp.FreeBSD.ORG/pub/FreeBSD/incomoing/iostat.960221.tar.gz But remember that this is the first release so it isn't a verry well tested version. /Mattias --- Any opinions in this posting are my own and not those of my present or previous employers.