HP-UX Processor Sets

HP-UX Processor Sets 16
Table 2. Supported Pset APIs
API Description
pset_create(2) Create a new processor set.
pset_destroy(2) Destroy a processor set.
pset_assign(2) Reassign a processor from one processor set to
another.
pset_bind(2) Rebind a process or a thread from one processor set
to another.
pset_setattr(2) Change processor set attribute values.
pset_getattr(2) Query processor set attribute values.
pset_ctl(2) Query processor set configuration.
pthread_pset_bind_np(3t) Change the pset binding of a pthread in multi-
threaded applications.
mpctl(2) Apply processor affinity to applications within the
application’s processor set. Query system and
processor set configuration.
pstat_getpset(2) Query processor set information using the HP-UX
pstat interface mechanism.
The psrset(1m) tool provides a command line interface to manage system processor set
configuration and workload assignment on HP-UX systems. The psrset command provides
the following functionality:
ÿ Create a new processor set
ÿ Assign processors to a processor set
ÿ Destroy processor sets
ÿ Migrate a running application to another processor set
ÿ Start an application in a specific processor set
ÿ Query processor set configuration, application’s current processor set
ÿ Query and change processor set attributes
The system monitoring and query commands like top(1), uptime(1), ps(1) and mpsched(1)
are enhanced to provide options to display processor set specific information.
Creating a New Processor Set
The pset_create() system call creates a new, empty processor set with no processors. A
unique identifier (psetid) is assigned to the new processor set and returned to the user.