Solaris Containers: Resource Management and Solaris Zones Developer's Guide


The Solaris Containers: Resource Management and Solaris Zones Developer's Guide describes how to write applications that partition and manage system resources and discusses which APIs to use. This book provides programming examples and a discussion of programming issues to consider when writing an application.

Who Should Use This Book

This book is for application developers and ISVs who write applications that control or monitor the Solaris Operating System resources.

Before You Read This Book

For a detailed overview of resource management, see the System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.

How This Book Is Organized

This guide is organized as follows:

Chapter 1, Resource Management in the Solaris Operating System introduces the Solaris 10 Resource Manager product.

Chapter 2, Projects and Tasks provides information about the projects and tasks facilities.

Chapter 3, Using the C Interface to Extended Accounting describes the C interface to the extended accounting facility.

Chapter 4, Using the Perl Interface to Extended Accounting describes the Perl interface to the extended accounting facility.

Chapter 5, Resource Controls discusses resource controls and their use.

Chapter 6, Dynamic Resource Pools covers dynamic resource pools.

Chapter 7, Design Considerations for Resource Management Applications in Solaris Zones describes the precautions that need to be taken for applications to work in Solaris zones.

Chapter 8, Configuration Examples provides configuration examples for the /etc/project file.

Documentation, Support, and Training

Sun Function 




Download PDF and HTML documents, and order printed documents 

Support and Training

Obtain technical support, download patches, and learn about Sun courses 

Typographic Conventions

The following table describes the typographic changes that are used in this book.

Table P–1 Typographic Conventions

Typeface or Symbol 




The names of commands, files, and directories, and onscreen computer output 

Edit your .login file.

Use ls -a to list all files.

machine_name% you have mail.


What you type, contrasted with onscreen computer output 

machine_name% su



Command-line placeholder: replace with a real name or value 

The command to remove a file is rm filename.


Book titles, new terms, and terms to be emphasized 

Read Chapter 6 in the User's Guide.

Perform a patch analysis.

Do not save the file.

[Note that some emphasized items appear bold online.] 

Shell Prompts in Command Examples

The following table shows the default system prompt and superuser prompt for the C shell, Bourne shell, and Korn shell.

Table P–2 Shell Prompts



C shell prompt 


C shell superuser prompt 


Bourne shell and Korn shell prompt 


Bourne shell and Korn shell superuser prompt