DTrace by Example: Solving a Real-World Problem

in Categories Howto, Solaris, Sys admin, Troubleshooting, Tuning, UNIX last updated February 21, 2007

This article shows the use of DTrace to solve a real-life problem, following the reasoning behind the process. The author presents short scripts and explains the language fragments used.

Dynamic Tracing (DTrace) in the Solaris 10 OS is too complex to cover in just one short article. Here the author explores how DTrace can be used to solve one real-life problem. The article follows the reasoning used — the “if”, the “when”, and the “why” — and takes the reader along on the journey. Short scripts are presented, as well as explanations of the language fragments used.


* Introduction
* The Application Domain
* A Short Introduction to DTrace
* The Initial Situation
* Watching the Children of the Process
* doorfs: What Is It?
* Name Service Cache Daemon
* References

=> Download the document as PDF.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 0 comments/add one below):