Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!hp9000.csc.cuhk.hk!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!devnull!altair!fmayhar
From: fmayhar@altair.mpd.tandem.com (Frank Mayhar)
Newsgroups: comp.unix.bsd
Subject: Disk statistics on 386bsd, and porting vmstat.
Message-ID: <2930@devnull.mpd.tandem.com>
Date: 17 Nov 92 23:14:35 GMT
Sender: news@devnull.mpd.tandem.com
Reply-To: fmayhar@mpd.tandem.com
Organization: Tandem Computers (MPD) Austin, TX
Lines: 31
I've finally gotten 386bsd up and running on my 486 at home, with all patches
installed, and things appear to be working great.
So, I noticed that the distribution didn't include a 'vmstat' command, so I
can't see all those fancy statistics that I'm used to seeing on my Sun at work.
Hmm, OK, I'll get the BSD one on ftp.uu.net, and port it. Early on I notice
that there are little or no disk statistics being kept! I'm specifically
referring to the statistics in <sys/dkstat.h>, more specifically things like
dk_xfer and dk_busy (which lets kern_clock keep dk_time), et al.
Actually, the statistics in the generic kernel (what there are of them) all
appear to be there, but nothing is kept in the i386 device drivers. I grabbed
the tahoe stuff from ftp.uu.net for a reference, and it's all there, so I'm a
tad confused.
So my first question is, why is this? Secondly, is anyone working on instru-
menting wd.c, as.c, fd.c, etc. (is that all of them?) for this capability? I
can see that it will take changes to the isa_device and isa_driver structures,
as well as changes to isa_configure() and the device drivers themselves.
As you can see, I've actually already started looking into it, but I want to
know if anyone else is doing work here before I get too committed. Perhaps we
can share expertise and split up the work. I'm also investigating Tom Ivar
Helbekkmo's wd driver, and may use that as a starting point, rather than the
distributed one.
Any suggestions, information, advice would be appreciated. Thanks.
--
Frank Mayhar fmayhar@mpd.tandem.com
Tandem Computers, Inc. Micro Products Division
14231 Tandem Blvd., Austin, TX 78728 Phone: (512) 244-8969