Skip Navigation Links | |
Exit Print View | |
System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones Oracle Solaris 10 1/13 Information Library |
1. Introduction to Solaris 10 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)
13. Creating and Administering Resource Pools (Tasks)
Administering Dynamic Resource Pools (Task Map)
Enabling and Disabling the Pools Facility
Solaris 10 11/06 and Later: How to Enable the Resource Pools Service Using svcadm
Solaris 10 11/06 and Later: How to Disable the Resource Pools Service Using svcadm
Solaris 10 11/06 and Later: How to Enable the Dynamic Resource Pools Service Using svcadm
Solaris 10 11/06 and Later: How to Disable the Dynamic Resource Pools Service Using svcadm
How to Enable Resource Pools Using pooladm
How to Disable Resource Pools Using pooladm
How to Create a Static 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
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
15. Resource Control Functionality in the Solaris Management Console
16. Introduction to Solaris Zones
17. Non-Global Zone Configuration (Overview)
18. Planning and Configuring Non-Global Zones (Tasks)
19. About Installing, Halting, Cloning, and Uninstalling Non-Global Zones (Overview)
20. Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)
21. Non-Global Zone Login (Overview)
22. Logging In to Non-Global Zones (Tasks)
23. Moving and Migrating Non-Global Zones (Tasks)
24. Oracle Solaris 10 9/10: Migrating a Physical Oracle Solaris System Into a Zone (Tasks)
25. About Packages and Patches on an Oracle Solaris System With Zones Installed (Overview)
27. Oracle Solaris Zones Administration (Overview)
28. Oracle Solaris Zones Administration (Tasks)
29. Upgrading an Oracle Solaris 10 System That Has Installed Non-Global Zones
30. Troubleshooting Miscellaneous Oracle Solaris Zones Problems
31. About Branded Zones and the Linux Branded Zone
32. Planning the lx Branded Zone Configuration (Overview)
33. Configuring the lx Branded Zone (Tasks)
34. About Installing, Booting, Halting, Cloning, and Uninstalling lx Branded Zones (Overview)
35. Installing, Booting, Halting, Uninstalling and Cloning lx Branded Zones (Tasks)
36. Logging In to lx Branded Zones (Tasks)
37. Moving and Migrating lx Branded Zones (Tasks)
38. Administering and Running Applications in lx Branded Zones (Tasks)
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:
You can use the poolbind command described in poolbind(1M) command to bind a specific process to a named resource pool.
You can use the project.pool attribute in the project database to identify the pool binding for a new login session or a task that is launched through the newtask command. See the newtask(1), projmod(1M), and project(4) man pages.
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.
The System Administrator role includes the Process Management profile. For more information about roles, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
# poolbind -p ohare $$
$ poolbind -q $$ 155509 ohare
The system displays the process ID and the pool binding.
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.
The System Administrator role includes the Process Management profile. For more information about roles, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
# poolbind -i project -p laguardia airmiles
You can set the project.pool attribute to bind a project's processes to a resource pool.
The System Administrator role includes the Process Management profile. For more information about roles, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
# projmod -a -K project.pool=poolname project
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.
$ newtask -l -p passes
$ poolbind -q $$ 6384 pool backstage
The system displays the process ID and the pool binding.