Re: I like iostat, but...

Borja Marcos <[email protected]> Tue, 23 Sep 2014 08:56:54 +0200
Newsgroups gmane.os.freebsd.performance
Message-ID <[email protected]>
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.





_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "[email protected]"