From owner-freebsd-current Mon Apr 27 15:31:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA26882 for freebsd-current-outgoing; Mon, 27 Apr 1998 15:31:52 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from panzer.plutotech.com (ken@panzer.plutotech.com [206.168.67.125]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA26850; Mon, 27 Apr 1998 15:31:44 -0700 (PDT) (envelope-from ken@panzer.plutotech.com) Received: (from ken@localhost) by panzer.plutotech.com (8.8.8/8.8.5) id QAA28863; Mon, 27 Apr 1998 16:31:42 -0600 (MDT) From: "Kenneth D. Merry" Message-Id: <199804272231.QAA28863@panzer.plutotech.com> Subject: Re: DK_NDRIVE In-Reply-To: <14000.893709547@gjp.erols.com> from Gary Palmer at "Apr 27, 98 04:39:07 pm" To: gpalmer@FreeBSD.ORG (Gary Palmer) Date: Mon, 27 Apr 1998 16:31:42 -0600 (MDT) Cc: current@FreeBSD.ORG, jimhart@webspan.net X-Mailer: ELM [version 2.4ME+ PL28s (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Gary Palmer wrote... > > Since more and more systems now have >> 8 drives, could we increase the > constant in so that iostat, systat et all can see them? > Or perhaps depreciate dkstat in favour of exporting some other way? > Compile time constants like this are annoying... Don't worry about it, it's already been done. The devstat code that is in the CAM tree will hopefully replace the dk* stuff. It dynamically adjusts to the number of devices in the system, and all devices are accessible via iostat or whatever else. (the devices are exported using a sysctl variable) Once I get done porting systat and vmstat, we may be able to look at putting the devstat stuff into -current. (iostat is already done) If you want to take a look at the CAM stuff, look at: ftp://ftp.FreeBSD.org/pub/FreeBSD/cam/README or ftp://ftp.kdm.org/pub/FreeBSD/cam/README for the requirements for running it. The patches vs. current are in the same directory. The files to look at for the devstat code are: src/sys/kern/subr_devstat.c src/sys/sys/devicestat.h src/usr.sbin/iostat/* Ken -- Kenneth Merry ken@plutotech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message