"The Solaris™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 (likeDTrace), you will more often find yourself in what was previously unchartable territory. Solaris™ 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™ 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™ 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 engineerSolaris™ Internals, Second Edition, describes the algorithms and data structures of all the major subsystems in the Solaris 10 and OpenSolaris kernels. The text has been extensively revised since the first edition, with more than 600 pages of new material. Integrated Solaris tools and utilities, including DTrace, MDB, kstat, and the process tools, are used throughout to illustrate how the reader can observe the Solaris kernel in action. The companion volume, Solaris™ Performance and Tools, extends the examples contained here, and expands the scope to performance and behavior analysis. Coverage includes:
The Solaris™ Internals volumes make a superb reference for anyone using Solaris 10 and OpenSolaris.
"synopsis" may belong to another edition of this title.
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.
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
Readers interested in specific releases before Solaris 8 should continue to use the first edition as a reference.
Intended AudienceWe 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.
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:
The OpenSolaris source code is available at:
Source 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.
"About this title" may belong to another edition of this title.
Book Description Prentice Hall, 2006. Book Condition: New. Brand New, Unread Copy in Perfect Condition. A+ Customer Service! Summary: Foreword xxvii Preface xxix About the Authors xxxvii Acknowledgments xxxix Part One: Introduction to Solaris Internals 1 Chapter 1: Introduction 3 1.1 Key Features of Solaris 10, Solaris 9, and Solaris 8 4 1.2 Key Differentiators 12 1.3 Kernel Overview 15 1.4 Processes, Threads, and Scheduling 18 1.5 Interprocess Communication 23 1.6 Signals 25 1.7 Memory Management 26 1.8 Files and File Systems 29 1.9 Resource Management 30 Part Two: The Process Model 41 Chapter 2: The Solaris Process Model 43 2.1 Components of a Process 44 2.2 Process Model Evolution 48 2.3 Executable Objects 52 2.4 Process Structures 55 2.5 Kernel Process Table 79 2.6 Process Resource Attributes 84 2.7 Process Creation 89 2.8 System Calls 98 2.9 Process Termination 106 2.10 The Process File System 110 2.11 Signals 129 2.12 Sessions and Process Groups 150 2.13 MDB Reference 156 Chapter 3: Scheduling Classes and the Dispatcher 157 3.1 Fundamentals 157 3.2 Processor Abstractions 162 3.3 Dispatcher Queues, Structures, and Variables 171 3.4 Dispatcher Locks 183 3.5 Dispatcher Initialization 190 3.6 Scheduling Classes 192 3.7 Thread Priorities 207 3.8 Dispatcher Functions 234 3.9 Preemption 246 3.10 The Kernel Sleep/Wakeup Facility 253 3.11 Interrupts 262 3.12 Summary 270 3.13 MDB Reference 271 Chapter 4: Interprocess Communication 273 4.1 The System V IPC Framework 274 4.2 System V IPC Resource Controls 282 4.3 Configuring IPC Tuneables on Solaris 10 285 4.4 System V Shared Memory 286 4.5 System V Semaphores 295 4.6 System V Message Queues 299 4.7 POSIX IPC 303 4.8 Solaris Doors 312 4.9 MDB Reference 321 Chapter 5: Process Rights Management 323 5.1 Then and Now 323 5.2 Least Privilege in Solaris 324 5.3 Process Privilege Models 325 5.4 Privilege Awareness: The Details 334 5.5 Least Privilege Interfaces 344 Part Three: Resource Management 365 Chapter 6: Zones 367 6.1 Introduction 367 6.2 Zone Runtime 371 6.3 Booting Zones 375 6.4 Security 379 6.5 Process Model 386 6.6 File Systems 389 6.7 Networking 393 6.8 Devices 398 6.9 Interprocess Communication 405 6.10 Resource Management and Observability 407 6.11 MDB Reference 414 Chapter 7: Projects, Tasks, and Resource Controls 415 7.1 Projects and Tasks Framework 415 7.2 The Project Database 418 7.3 Project and Task APIs 419 7.4 Kernel Infrastructure for Projects and Tasks 420 7.5 Resource Controls 423 7.6 Interfaces for Resource Controls 432 7.7 Kernel Interfaces for Resource Controls 437 Part Four: Memory 445 Chapter 8: Introduction to Solaris Memory 447 8.1 Virtual Memory Primer 447 8.2 Two Levels of Memory 448 8.3 Memory Sharing and Protection 448 8.4 Pages: Basic Units of Physical Memory 448 8.5 Virtual-to-Physical Translation 449 8.6 Physical Memory Management: Paging and Swapping 450 8.7 Virtual Memory as a File System Cache 450 8.8 New Features of the Virtual Memory Implementation 451 Chapter 9: Virtual Memory 455 9.1 Design Overview 455 9.2 Virtual Address Spaces 457 9.3 Tracing the VM System 466 9.4 Virtual Address Space Management 467 9.5 Segment Drivers 476 9.6 Anonymous Memory 485 9.7 The Anonymous Memory Layer 487 9.8 The swapfs Layer 489 9.9 Virtual Memory Watchpoints 492 9.10 Changes to Support Large Pages 494 9.11 MDB Reference 501 Chapter 10: Physical Memory 503 10.1 Physical Memory Allocation 503 10.2 Page. Bookseller Inventory # ABE_book_new_0131482092
Book Description Prentice Hall, 2006. Hardcover. Book Condition: New. book. Bookseller Inventory # 0131482092
Book Description Prentice Hall, 2006. Hardcover. Book Condition: New. Bookseller Inventory # P110131482092