From owner-freebsd-fs@FreeBSD.ORG Wed Oct 12 13:42:18 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9D1B1065676; Wed, 12 Oct 2011 13:42:18 +0000 (UTC) (envelope-from patpro@patpro.net) Received: from rack.patpro.net (rack.patpro.net [193.30.227.216]) by mx1.freebsd.org (Postfix) with ESMTP id 6A0928FC22; Wed, 12 Oct 2011 13:42:18 +0000 (UTC) Received: from rack.patpro.net (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP id 1262F1CC038; Wed, 12 Oct 2011 15:42:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at patpro.net Received: from amavis-at-patpro.net ([127.0.0.1]) by rack.patpro.net (rack.patpro.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GAGxTzenhZhn; Wed, 12 Oct 2011 15:42:15 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by rack.patpro.net (Postfix) with ESMTP; Wed, 12 Oct 2011 15:42:15 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/signed; boundary=Apple-Mail-28-817318118; protocol="application/pkcs7-signature"; micalg=sha1 From: Patrick Proniewski In-Reply-To: <86ipnwg1s0.fsf@kopusha.home.net> Date: Wed, 12 Oct 2011 15:42:14 +0200 Message-Id: <94455706-B90D-4DBD-A7DE-E9A38F118D35@patpro.net> References: <20110915120007.F41FF10656E1@hub.freebsd.org> <4B8C8026-1E12-4C32-88E3-9B34A3E58A91@patpro.net> <86ipnwg1s0.fsf@kopusha.home.net> To: Mikolaj Golub X-Mailer: Apple Mail (2.1084) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: measuring IO asynchronously X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2011 13:42:18 -0000 --Apple-Mail-28-817318118 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 10 oct. 2011, at 20:05, Mikolaj Golub wrote: > On Mon, 10 Oct 2011 16:33:11 +0200 Patrick Proniewski wrote: > PP> I would like to monitor the storage on various FreeBSD servers, > PP> especially I/O per seconds. Is there any way to gather statistics > PP> about I/O via asynchronous request, lets say, for example, using a > PP> munin plugin? `iostat -w 1` and `zpool iostat tank 1` are > PP> interesting, but not useable asynchronously. >=20 > I use for this a simple program that I wrote some time ago. It uses = devstat(9) > kernel interface and outputs counters, like below >=20 > kopusha:~% devstat ada0 =20 > ada0: > 1339552256 bytes read > ../.. > You can find it in ports (sysutils/devstat). Thank you Mikolaj, I'm going to give it a try! regards, Patrick= --Apple-Mail-28-817318118--