Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2014 08:56:54 +0200
From:      Borja Marcos <borjam@sarenet.es>
To:        David Wolfskill <david@catwhisker.org>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: I like iostat, but...
Message-ID:  <35F9FD7B-6847-4209-A2F9-B1F0ABD01E4C@sarenet.es>
In-Reply-To: <20140922212209.GA9619@albert.catwhisker.org>
References:  <20140922212209.GA9619@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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.








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35F9FD7B-6847-4209-A2F9-B1F0ABD01E4C>