You can bind a running process to a pool in two ways.
You can use the poolbind(1M) command to bind a specific process to a named resource pool.
You can use the project.pool attribute in the project(4) database to identify the pool binding for a new login session or a task that is launched through newtask(1).
The following procedure manually binds a process (for example, the current shell) to a pool named ohare.
To bind tasks or projects to a pool, use poolbind with the -i option. The following example binds all processes in the airmiles project to the laguardia pool.
To automatically bind new processes in a project to a pool, add the project.pool attribute to each entry in the project database.
For example, 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.
Using the previous configuration, user paul can modify the pool binding for processes he starts. He can use newtask to bind work to the backstage pool as well, by launching in the passes project.