From owner-freebsd-current@FreeBSD.ORG Sat Apr 16 21:45:49 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B65B16A4CE for ; Sat, 16 Apr 2005 21:45:49 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 303F043D2D for ; Sat, 16 Apr 2005 21:45:49 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j3GLjla3089651; Sat, 16 Apr 2005 16:45:47 -0500 (CDT) (envelope-from dan) Date: Sat, 16 Apr 2005 16:45:47 -0500 From: Dan Nelson To: Poul-Henning Kamp Message-ID: <20050416214547.GS4842@dan.emsphone.com> References: <42616D77.2070205@centtech.com> <4281.1113685517@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4281.1113685517@critter.freebsd.dk> X-OS: FreeBSD 5.4-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: FreeBSD Current cc: Eric Anderson Subject: Re: gstat shows > 100% busy X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 21:45:49 -0000 In the last episode (Apr 16), Poul-Henning Kamp said: > In message <42616D77.2070205@centtech.com>, Eric Anderson writes: > >> The "ms/r" and "ms/w" give you the time it takes to send a > >> transaction through (in milliseconds, for read and write > >> respectively) and those are the numbers you should monitor. > > These on the other hand are what people really care about: how fast > (or slow) will it be to access the disk. If you run a disk benchmark > you will notice that the service time has seismographic sensitivity, > run a stupid access pattern and it explodes into the 100s of > milliseconds. > > >Is there a place to grab those stats in a more 'script friendly' > >way? I am the author of a (rather cheesy) tool called bsdsar, and > >I'm thinking about updating it with all the new cool 5.X-isms. > > Go for it. There is a pretty simple API to pull it out of the > kernel, check the gstat source. Also see the devstat manpage and the source to iostat. -- Dan Nelson dnelson@allantgroup.com