From owner-freebsd-performance@FreeBSD.ORG Tue Sep 23 06:57:03 2014 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B9C3EBAC for ; Tue, 23 Sep 2014 06:57:03 +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 74E36829 for ; Tue, 23 Sep 2014 06:57:02 +0000 (UTC) Received: from [172.16.2.2] (izaro.sarenet.es [192.148.167.11]) by proxypop03.sare.net (Postfix) with ESMTPSA id 574459DD1D2; Tue, 23 Sep 2014 08:56:58 +0200 (CEST) Subject: Re: I like iostat, but... Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Borja Marcos In-Reply-To: <20140922212209.GA9619@albert.catwhisker.org> Date: Tue, 23 Sep 2014 08:56:54 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <35F9FD7B-6847-4209-A2F9-B1F0ABD01E4C@sarenet.es> References: <20140922212209.GA9619@albert.catwhisker.org> To: David Wolfskill X-Mailer: Apple Mail (2.1283) Cc: freebsd-performance@freebsd.org 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: Tue, 23 Sep 2014 06:57:03 -0000 On Sep 22, 2014, at 11:22 PM, David Wolfskill wrote: > ... I rather wish I could get the same information via sysctl. (Well, > something seems to be available via the "opaque" kern.devstat.all > sysctl(8) variable, but sysctl(8) doesn't display all of it, and = parsing > it seems as if that would require knowledge about the internals of the > system where the data were acquired.) Reading sysctl from a small C program is not hard at all. I did it for = devilator (a data recollector for Orca). And there's a lot of data available. An advantage is, you avoid launching = several processes. Borja.