From owner-freebsd-questions@FreeBSD.ORG Fri Jun 23 11:47:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FAAD16A4A6 for ; Fri, 23 Jun 2006 11:47:50 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from matrix.teledomenet.gr (dns1.teledomenet.gr [213.142.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id F40E943D82 for ; Fri, 23 Jun 2006 11:47:47 +0000 (GMT) (envelope-from nvass@teledomenet.gr) Received: from iris ([192.168.1.71]) by matrix.teledomenet.gr (8.12.10/8.12.10) with ESMTP id k5NBljEY013761; Fri, 23 Jun 2006 14:47:45 +0300 From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Fri, 23 Jun 2006 14:43:47 +0300 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606231443.47994.nvass@teledomenet.gr> Cc: Matt Ruzicka Subject: Re: Tracking if disk is busy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 11:47:50 -0000 On Friday 23 June 2006 01:12, Matt Ruzicka wrote: > We've got a couple servers that appear to have particularly busy disks and > I was trying to determine if there is a way to more easily poll this data > for tracking. > > I'm not sure if this is one of those can't see the forest for the trees > issues or not, but the only means that I am familiar with to see the > percentage of time the disk is busy is to run 'systat -vmstat'. I was > hoping for something more concise that I could run periodically and maybe > even graph (realizing that watching this might well distort the results). > > It appears that iostat on Solaris gives this information, but I can't seem > to mimic this functionality with FreeBSD. > > Are there other ways in FreeBSD to pull the percentage of time the disk is > busy? > gstat gives percentage load per (device|slice|partition) which is what I think you need. but it's written for interactive use, it issues commands to the terminal so you cannot have its output to file...