HP-UX Processor Sets

HP-UX Processor Sets 20
pset_attrtype_t type, /* which attribute */
pset_attrval_t val/* new value for attribute */
);
(Please see the section,
Attributes for Better Manageability
, for the list of supported attributes
and possible attribute values.)
Users can query and change attribute values using psrset. In the following example, the user
first queries the current values of attributes for processor set 1, and then changes the
processor set ownership, access permissions, and the value of the
PSET_ATTR_NONEMPTY attribute.
#psrset–i1
PSET ID 1
SPU_LIST 2
OWNID 0
GRPID 3
PERM 755
NONEMPTY DFLTPSET
EMPTY FAIL
LASTSPU DFLTPSET
# psrset –t 1 NONEMPTY=FAILBUSY
# psrset –t 1 OWNID=100
# psrset –t 1 GRPID=21
# psrset –t 1 PERM=700
#psrset–i1
PSET ID 1
SPU_LIST 2
OWNID 100
GRPID 21
PERM 700
NONEMPTY FAILBUSY
EMPTY FAIL
LASTSPU DFLTPSET
Querying System and Processor Set Configuration
The pset_ctl() system call allows users to query system processor set configuration. Any user
may query the system processor set configuration.
int
pset_ctl (
pset_request_t request, /* query request */
psetid_t pset, /* target pset */
id_t id /* request dependent object */
);
Table 3. Requests Supported by the pset_ctl() Interface.
Request Description
PSET_GETNUMPSETS
Return the current number of
p
rocessor sets in the