cpu utilization question in FreeBSD

Stefan Parvu sparvu at systemdatarecorder.org
Wed Feb 3 08:22:30 UTC 2010


Hi,

Im trying to put together a number of data recorders, to collect
raw data from kernel or from applications. Here you can see a basic
idea of SDR:
  http://www.systemdatarecorder.org/recording/recdesign.html
  http://www.systemdatarecorder.org/recording/recorders.html

Im currently trying to port sysrec,
http://www.systemdatarecorder.org/recording/sdr_bin/sysrec
to FreeBSD. I would like to understand how CPU Utilization
in FreeBSD counts, comparing to Solaris. Currently sysrec
records the following metrics:

# Utilisation,
#           CPU            # usr + sys time across all CPUs
#           Memory         # free RAM. freemem from availrmem
#           Disk           # %busy. r+w times across all Disks
#           Network        # throughput. r+w bytes across all NICs
#
# Saturation,
#           CPU            # threads on the run queue
#           Memory         # scan rate of the page scanner
#           Disk           # operations on the wait queue
#           Network        # errors due to buffer saturation
#

Would be fair to count CPU Util in FreeBSD similar with Solaris,
User + System time ? Is there any Perl module or KSTAT functionality
which exports these functionalities to userland for simple consumption ?

Thanks,
Stefan



More information about the freebsd-questions mailing list