Mithun's Memoirs

« Previous day (Nov 18, 2008) | Main | Next day (Nov 19, 2008) »
Wednesday Nov 19, 2008

Solaris kernel statistics with libkstat

The Solaris operating system kernel provides a set of functions and data structures for device drivers and other kernel modules to export module-specific statistics to the outside world. This infrastructure,is referred to as kstat, provided by they library - libkstat. The Solaris libkstat library contains the C-language functions for accessing kstats from an application. The following blog post demonstrates how the memory statistics could be gathered and consumed in a real-world situation. Detailed explanations are not available, but a the source code provided herewith and the references provided should suffice.

[Read More]