From owner-freebsd-hackers Sat Dec 23 06:57:32 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA12831 for hackers-outgoing; Sat, 23 Dec 1995 06:57:32 -0800 (PST) Received: from mailgate.ericsson.se (mailgate.ericsson.se [130.100.2.2]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA12825 for ; Sat, 23 Dec 1995 06:57:30 -0800 (PST) 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 PAA10709 for ; Sat, 23 Dec 1995 15:57:22 +0100 Received: from sws021.sa.erisoft.se by sa.erisoft.se (4.1/SMI-4.1-ERIS0.99) id AA24484; Sat, 23 Dec 95 15:57:21 +0100 From: Mattias.Gronlund@sa.erisoft.se (Mattias Gronlund) Received: by sws021.sa.erisoft.se (5.x/client-1.3) id AA04185; Sat, 23 Dec 1995 15:56:50 +0100 Message-Id: <9512231456.AA04185@sws021.sa.erisoft.se> Subject: iostat and msps To: freebsd-hackers@FreeBSD.ORG Date: Sat, 23 Dec 1995 15:56:49 +0100 (MET) 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 use iostat to check how busy a my disks are, but the scsi-disk whant give me a value for msps. After lookung in the source I found that the sd device didn't implement dk_busy flag. After that I did a simple implementation of db_busy I found that iostat used dk_wpms to calculate msps but dk_wpms is a constant, why is that?? So my question is, why try to calculate msps from a constat that what I guess seldom have a value even near the corrspondign value for the drive?? wouldn't it be better just to give a value that says how many percent of the time the drive where busy? An other question that arise when I implemented dk_busy for the sd driver was what happen i I have more disks than DK_NDRIVE drives? shouldn't the dk_xxx variabels be better to have dynamic? /Mattias PS. A just have to thank for a wonderfull OS, thanks all who have contributed to this project! DS.