HP-UX Processor Sets

HP-UX Processor Sets 22
thread.
MPC_GETNUMSPUS_SYS Return number of enabled processors in the system.
MPC_GETFIRSTSPU_SYS Return ID of the first enabled processor in the system.
MPC_GETNEXTSPU_SYS Return ID of the next enabled processor in the system
after the specified processor.
The pstat_getpset() interface allows applications to query the processor sets specific
information.
int
pstat_getpset(
struct pst_pset *buf,/* OUT: buffer for pset information */
size_t elemsize,/* IN: buf size for each entry */
size_t elemcnt, /*IN: how many psets we query */
int index /* IN: which pset to start with */
);
This interface returns the following information in the buffer for every processor set being
queried:
ÿ Psetid of the processor set
ÿ Number of processors assigned to the processor set
ÿ Number of processes bound to the processor set
ÿ Number of threads bound to the processor set
ÿ Owner and Group of the processor set
ÿ Access permissions bitmask for the processor set
ÿ Load average values for the processor pset
If invoked without any arguments, the psrset command returns the current system processor
set configuration for all processor sets. It returns information about a specific processor set
with the –i option. The mpsched command returns the system configuration without any
processor set information. The top command allows users to display activity in a specific
processor set, or to display processor set assignments for processors and processes.
Maintaining Processor Set Configuration Across Reboots
The processor set configuration on HP-UX systems is not persistent across reboots. When a
system is shut down, the configuration is lost, and by default, the system starts with one
processor set – the Default Pset – when rebooted. There are two possible ways to retain the
same processor set configuration across reboots: