HP-UX Reference (11i v2 04/09) - 1M System Administration Commands N-Z (vol 4)
p
psrset(1M) psrset(1M)
-R [processor_list
]
Creates a new RTE 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.
EXTERNAL INFLUENCES
Environment Variables
LANG provides a default value for the internationalization variables that are unset or null. If
LANG is
unset or null, the default value of
C
is used (see lang(5)). If any of the internationalization variables con-
tains an invalid setting,
psrset will behave as if all internationalization variables are set to
C. See
environ (5).
LC_ALL determines the locale that overrides any values for locale categories specified by the settings of
LANG or any environment variables beginning with
LC_.
LC_MESSAGES determines the locale that affects the format and contents of diagnostic messages written
to standard error and the informative messages written to standard output.
International Code Set Support
Single-byte and multi-byte character code sets are supported.
EXAMPLES
psrset Example
Read and display the system processor set configurations for all processor sets. If no options are specified
for the
psrset command, then the -i option is assumed.
psrset
psrset -i
psrset -a Example
Reassign processors 4 and 1 from their current processor sets to processor set 5:
psrset -a541
psrset -b Example
Change the binding of a running process (pid=1000) to processor set 6:
psrset -b 6 1000
psrset -c Example
Create a new processor set and assign processors 1, 2 and 4 to the new set:
psrset -c124
psrset -e Example
Execute the command cat foo in processor set 4:
psrset -e 4 cat foo
psrset -t Examples
Change behavior for processor set destroy operation to fail the request if there are active processes bound
to the processor set:
psrset -t NONEMPTY=FAILBUSY
Change the ownership of processor set 3 to user id 100:
psrset -t 3 OWNID=100
For processor set 2, change access permissions to 666:
psrset -f -t 2 PERM=666
RETURN VALUE
psrset returns zero on successful completion. Otherwise, a non-zero value is returned and the message
is displayed to indicate the error.
AUTHOR
psrset was developed by HP.
HP-UX 11i Version 2: September 2004 − 4 − Hewlett-Packard Company Section 1M−−635