JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris Containers: Resource Management and Solaris Zones Developer's Guide
search filter icon
search icon

Document Information

Preface

1.  Resource Management in the Solaris Operating System

2.  Projects and Tasks

3.  Using the C Interface to Extended Accounting

4.  Using the Perl Interface to Extended Accounting

5.  Resource Controls

6.  Dynamic Resource Pools

Overview of Resource Pools

Scheduling Class

Dynamic Resource Pool Constraints and Objectives

System Properties

Pools Properties

Processor Set Properties

Using libpool to Manipulate Pool Configurations

Manipulate psets

Resource Pools API Functions

Functions for Operating on Resource Pools and Associated Elements

Functions for Querying Resource Pools and Associated Elements

Resource Pool Code Examples

Ascertain the Number of CPUs in the Resource Pool

List All Resource Pools

Report Pool Statistics for a Given Pool

Set pool.comment Property and Add New Property

Programming Issues Associated With Resource Pools

7.  Design Considerations for Resource Management Applications in Solaris Zones

8.  Configuration Examples

Index

Using libpool to Manipulate Pool Configurations

The libpool(3LIB) pool configuration library defines the interface for reading and writing pools configuration files. The library also defines the interface for committing an existing configuration to becoming the running operating system configuration. The <pool.h> header provides type and function declarations for all library services.

The resource pools facility brings together process-bindable resources into a common abstraction that is called a pool. Processor sets and other entities can be configured, grouped, and labelled in a persistent fashion. Workload components can be associated with a subset of a system's total resources. The libpool(3LIB) library provides a C language API for accessing the resource pools facility. The pooladm(1M), poolbind(1M), and poolcfg(1M) make the resource pools facility available through command invocations from a shell.

Manipulate psets

The following list contains the functions associated with creating or destroying psets and manipulating psets.

processor_bind(2)

Bind an LWP (lightweight process) or set of LWPs to a specified processor.

pset_assign(2)

Assign a processor to a processor set.

pset_bind(2)

Bind one or more LWPs (lightweight processes) to a processor set.

pset_create(2)

Create an empty processor set that contains no processors.

pset_destroy(2)

Destroy a processor set and release the associated constituent processors and processes.

pset_setattr(2), pset_getattr(2)

Set or get processor set attributes.