HP-UX Processor Sets

HP-UX Processor Sets 21
system.
PSET_GETFIRSTPSET
Return psetid of the first processor set in the system.
PSET_GETNEXTPSET
Return psetid of the next processor set in the system
after pset.
PSET_GETCURRENTPSET
Return psetid of the current processor set for the
calling thread.
PSET_GETNUMSPUS Return the number of processors assigned to the
processor set pset.
PSET_GETFIRSTSPU Return the ID of the first processor in the processor
set pset.
PSET_GETNEXTSPU Return the ID of next processor in the processor set
pset after the processor specified in id.
PSET_SPUTOPSET Return the ID of the processor set assigned for the
processor specified in id.
The mpctl() system call interface provides query operations for system-level and processor
set level configuration:
int
mpctl(
mpc_request_t request,/* IN: request type */
spu_t spu, /* IN: spu id, request */
pid_t id /* IN: request dependent */
);
The mpctl() interface provides two sets of query requests:
1. An application can use the mpctl() interface to query which processors are
available in its current processor set, so that it can bind and scale for optimal
performance. Only the processors in the application’s processor set are now
available to the application. The mpctl() query requests return the processor
information in the calling thread’s processor set.
2. The tools and monitor programs can use the mpctl() interface to query the
system level configuration information regardless of the system’s processor set
configuration.
Table 4. Query Requests Supported by the mpctl() Interface.
Request Description
MPC_GETNUMSPUS Return number of processors in the calling thread’s
processor set.
MPC_GETFIRSTSPU Return ID of the first processor in the calling thread’s
processor set.
MPC_GETNEXTSPU Return ID of the next processor in the calling thread’s
processor set after the specified processor.
MPC_GETCURRENTSPU
Return ID of the current
p
rocessor for the calling