cpu utilization break down via sysctl

Stefan Parvu sparvu at systemdatarecorder.org
Mon Aug 4 16:09:36 UTC 2014


Hi,

Im trying to understand if there is a simple way, without writing C code, to consume
sysctl interface via BSD::Sysctl or using sysctl(8) and output user, system and idle 
across all CPUs from a running system ?

Im trying to port sysrec [1] to FreeBSD and it seems a bit harder to find the correct
approach.

Pointers, comments ?

[1] - http://www.systemdatarecorder.org/recording/sysrec.html


Many thanks,
-- 
Stefan Parvu <sparvu at systemdatarecorder.org>


More information about the freebsd-hackers mailing list