From owner-freebsd-geom@FreeBSD.ORG Thu Feb 3 10:35:56 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8D6016A4CE for ; Thu, 3 Feb 2005 10:35:56 +0000 (GMT) Received: from clueful.shagged.org (clueful.shagged.org [212.13.201.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A28A43D4C for ; Thu, 3 Feb 2005 10:35:56 +0000 (GMT) (envelope-from chris@clueful.shagged.org) Received: from chris by clueful.shagged.org with local (Exim 4.40 (FreeBSD)) id 1CweL1-000LqU-RV; Thu, 03 Feb 2005 10:35:51 +0000 Date: Thu, 3 Feb 2005 10:35:51 +0000 From: Chris Elsworth To: Poul-Henning Kamp Message-ID: <20050203103551.GA83867@shagged.org> References: <20050202111738.GA91357@shagged.org> <1303.1107371356@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1303.1107371356@critter.freebsd.dk> User-Agent: Mutt/1.5.6i Sender: Chris Elsworth X-Shagged-MailScanner-Information: See www.mailscanner.info for information X-Shagged-MailScanner: Found to be clean X-MailScanner-From: chris@clueful.shagged.org cc: freebsd-geom@freebsd.org Subject: Re: Disk statistics since boot? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Feb 2005 10:35:56 -0000 On Wed, Feb 02, 2005 at 08:09:16PM +0100, Poul-Henning Kamp wrote: > > > >I'd like to be able to see how many transactions have been done and > >how many bytes have been read/written to a given disk since boot. The > >closest I can seem to get is iostat -dI, but that doesn't separate the > >values out into read and write. > > the info is all there, look at the gstat source code and modify > as necessary. Hello, Got it, devstat_compute_statistics() with a NULL second arg. Thanks for the pointer :) -- Chris