Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
DTrace: Dynamic Tracing in Oracle Solaris, Mac OS X and FreeBSD 1st Edition
The Oracle Solaris DTrace feature revolutionizes the way you debug operating systems and applications. Using DTrace, you can dynamically instrument software and quickly answer virtually any question about its behavior. Now, for the first time, there's a comprehensive, authoritative guide to making the most of DTrace in any supported UNIX environment--from Oracle Solaris to OpenSolaris, Mac OS X, and FreeBSD.
Written by key contributors to the DTrace community, DTrace teaches by example, presenting scores of commands and easy-to-adapt, downloadable D scripts. These concise examples generate answers to real and useful questions, and serve as a starting point for building more complex scripts. Using them, you can start making practical use of DTrace immediately, whether you're an administrator, developer, analyst, architect, or support professional.
The authors fully explain the goals, techniques, and output associated with each script or command. Drawing on their extensive experience, they provide strategy suggestions, checklists, and functional diagrams, as well as a chapter of advanced tips and tricks. You'll learn how to
- Write effective scripts using DTrace's D language
- Use DTrace to thoroughly understand system performance
- Expose functional areas of the operating system, including I/O, filesystems, and protocols
- Use DTrace in the application and database development process
- Identify and fix security problems with DTrace
- Analyze the operating system kernel
- Integrate DTrace into source code
- Extend DTrace with other tools
This book will help you make the most of DTrace to solve problems more quickly and efficiently, and build systems that work faster and more reliably.
- ISBN-100132091518
- ISBN-13978-0132091510
- Edition1st
- PublisherPrentice Hall
- Publication dateJanuary 1, 2012
- LanguageEnglish
- Dimensions7 x 1.5 x 9 inches
- Print length1115 pages
Similar items that ship from close to you
Editorial Reviews
About the Author
Brendan Gregg is a performance specialist at Joyent and is known worldwide in the field of DTrace. Brendan created and developed the DTraceToolkit and is the coauthor of SolarisTM Performance and Tools (Prentice Hall, 2006) as well as numerous articles about DTrace. Many of Brendan's DTrace scripts are shipped by default in Mac OS X.
Jim Mauro is a senior software engineer for Oracle Corporation, working in the Systems group with a primary focus on systems performance. Jim has 30 years of experience in the computer industry and coauthored SolarisTM Performance and Tools and the first and second editions of SolarisTM Internals (Sun Microsystems Press, 2000, and Prentice Hall, 2006).
Product details
- Publisher : Prentice Hall; 1st edition (January 1, 2012)
- Language : English
- Paperback : 1115 pages
- ISBN-10 : 0132091518
- ISBN-13 : 978-0132091510
- Item Weight : 3 pounds
- Dimensions : 7 x 1.5 x 9 inches
- Best Sellers Rank: #1,806,144 in Books (See Top 100 in Books)
- #15 in Solaris Operating System
- #320 in Macintosh Operating System
- #760 in Software Testing
- Customer Reviews:
About the author

Brendan Gregg is an industry expert in computing performance and cloud computing. He is a senior performance architect at Netflix, where he does performance design, evaluation, analysis, and tuning. He is the author of multiple technical books including BPF Performance Tools published by Addison Wesley, and Systems Performance published by Prentice Hall. Brendan received the USENIX 2013 LISA Award for Outstanding Achievement in System Administration.
Brendan has created numerous performance analysis tools, which have been included in multiple operating systems. His recent work includes developing methodologies and visualizations for performance analysis, including flame graphs. Born in Australia and later working in the Asia Pacific region, he has lived in the US since 2006.
Customer reviews
- 5 star4 star3 star2 star1 star5 star74%17%9%0%0%74%
- 5 star4 star3 star2 star1 star4 star74%17%9%0%0%17%
- 5 star4 star3 star2 star1 star3 star74%17%9%0%0%9%
- 5 star4 star3 star2 star1 star2 star74%17%9%0%0%0%
- 5 star4 star3 star2 star1 star1 star74%17%9%0%0%0%
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
The book is well worth the purchase as a learning tool albeit less useful as a reference.
Part I gives you a complete DTrace Textbook. It breaks down the language and introduces you all the foundational concepts. It is brisk and every concept has an example making it extremely accessable.
Part II is the combination of several runbooks and a collection of cookbooks. For CPU, I/O, network, etc there is the same methodical systematic approach to exposing problems that we got in "Performance & Tools" but vastly expanded. After hitting all the fundamental resources it breaks down into various programming languages, databases, applications and daemons.
The true value of this book is here in Part II. You may know that you have a certain kind of problem, and you know that DTrace can probly find it for you, but you don't know where to start and in what order to proceed. If you do it on your own you may quickly find yourself overwhelmed and lost in the labyrinth that is the Solaris kernel. This is why the methodical approach Jim and Brendan take is so important, you really don't need to know anything more than you need to dig into some broad problem and the text leads you down the path of elimination and analysis step-by-step.
Part III hits tools, tips, and security. Learn how to spy on users, audit activity, use Apple Instruments or DTrace in NetBeans and lots more. Chapter 13 on tools is a great way to learn about all those tools out there that you may have heard of but aren't familiar with, or even introduce you to new toys you didn't know existed.
But thats not all... there are 7 Appendix, including a complete language reference, error message reference, and cheat sheet.
The important thing about this book is that it will actually help you solve real-world problems. A hardworking sysadmin doesn't have the time it takes to learn all the ins-and-outs of Solaris's kernel and learning all of DTrace's power can take years. The book is full of examples, I think have the page count has to be just code examples that you can actually use. This book is practical, accessible and will turn any Solaris administrator into an instant rock star.
As a tutorial, this book provides one of the most cogent introductions to Dtrace I have seen including web content and prior books. The book, in a couple of chapters, provides a good overview of the purpose and architecture of Dtrace, the D language semantics to rudimentary examples including the canonical "Hello World". As a tutorial is great for both the neophyte and seasoned engineers. The rest of the book continues tutorial delving into key subsystems (e.g. CPU, Memory, IO, low-level networking, filesystems, etc.) to language to application use of Dtrace. Each section will provide a good introduction and numerous valuable examples to the engineer interested in each respective area.
Probably the weakest aspect of this book is as a pure reference book but I don't think that is its intent. The book includes several valuable appendices on Dtrace Tunable Variables, D Language Reference, Provider Arguments, etc. However it is likely that most engineers will tag key sections that are relevant to their particular interests/needs.
Also a book of cool tips and tricks, this books has a huge number examples, Tips and Tricks section, Tools, etc. with every engineer (system, middleware, end-user application development) benefiting from the specific examples and/or the ideas being conveyed. I would say that this is especially useful for even the engineers who may already be familiar with Dtrace but haven't leveraged it's capabilities to the fullest.
However on the downside this book doesn't provide a comprehensive to non-dtrace based observability nor does it cover the limitations (e.g. data flow through network stack) and consequences of using dtrace (e.g. probe effect, etc.) at least from my review of the content. However as a resource it is very useful to both new hires and seasoned engineers and
is a complementary to the slightly dated "Solaris(tm) Performance and Tools: DTrace and MDB Techniques for Solaris 10 and OpenSolaris" book by Solaris(tm) by Richard McDougall, Jim Mauro and Brendan Gregg.
Overall a definite buy!

