Go to main content

Resource Management and Oracle® Solaris Zones Developer's Guide

Exit Print View

Updated: February 2021
 
 

Using the libpool Configuration Library to Manipulate Pool Configurations

The libpool pool configuration library defines the interface for reading and writing pools configuration files. The library also defines the interface for applying 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 library provides a C language API for accessing the resource pools facility. The pooladm, poolbind, and poolcfg commands make the resource pools facility available through command invocations from a shell.

For more information, see the libpool(3LIB), pooladm(8), poolbind(8), and poolcfg(8) man pages.

Manipulate psets

The following functions are associated with creating or destroying psets and manipulating psets. A man page is available for each function name.

processor_bind

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

pset_assign

Assign a processor to a processor set.

pset_bind

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

pset_create

Create an empty processor set that contains no processors.

pset_destroy

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

pset_getattr

Get processor set attributes.

pset_setattr

Set processor set attributes.