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

Preface

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 

URL 

Description 

Documentation 

http://www.sun.com/documentation/

Download PDF and HTML documents, and order printed documents 

Support and Training 

http://www.sun.com/supportraining/

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 

Meaning 

Example 

AaBbCc123

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.

AaBbCc123

What you type, contrasted with onscreen computer output 

machine_name% su

Password:

AaBbCc123

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

The command to remove a file is rm filename.

AaBbCc123

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

Shell 

Prompt 

C shell prompt 

machine_name%

C shell superuser prompt 

machine_name#

Bourne shell and Korn shell prompt 

$

Bourne shell and Korn shell superuser prompt 

#