Home > Store

Solaris Internals: Solaris 10 and OpenSolaris Kernel Architecture, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Solaris Internals: Solaris 10 and OpenSolaris Kernel Architecture, 2nd Edition

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2007
  • Dimensions: 7" x 9-1/4"
  • Edition: 2nd
  • Book
  • ISBN-10: 0-13-148209-2
  • ISBN-13: 978-0-13-148209-8

"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 engineer

Solaris™ 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:
  • Virtual and physical memory
  • Processes, threads, and scheduling
  • File system framework and UFS implementation
  • Networking: TCP/IP implementation
  • Resource management facilities and zones

The Solaris™ Internals volumes make a superb reference for anyone using Solaris 10 and OpenSolaris.



Extras

Author's Site

Visit the Author's Web Site

Sample Content

Online Sample Chapter

The Solaris UFS File System

Downloadable Sample Chapter

Download the Sample Chapter from this book.

Table of Contents

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 Pages: The Basic Unit of Solaris Memory 506

10.3 The Page Scanner 516

10.4 MDB Reference 525

Chapter 11: Kernel Memory 527

11.1 Kernel Virtual Memory Layout 527

11.2 Kernel Memory Allocation 534

11.3 The Vmem Allocator 552

11.4 Kernel Memory Allocator Tracing 562

11.5 MDB Reference 578

Chapter 12: Hardware Address Translation 581

12.1 HAT Overview 581

12.2 The UltraSPARC HAT Layer 583

12.3 The x64 HAT Layer 625

12.4 MDB Reference 636

Chapter 13: Working with Multiple Page Sizes in Solaris 639

13.1 Determining When to Use Large Pages 639

13.2 Measuring Application Performance 640

13.3 Configuring for Multiple Page Sizes 645

Part Five: File Systems 655

Chapter 14: File System Framework 657

14.1 File System Framework 657

14.2 Process-Level File Abstractions 658

14.3 Solaris File System Framework 668

14.4 File System Modules 672

14.5 The Virtual File System (vfs) Interface 675

14.6 The Vnode 685

14.7 File System I/O 707

14.8 File Systems and Memory Allocation 718

14.9 Path-Name Management 722

14.10 The Directory Name Lookup Cache 726

14.11 The File System Flush Daemon 734

14.12 File System Conversion to Solaris 10 734

14.13 MDB Reference 736

Chapter 15: The UFS File System 737

15.1 UFS Development History 737

15.2 UFS On-Disk Format 739

15.3 The UFS Inode 751

15.4 Access Control in UFS 764

15.5 Extended Attributes in UFS 767

15.6 Locking in UFS 768

15.7 Logging 775

15.8 MDB Reference 790

Part Six: Platform Specifics 793

Chapter 16: Support for NUMA and CMT Hardware 795

16.1 Memory Hierarchy Designs 796

16.2 Memory Placement Optimization Framework 799

16.3 Initial Thread Placement 802

16.4 Scheduling 802

16.5 Memory Allocation 803

16.6 Lgroup Implementation 804

16.7 MPO APIs 807

16.8 Locality Group Hierarchy 811

16.9 MPO Statistics 813

16.10 MDB Reference 814

Chapter 17: Locking and Synchronization 815

17.1 Synchronization 815

17.2 Parallel Systems Architectures 816

17.3 Hardware Considerations for Locks and Synchronization 819

17.4 Introduction to Synchronization Objects 824

17.5 Mutex Locks 827

17.6 Reader/Writer Locks 835

17.7 Turnstiles and Priority Inheritance 840

17.8 Kernel Semaphores 844

17.9 DTrace Lockstat Provider 846

Part Seven: Networking 853

Chapter 18: The Solaris Network Stack 855

18.1 STREAMS and the Network Stack 855

18.2 Solaris 10 Stack: Design Goals 862

18.3 Solaris 10 Network Stack Framework 863

18.4 TCP as an Implementation of the New Framework 870

18.5 UDP 875

18.6 Synchronous STREAMS 878

18.7 IP 880

18.8 Solaris Device Driver Framework 882

18.9 Interrupt Model and NIC Speeds 891

18.10 Summary 895

18.11 MDB Reference 895

Part Eight: Kernel Services 899

Chapter 19: Clocks and Timers 901

19.1 The System Clock Thread 901

19.2 Callouts and Callout Tables 904

19.3 System Time Facilities 910

19.4 The Cyclic Subsystem 912

Chapter 20: Task Queues 927

20.1 Overview of Task Queues 927

20.2 Dynamic Task Queues 928

20.3 Task Queues Kernel Programming Interfaces 932

20.4 Device Driver Interface for Task Queues 934

20.5 Task Queue Observability 935

20.6 Task Queue Implementation Notes 937

Chapter 21: kmdb Implementation 943

21.1 Introduction 943

Appendices 963

Appendix A: Kernel Virtual Address Maps 965

Appendix B: Adding a System Call to Solaris 971

Appendix C: A Sample Procfs Utility 975

Bibliography 979

Index 983

Foreword

Download the Foreword from this book.

Index

Download the Index file from this book.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020