O'Reilly logo

Solaris by Brendan Gregg, Jim Mauro, Richard McDougall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Kernel Statistics

With contributions from Peter Boothby

The Solaris 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, referred to as kstat, provides the following to the Solaris software developer:

  • C-language functions for device drivers and other kernel modules to present statistics

  • C-language functions for applications to retrieve statistics data from Solaris without needing to directly read kernel memory

  • Perl-based command-line program /usr/bin/kstat to access statistics data interactively or in shell scripts (introduced in Solaris 8)

  • Perl library interface for constructing custom performance-monitoring utilities ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required