Postmortem Tracing

Version 1 by jon_haslam
on Nov 23, 2007 08:57.

compared with
Current by jon_haslam
on Nov 27, 2007 07:05.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View page history
{warning:title=Warning}This page is under construction - do not use!{warning}
{anchor:top}
h1. {anchor:CHP-POST} Postmortem Tracing
This chapter describes the DTrace facilities for _postmortem_ extraction and processing of the in-kernel data of DTrace consumers. In the event of a system crash, the information that has been recorded with DTrace may provide the crucial clues to root-cause the system failure. DTrace data may be extracted and processed from the system crash dump to aid you in understanding fatal system failures. By coupling these postmortem capabilities of DTrace with its ring buffering buffer policy (see [Chapter 11, Buffers and Buffering FIX|Title]), Buffering|Buffers and Buffering]), DTrace can be used as an operating system analog to the _black box_ flight data recorder present on commercial aircraft.\\
\\To extract DTrace data from a specific crash dump, you should begin by running the Solaris Modular Debugger, [{{mdb}}(1)|http://docs.sun.com/doc/819-2239/mdb-1?a=view], on the crash dump of interest. The MDB module containing the DTrace functionality will be loaded automatically. To learn more about MDB, refer to the [??Solaris Modular Debugger Guide??|http://docs.sun.com/doc/817-2543].
...
{noformat}
Notice that {{::dtrace}} only processes _in-kernel_ DTrace data. Data that has been consumed from the kernel and processed (through [{{dtrace}}(1M)|http://docs.sun.com/doc/819-2240/dtrace-1m?a=view] or other means) will not be available to be processed with {{::dtrace}}. To assure that the most amount of data possible is available at the time of failure, use a ring buffer buffering policy. See [Chapter 11, Buffers and Buffering FIX|Title] Buffering|Buffers and Buffering] for more information on buffer policies.\\
\\The following example creates a very small (16K) ring buffer and records all system calls and the process making them:
{noformat}

The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact