HP-UX Reference (11i v1 05/09) - 1M System Administration Commands N-Z (vol 4)

p
psrset(1M) psrset(1M)
LASTSPU Define behavior on request to remove the last processor from a processor set. See
-a
option.
-u pid_list
Unbinds pid_list, the specified list of processes (including all their threads), from their current proces-
sor set returning them to the default set. The
-u option is identical to -b 0 pid_list .
-F pset_id
Disables external I/O interrupts for all processors assigned to the specified processor set (pset_id).
-U pset_id uid
Binds all the processes (including all their threads) owned by the user id (uid) to the specified proces-
sor set (pset_id). This option is like explicitly listing all these processes with
-b option.
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 contains 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 -a 5 4 1
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 -c 1 2 4
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
Section 1M690 Hewlett-Packard Company 4 HP-UX 11i Version 1: September 2005