psrset.1m (2010 09)
p
psrset(1M) psrset(1M)
-a pset_id processor_list
Assigns processor_list to pset_id . processor_list is the list of processors, and pset_id is
the processor set identification number. The processors are taken out of their current
processor set and are reassigned to the specified processor set. Processor 0 may not be
reassigned.
If the processor being reassigned is the last processor in its current processor set, the
behavior is defined by the
LASTSPU
attribute. See the -t option to define LASTSPU.
The possible attribute values for
LASTSPU are as follows:
DFLTPSET Default behavior. Reassign the processor to the specified processor set, and
return the active processes/threads in the processor set to the default set.
FAIL Fail the request.
-b pset_id pid_list
Binds pid_list to pset_id . pid_list is the specified list of processes (including all their
threads), and pset_id is the specified processor set. Bindings are inherited, so newly
created threads and processes will inherit their processor set binding from their parents.
If the target processor (pset_id ) has no processors assigned, the behavior is defined by the
EMPTY attribute. See the -t option to define
EMPTY. The possible attribute values for
EMPTY are as follows:
FAIL Default behavior. Fail the request.
-c [processor_list
]
Creates a new processor set and displays the processor set identification number
(pset_id ) for the new processor set. If a list of processors (processor_list) are specified on
the command line, they are assigned to the newly created processor set.
-d pset_list
-d all Destroys the specified list of processor sets (pset_list ). When the all
option is specified,
all the processor sets in the system are destroyed. When the processor set has processors
assigned, or there are active processes/threads bound to the processor set, the behavior is
defined by the value of the
NONEMPTY attribute. See the -t option to define
NONEMPTY. The possible attribute values for NONEMPTY are as follows:
DFLTPSET Default behavior. Return all processors and threads/processes in the pro-
cessor set to the default set.
FAIL Fail the request if processor set has any processor assigned, or has active
processes or threads.
FAILBUSY Fail the request if there are active processes or threads bound to the pro-
cessor set.
-e pset_id command [ argument_list ]
Executes the specified command in the specified processor set (pset_id ). The effect is the
same as binding your shell to the target processor set, executing the command, and
changing back to your original processor set. The command may have arguments listed
in argument_list.
-f Forces the operation if the HP Process Resource Manager (HP PRM) is installed and
configured. The processor sets can also be configured by PRM. HP Process Resource
Manager is documented in the HP Process Resource Manager User’s Guide.
This option is applicable to all the configuration options to override the PRM. If the force
flag is not used with configuration options in the presence of PRM, then
psrset exits
with an error message.
IMPORTANT: If used, the
-f option must be specified before any other arguments are
specified to the psrset command.
-g pset_id pgid
Binds all the processes (including all their threads) belonging to the process group (pgid)
to the specified processor set (pset_id ). This option is like explicitly listing all these
processes with the -b option.
-i [pset_list] Displays the processor assignments and attribute values for all processor sets specified in
the list (pset_list ) or for all sets by default. It will also list the Locality Domains that
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010