I like iostat, but...

Borja Marcos borjamar at sarenet.es
Wed Sep 24 15:16:22 UTC 2014





> On 24/9/2014, at 17:09, David Wolfskill <david at catwhisker.org> wrote:
> 
> 
>> On Tue, Sep 23, 2014 at 10:45:14AM +0200, Borja Marcos wrote:
>> ... 
>> Anyway, for disk stats GEOM offers a nice API. You can get delays per GEOM provider, bandwidths, etc.
> 
>> 
> 
> 
> Folks, I appreciate the suggestions, but they address problems other
> than the one I am trying to solve.
> 
> 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.


> 
> 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). Just format the output  data as you wish ;)

But you don't need Orca. The agent just creates text files. 

Cheers,




Borja.


More information about the freebsd-performance mailing list