JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris 11.1 Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Part I Oracle Solaris Resource Management

1.  Introduction to Resource Management

2.  Projects and Tasks (Overview)

3.  Administering Projects and Tasks

4.  Extended Accounting (Overview)

5.  Administering Extended Accounting (Tasks)

6.  Resource Controls (Overview)

7.  Administering Resource Controls (Tasks)

8.  Fair Share Scheduler (Overview)

9.  Administering the Fair Share Scheduler (Tasks)

10.  Physical Memory Control Using the Resource Capping Daemon (Overview)

11.  Administering the Resource Capping Daemon (Tasks)

12.  Resource Pools (Overview)

13.  Creating and Administering Resource Pools (Tasks)

Administering Resource Pools (Task Map)

Enabling and Disabling the Pools Facility

How to Enable the Resource Pools Service Using svcadm

How to Disable the Resource Pools Service Using svcadm

How to Enable the Dynamic Resource Pools Service Using svcadm

How to Disable the Dynamic Resource Pools Service Using svcadm

How to Enable Resource Pools Using pooladm

How to Disable Resource Pools Using pooladm

Configuring Pools

How to Create a Static Configuration

How to Modify a Configuration

How to Associate a Pool With a Scheduling Class

How to Set Configuration Constraints

How to Define Configuration Objectives

How to Set the poold Logging Level

How to Use Command Files With poolcfg

Transferring Resources

How to Move CPUs Between Processor Sets

Activating and Removing Pool Configurations

How to Activate a Pools Configuration

How to Validate a Configuration Before Committing the Configuration

How to Remove a Pools Configuration

Setting Pool Attributes and Binding to a Pool

How to Bind Processes to a Pool

How to Bind Tasks or Projects to a Pool

How to Set the project.pool Attribute for a Project

How to Use project Attributes to Bind a Process to a Different Pool

Using poolstat to Report Statistics for Pool-Related Resources

Displaying Default poolstat Output

Producing Multiple Reports at Specific Intervals

Reporting Resource Set Statistics

14.  Resource Management Configuration Example

Part II Oracle Solaris Zones

15.  Introduction to Oracle Solaris Zones

16.  Non-Global Zone Configuration (Overview)

17.  Planning and Configuring Non-Global Zones (Tasks)

18.  About Installing, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Overview)

19.  Installing, Booting, Shutting Down, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)

20.  Non-Global Zone Login (Overview)

21.  Logging In to Non-Global Zones (Tasks)

22.  About Zone Migrations and the zonep2vchk Tool

23.  Migrating Oracle Solaris Systems and Migrating Non-Global Zones (Tasks)

24.  About Automatic Installation and Packages on an Oracle Solaris 11.1 System With Zones Installed

25.  Oracle Solaris Zones Administration (Overview)

26.  Administering Oracle Solaris Zones (Tasks)

27.  Configuring and Administering Immutable Zones

28.  Troubleshooting Miscellaneous Oracle Solaris Zones Problems

Part III Oracle Solaris 10 Zones

29.  Introduction to Oracle Solaris 10 Zones

30.  Assessing an Oracle Solaris 10 System and Creating an Archive

31.  (Optional) Migrating an Oracle Solaris 10 native Non-Global Zone Into an Oracle Solaris 10 Zone

32.  Configuring the solaris10 Branded Zone

33.  Installing the solaris10 Branded Zone

34.  Booting a Zone, Logging in, and Zone Migration

Glossary

Index

Setting Pool Attributes and Binding to a Pool

You can set a project.pool attribute to associate a resource pool with a project.

You can bind a running process to a pool in two ways:

How to Bind Processes to a Pool

The following procedure uses poolbind with the -p option to manually bind a process (in this case, the current shell) to a pool named ohare.

  1. Become root or assume an equivalent role.
  2. Manually bind a process to a pool:
    # poolbind -p ohare $$
  3. Verify the pool binding for the process by using poolbind with the -q option.
    $ poolbind -q $$
    155509 ohare

    The system displays the process ID and the pool binding.

How to Bind Tasks or Projects to a Pool

To bind tasks or projects to a pool, use the poolbind command with the -i option. The following example binds all processes in the airmiles project to the laguardia pool.

  1. Become root or assume an equivalent role.
  2. Bind all processes in the airmiles project to the laguardia pool.
    # poolbind -i project -p laguardia airmiles

How to Set the project.pool Attribute for a Project

You can set the project.pool attribute to bind a project's processes to a resource pool.

  1. Become root or assume an equivalent role.
  2. Add a project.pool attribute to each entry in the project database.
    # projmod -a -K project.pool=poolname project

How to Use project Attributes to Bind a Process to a Different Pool

Assume you have a configuration with two pools that are named studio and backstage. The /etc/project file has the following contents:

user.paul:1024::::project.pool=studio
user.george:1024::::project.pool=studio
user.ringo:1024::::project.pool=backstage
passes:1027::paul::project.pool=backstage

With this configuration, processes that are started by user paul are bound by default to the studio pool.

User paul can modify the pool binding for processes he starts. paul can use newtask to bind work to the backstage pool as well, by launching in the passes project.

  1. Launch a process in the passes project.
    $ newtask -l -p passes
  2. Use the poolbind command with the -q option to verify the pool binding for the process. Also use a double dollar sign ($$) to pass the process number of the parent shell to the command.
    $ poolbind -q $$
    6384  pool backstage

    The system displays the process ID and the pool binding.