Solaris kernel statistics with libkstat
Recently, Juergen Zimmermann, our Technical lead for SAP Business and I worked on a project to gather the Solaris kernel statistics from the application layer. As the gathered data was consumed by the application itself, libkstat was decided as the optimal tooling. DTrace could do pretty much the same thing, but that wasn't pertinent to the problem at hand. So, we used libKstat. We experimented with the libkstat facility and we've written a small program that demonstrates how libkstat could be used. I've provided the source code and the make file for download. Please download the zip file and take a look at the source. Its pretty straight forward. I shall not be dealing with the source code or the instrumentation aspects that went into the code. For an in-depth article on kstat, please take a look at the references below.
References :
Posted at 11:42AM Nov 19, 2008 by mithun in Code Camp | Comments[0]