From owner-freebsd-geom@FreeBSD.ORG Wed Feb 2 19:09:18 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 C5FD616A4CE for ; Wed, 2 Feb 2005 19:09:18 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B95F43D45 for ; Wed, 2 Feb 2005 19:09:18 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j12J9GdW001304; Wed, 2 Feb 2005 20:09:16 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Chris Elsworth From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 02 Feb 2005 11:17:38 GMT." <20050202111738.GA91357@shagged.org> Date: Wed, 02 Feb 2005 20:09:16 +0100 Message-ID: <1303.1107371356@critter.freebsd.dk> Sender: phk@critter.freebsd.dk 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: Wed, 02 Feb 2005 19:09:18 -0000 In message <20050202111738.GA91357@shagged.org>, Chris Elsworth writes: >Hello, > >I'm sure there must be a way to do this, but I'm having a good deal of >trouble finding it. > >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. > >I haven't tried snmpd with UCD-DISKIO-MIB yet, but I'd rather not have >to use that to get the values. > >Is this possible, or is it something that might make it into future >versions of geom classes? the info is all there, look at the gstat source code and modify as necessary. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.