Mithun's Memoirs

« Virtualization for... | Main
Wednesday Nov 19, 2008

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 :



  1. Solaris kernel statistics (Part I)

  2. Solaris kernel statistics (Part II)

  3. Solaris 64-bit developers guide

  4. An article on the Kstat API




Comments:

Post a Comment:
  • HTML Syntax: NOT allowed