Buy new:
-62% $22.61$22.61
$4.65 delivery Thursday, November 21
Ships from: Pen & Parchment Media Sold by: Pen & Parchment Media
Save with Used - Very Good
$20.95$20.95
Ships from: Amazon Sold by: Dylicious Merchandise
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.
Solaris Performance and Tools: DTrace and MDB Techniques for Solaris 10 and OpenSolaris 1st Edition
Purchase options and add-ons
- Analyzing CPU utilization by the kernel and applications, including reading and understanding hardware counters
- Process-level resource usage and profiling
- Disk IO behavior and analysis
- Memory usage at the system and application level
- Network performance
- Monitoring and profiling the kernel, and gathering kernel statistics
- Using DTrace providers and aggregations
- MDB commands and a complete MDB tutorial
- ISBN-100131568191
- ISBN-13978-0131568198
- Edition1st
- PublisherSun Microsystems Press
- Publication dateSeptember 1, 2006
- LanguageEnglish
- Dimensions7.28 x 0.97 x 9.26 inches
- Print length444 pages
Customers who bought this item also bought
Editorial Reviews
Review
From the Back Cover
"The "Solaris(TM)Internals" volumes are simply the best and most comprehensive treatment of the Solaris (and OpenSolaris) Operating Environment. Any person using Solaris--in any capacity--would be remiss not to include these two new volumes in their personal library. With advanced observability tools in Solaris (like DTrace), you will more often find yourself in what was previously unchartable territory. "Solaris(TM) Internals, Second Edition, " provides us a fantastic means to be able to quickly understand these systems and further explore the Solaris architecture--especially when coupled with OpenSolaris source availability."
--Jarod Jenson, chief systems architect, Aeysis
"The "Solaris(TM) Internals" volumes by Jim Mauro and Richard McDougall must be on your bookshelf if you are interested in in-depth knowledge of Solaris operating system internals and architecture. As a senior Unix engineer for many years, I found the first edition of "Solaris(TM) Internals" the only fully comprehensive source for kernel developers, systems programmers, and systems administrators. The new second edition, with the companion performance and debugging book, is an indispensable reference set, containing many useful and practical explanations of Solaris and its underlying subsystems, including tools and methods for observing and analyzing any system running Solaris 10 or OpenSolaris."
--Marc Strahl, senior UNIX engineer
"Solaris(TM) Performance and Tools" provides comprehensive coverage of the powerful utilities bundled with Solaris 10 and OpenSolaris, including the Solaris Dynamic Tracing facility, DTrace, and the Modular Debugger, MDB. It provides a systematic approach to understanding performance and behavior, including: Analyzing CPU utilization by the kernel and applications, including reading and understanding hardware countersProcess-level resource usage and profilingDisk IO behavior and analysisMemory usage at the system and application levelNetwork performanceMonitoring and profiling the kernel, and gathering kernel statisticsUsing DTrace providers and aggregationsMDB commands and a complete MDB tutorial
The "Solaris(TM) Internals" volumes make a superb reference for anyone using Solaris 10 and OpenSolaris.
About the Author
Richard McDougall is a Distinguished Engineer at Sun Microsystems, specializing in operating systems technology and systems performance.
Jim Mauro is a Senior Staff Engineer in the Performance, Architecture, and Applications Engineering group at Sun Microsystems, where his most recent efforts have focused on Solaris performance on Opteron platforms.
Brendan Gregg is a Solaris consultant and instructor teaching classes for Sun Microsystems across Australia and Asia. He is also an OpenSolaris contributor and community leader, and has written numerous software packages, including the DTraceToolkit.
Excerpt. © Reprinted by permission. All rights reserved.
Welcome to the second edition of Solaris™ Internals and its companion volume, Solaris™ Performance and Tools. It has been almost five years since the release of the first edition, during which time we have had the opportunity to communicate with a great many Solaris users, software developers, system administrators, database administrators, performance analysts, and even the occasional kernel hacker. We are grateful for all the feedback, and we have made specific changes to the format and content of this edition based on reader input. Read on to learn what is different. We look forward to continued communication with the Solaris community.
About These Books
These books are about the internals of Sun’s Solaris Operating System—specifically, the SunOS kernel. Other components of Solaris, such as windowing systems for desktops, are not covered. The first edition of Solaris™ Internals covered Solaris releases 2.5.1, 2.6, and Solaris 7. These volumes focus on Solaris 10, with updated information for Solaris 8 and 9.
In the first edition, we wanted not only to describe the internal components that make the Solaris kernel tick, but also to provide guidance on putting the information to practical use. These same goals apply to this work, with further emphasis on the use of bundled (and in some cases unbundled) tools and utilities that can be used to examine and probe a running system. Our ability to illustrate more of the kernel’s inner workings with observability tools is facilitated in no small part by the inclusion of some revolutionary and innovative technology in Solaris 10—DTrace, a dynamic kernel tracing framework. DTrace is one of many new technologies in Solaris 10, and is used extensively throughout this text.
In working on the second edition, we enlisted the help of several friends and colleagues, many of whom are part of Solaris kernel engineering. Their expertise and guidance contributed significantly to the quality and content of these books. We also found ourselves expanding topics along the way, demonstrating the use of dtrace(1), mdb(1), kstat(1), and other bundled tools. So much so that we decided early on that some specific coverage of these tools was necessary, and chapters were written to provide readers with the required background information on the tools and utilities. From this, an entire chapter on using the tools for performance and behavior analysis evolved.
As we neared completion of the work, and began building the entire manuscript, we ran into a bit of a problem—the size. The book had grown to over 1,500 pages. This, we discovered, presented some problems in the publishing and production of the book. After some discussion with the publisher, it was decided we should break the work up into two volumes.
Solaris™ Internals. This represents an update to the first edition, including a significant amount of new material. All major kernel subsystems are included: the virtual memory (VM) system, processes and threads, the kernel dispatcher and scheduling classes, file systems and the virtual file system (VFS) framework, and core kernel facilities. New Solaris facilities for resource management are covered as well, along with a new chapter on networking. New features in Solaris 8 and Solaris 9 are called out as appropriate throughout the text. Examples of Solaris utilities and tools for performance and analysis work, described in the companion volume, are used throughout the text.
Solaris™ Performance and Tools. This book contains chapters on the tools and utilities bundled with Solaris 10: dtrace(1), mdb(1), kstat(1), etc. There are also extensive chapters on using the tools to analyze the performance andbehavior of a Solaris system.
The two texts are designed as companion volumes, and can be used in conjunction with access to the Solaris source code on
http://www.opensolaris.orgReaders interested in specific releases before Solaris 8 should continue to use the first edition as a reference.
Intended Audience
We believe that these books will serve as a useful reference for a variety of technical staff members working with the Solaris Operating System.Application developers can find information in these books about how Solaris OS implements functions behind the application programming interfaces. This information helps developers understand performance, scalability, and implementation specifics of each interface when they develop Solaris applications. The system overview section and sections on scheduling, interprocess communication, and file system behavior should be the most useful sections. Device driver and kernel module developers of drivers, STREAMS modules, loadable system calls, etc., can find herein the general architecture and implementation theory of the Solaris OS. The Solaris kernel framework and facilities portions of the books (especially the locking and synchronization primitives chapters) are particularly relevant. Systems administrators, systems analysts, database administrators, and Enterprise Resource Planning (ERP) managers responsible for performance tuning and capacity planning can learn about the behavioral characteristics of the major Solaris subsystems. The file system caching and memory management chapters provide a great deal of information about how Solaris behaves in real-world environments. The algorithms behind Solaris tunable parameters are covered in depth throughout the books. Technical support staff responsible for the diagnosis, debugging, and support of Solaris will find a wealth of information about implementation details of Solaris. Major data structures and data flow diagrams are provided in each chapter to aid debugging and navigation of Solaris systems. System users who just want to know more about how the Solaris kernel works will find high-level overviews at the start of each chapter.Beyond the technical user community, those in academia studying operating systems will find that this text will work well as a reference. Solaris OS is a robust, feature-rich, volume production operating system, well suited to a variety of workloads, ranging from uniprocessor desktops to very large multiprocessor systems with large memory and input/output (I/O) configurations. The robustness and scalability of Solaris OS for commercial data processing, Web services, network applications, and scientific workloads is without peer in the industry. Much can be learned from studying such an operating system.
OpenSolaris
In June 2005, Sun Microsystems introduced OpenSolaris, a fully functional Solaris operating system release built from open source. As part of the OpenSolaris initiative, the Solaris kernel source was made generally available through an open license offering. This has some obvious benefits to this text. We can now include Solaris source directly in the text where appropriate, as well as refer to full source listings made available through the OpenSolaris initiative.
With OpenSolaris, a worldwide community of developers now has access to Solaris source code, and developers can contribute to whatever component of the operating system they find interesting. Source code accessibility allows us to structure the books such that we can cross-reference specific source files, right down to line numbers in the source tree.
OpenSolaris represents a significant milestone for technologists worldwide; a world-class, mature, robust, and feature-rich operating system is now easily accessible to anyone wishing to use Solaris, explore it, and contribute to its development.
Visit the Open Solaris Website to learn more about OpenSolaris:
http://www.opensolaris.orgThe OpenSolaris source code is available at:
http://cvs.opensolaris.org/sourceSource code references used throughout this text are relative to that starting location.
How the Books Are Organized
We organized the Solaris™ Internals volumes into several logical parts, each part grouping several chapters containing related information. Our goal was to provide a building block approach to the material by which later sections could build on information provided in earlier chapters. However, for readers familiar with particular aspects of operating systems design and implementation, the individual parts and chapters can stand on their own in terms of the subject matter they cover.
Volume 1: Solaris™ Internals
Part One: Introduction to Solaris Internals
Chapter 1 — Introduction
Part Two: The Process Model
Chapter 2 — The Solaris Process Model
Chapter 3 — Scheduling Classes and the Dispatcher
Chapter 4 — Interprocess Communication
Chapter 5 — Process Rights Management
Part Three: Resource Management
Chapter 6 — Zones
Chapter 7 — Projects, Tasks, and Resource Controls
Part Four: Memory
Chapter 8 — Introduction to Solaris Memory
Chapter 9 — Virtual Memory
Chapter 10 — Physical Memory
Chapter 11 — Kernel Memory
Chapter 12 — Hardware Address Translation
Chapter 13 — Working with Multiple Page Sizes in Solaris
Part Five: File Systems
Chapter 14 — File System Framework
Chapter 15 — The UFS File System
Part Six: Platform Specifics
Chapter 16 — Support for NUMA and CMT Hardware
Chapter 17 — Locking and Synchronization
Part Seven: Networking
Chapter 18 — The Solaris Network Stack
Part Eight: Kernel Services
Chapter 19 — Clocks and Timers
Chapter 20 — Task Queues
Chapter 21 — kmdb Implementation
Volume 2: Solaris™ Performance and Tools
Part One: Observability Methods
Chapter 1 — Introduction to Observability Tools
Chapter 2 — CPUs
Chapter 3 — Processes
Chapter 4 — Disk Behavior and Analysis
Chapter 5 — File Systems
Chapter 6 — Memory
Chapter 7 — Networks
Chapter 8 — Performance Counters
Chapter 9 — Kernel Monitoring
Part Two: Observability Infrastructure
Chapter 10 — Dynamic Tracing
Chapter 11 — Kernel Statistics
Part Three: Debugging
Chapter 12 — The Modular Debugger
Chapter 13 — An MDB Tutorial
Chapter 14 — Debugging Kernels
Updates and Related Material
To complement these books, we created a Web site at which we will place updated material, tools we refer to, and links to related material on the topics covered. We will regularly update the Web site ( http://www.solarisinternals.com ) with information about this text and future work on Solaris™ Internals. The Web site will be enhanced to provide a forum for Frequently Asked Questions (FAQs) related to the text, as well as general questions about Solaris internals, performance, and behavior. If bugs are discovered in the text, we will post errata on the Web site as well.
A Note from the Authors
Once again, a large investment in time and energy proved enormously rewarding for the authors. The support from Sun’s Solaris kernel development group, the Solaris user community, and readers of the first edition has been extremely gratifying. We believe we have been able to achieve more with the second edition in terms of providing Solaris users with a valuable reference text. We certainly extended our knowledge in writing it, and we look forward to hearing from readers.
Product details
- Publisher : Sun Microsystems Press; 1st edition (September 1, 2006)
- Language : English
- Hardcover : 444 pages
- ISBN-10 : 0131568191
- ISBN-13 : 978-0131568198
- Item Weight : 1.95 pounds
- Dimensions : 7.28 x 0.97 x 9.26 inches
- Best Sellers Rank: #2,912,294 in Books (See Top 100 in Books)
- #25 in Solaris Operating System
- #745 in Computer Operating Systems (Books)
- #17,884 in Professional
- Customer Reviews:
About the authors

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.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
- 5 star4 star3 star2 star1 star5 star72%18%10%0%0%72%
- 5 star4 star3 star2 star1 star4 star72%18%10%0%0%18%
- 5 star4 star3 star2 star1 star3 star72%18%10%0%0%10%
- 5 star4 star3 star2 star1 star2 star72%18%10%0%0%0%
- 5 star4 star3 star2 star1 star1 star72%18%10%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.
I quickly put much of my new understanding to work on the job to great effect.
As a result, there are differing views in topic areas like performance management, including: proper methodology, or "best practices"; which statistics are useful and how to interpret them; which reports may be significant, trivial, or misleading; and of course, which tools help you get them. As a contributing author to Sun Microsystem's course on Solaris performance, I heard many of those views from many experienced trainers, Sun engineers, and other interested parties. The complexity of the topic leads many people to believe they understand it "the one way it is supposed to be understood." The passion is great, so long as it doesn't lead to a narrow-minded zeal.
Solaris Performance and Tools punts on such religious matters. In my view there are some good and some disappointing outcomes. The book covers two primary areas. One, it is a detailed looks at programs used to measure system and process performance. The coverage ranges from the obvious and everyday to the highly technical and obscure. Second, there are some brief but helpful introductions to mdb and Dtrace, the killer analysis tool introduced with Solaris 10. This book doesn't often propose a method or application of these tools. It does present what the authors feel are 'the' important ways to measure CPU, disk, and I/O efficiency, but relies more on lots of output from lots of tools, commenting on them only occasionally.
There are a lot of listings: command output, script or C code, grepped output. As with the companion book, Solaris Internals, they are not indexed or captioned. In this book, however, these grey boxes aren't annotated either! They are simply left for the reader to study. This idea of printing a book would bring little more than a shrug ten years ago. There wasn't much else you could do with a closed codebase and so few online references. Has nothing happened to improve on that situation?
The code listings appear in Bourne shell, Perl, Dtrace, or C, so the reader must know how to interpret them all to profit from the discussion. But even for a peer technical reader, some kind of analysis, key-line commentary, or occasional emphasis on nonbovious lines...some help would be nice. I know programmers find commenting a time-consuming chore, but a peer reader could do much of the work this book shows on their own, and spare the trees.
The command-line output does illuminate the discussion, as it should. However, it feels like filler after a ehile when you're reading sample output for ping, traceroute, snoop, output for multiple prstat and ps options, not to mention numerous trivial examples of various process tools, such as pkill and pstop. What are we getting from this? If there was something important to say about them, fine, but again, there's no commenting provided.
The notes on observing CPU, disk and I/O measurements are detail-driven and idiomatic. The focus seems to be on subtlety and non-obvious aspects of statistics that either aren't well-explained in other references, or are widely misinterpreted.
I'm happy for the discussion on mdb and kstats. These are hard subjects to absorb. The online documentation for them is lengthy, hard to gloss, and (of course) poorly-commented where sample code or output is shown. This book gets down to the point and makes the task of learning these tools seem far less daunting.
A key stength of this book is the thorough review of tools and what they do. The book would serves well as a reference when a terminal window is not available. The Dtrace Toolkit is reviewed at length, but there is equally useful coverage and more examples online.
Be advised: the front matter and back matter of this book are the same as the Solaris Internals book, not including the table of contents and index. I mention this because it seemed peculiar that the bibliography for a book on performance, mdb, and dtrace referencesd nothing published in the last six years.

