From owner-freebsd-performance@FreeBSD.ORG Wed Sep 24 15:16:22 2014 Return-Path: Delivered-To: freebsd-performance@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABAEBFB4 for ; Wed, 24 Sep 2014 15:16:22 +0000 (UTC) Received: from cu01176a.smtpx.saremail.com (cu01176a.smtpx.saremail.com [195.16.150.151]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 66673B5B for ; Wed, 24 Sep 2014 15:16:22 +0000 (UTC) Received: from [172.16.1.232] (izaro.sarenet.es [192.148.167.11]) by proxypop03.sare.net (Postfix) with ESMTPSA id 8319A9DD043 for ; Wed, 24 Sep 2014 17:16:13 +0200 (CEST) From: Borja Marcos Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: I like iostat, but... Message-Id: <5DBB0BDC-92FB-44FF-8869-67CFA2B52C26@sarenet.es> Date: Wed, 24 Sep 2014 17:16:14 +0200 References: <20140924150915.GC1221@albert.catwhisker.org> In-Reply-To: <20140924150915.GC1221@albert.catwhisker.org> To: "freebsd-performance@FreeBSD.org" X-Mailer: iPad Mail (12A365) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2014 15:16:22 -0000 > On 24/9/2014, at 17:09, David Wolfskill wrote: >=20 >=20 >> On Tue, Sep 23, 2014 at 10:45:14AM +0200, Borja Marcos wrote: >> ...=20 >> Anyway, for disk stats GEOM offers a nice API. You can get delays per GEO= M provider, bandwidths, etc. >=20 >>=20 >=20 >=20 > Folks, I appreciate the suggestions, but they address problems other > than the one I am trying to solve. >=20 > In particular: > * I require that the tool must only depend on components of base FreeBSD; > thus, I don't need to perturb the system I want to measure by > installing otherwise unneeded software on it. Devilator has no dependencies. It reads sysctl and geom. >=20 > Basically, I have something that works "well enough" for things > like CPU counters, memory usage (at the rather coarse granularity > that top(1) provides, vs. "vmstat -m" output), load avergaes, and > NIC counters, and is readily extensible to any univariate (or simple > list of multivariate) (non-opaque) sysctl OIDs. I'd like to be > able to include information from the I/O subsystem -- in particular, > data that is accessible from "iostat -x". Check the diskbw.c module. Actually Most of it is borrowed from gstat(8). Ju= st format the output data as you wish ;) But you don't need Orca. The agent just creates text files.=20 Cheers, Borja.