Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ psrset(1M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pbind(1M)

psradm(1M)

psrinfo(1M)

processor_bind(2)

processor_info(2)

pset_bind(2)

pset_create(2)

pset_info(2)

sysconf(3C)

attributes(5)

psrset(1M)

NAME

psrset − creation and management of processor sets

SYNOPSIS

psrset −c [ processor_id ...  ]
psrset −d processor_set_id
psrset −a processor_set_id processor_id ... 
psrset −r processor_id ... 
psrset −p [ processor_id ...  ]
psrset −b processor_set_id pid ... 
psrset −u pid ... 
psrset −q [ pid ...  ]
psrset [ −i ] [ processor_set_id ...  ]

DESCRIPTION

psrset controls the management of processor sets.  Processor sets allow the binding of processes to groups of processors, rather than just a single processor.  There are two types of processor sets, those created by the user using the psrset command or the pset_create(2) system call, and those automatically created by the system.  Processors assigned to user-created processor sets will run only LWPs that have been bound to that processor set, but system processor sets may run other LWPs as well. 

System-created processor sets will not always exist on a given machine.  When they exist, they will generally represent particular characteristics of the underlying machine, such as groups of processors that can communicate more quickly with each other than with other processors in the system.  These processor sets cannot be modified or removed, but processes may be bound to them. 

OPTIONS

−c Creates a new processor set. 

−d Removes the specified processor set, releasing all processors and processes associated with it. 

−a Assigns the specified processors to the specified processor set. 

−r Removes the specified processors from the processor sets to which they are assigned. 

−p Displays the processor set assignments of the specified processors, or of all processors. 

−b Binds all the LWPs of the specified processes to the specified processor set. 

−u Removes the processor set bindings of all LWPs of the specified processes. 

−q Displays the processor set bindings of the specified processes, or of all processes. 

−i Displays the type and processor assignments of the specified processor sets, or of all processor sets. 

USAGE

The −c option creates a processor set and displays the new processor set ID. If a list of processors is given, it also attempts to assign those processors to the processor set.  If this succeeds, the processors will be idle until LWPs are bound to the processor set.  This option is restricted to use by the super-user. 

The −d option removes a previously created processor set.  Processor sets automatically created by the system  cannot be removed.  This option is restricted to use by the super-user. 

The −a option assigns a list of processors to a processor set.  Processor sets automatically created by the system cannot have processors assigned to them. However, processors belonging to system processor sets may be assigned to user-created processor sets.  This option is restricted to use by the super-user. 

The −r option removes a list of processors from their current processor sets.  Processors that are removed will return to either the system processor set to which they previously belonged, or to the general pool of processors if they did not belong to a system processor set.  This option is restricted to use by the super-user. 

Processors with LWPs bound to them using pbind(1M) cannot be assigned to or removed from processor sets. 

The −p option displays the processor set assignments for the specified list of processors.  If no argument is given, the processor set assignments for all processors in the system is given. 

The −b option binds all of the LWPs of the specified processes to the specified processor set.  LWPs bound to a processor set will be restricted to run only on the processors in that set unless they require resources available only on another processor.  Processes may only be bound to non-empty processor sets, that is, processor sets that have had processors assigned to them. 

Bindings are inherited, so new LWPs and processes created by a bound LWP will have the same binding.  Binding an interactive shell to a processor, for example, binds all commands executed by the shell. 

The −u option removes the processor set bindings from all the LWPs of the specified processes, allowing them to be executed on any on-line processor if they are not bound to individual processors through pbind. 

The super-user may bind or unbind any process to any active processor set.  Other users may only bind or unbind processes to system processor sets.  Furthermore, they may only bind or unbind processes for which they have permission to signal, that is, any process that has the same effective user ID as the user. 

The −q option displays the processor set bindings of the specified processes.  If a process is composed of multiple LWPs, which have different bindings, the bindings of only one of the bound LWPs will be shown.  If no argument is given, the processor set bindings of all processes in the system is displayed. 

The −i option displays a list of processors assigned to each named processor set.  If no argument is given, a list of all processor sets and the processors assigned to them is displayed.  This is also the default operation if the psrset command is not given an option. 

Formats

The following format will be used for the first line of output of the −c option when the LC_MESSAGES locale category specifies the "C" locale.  In other locales, the strings created, processor, and set may be replaced with more appropriate strings corresponding to the locale. 

"created processor set %d\n" <processor set ID>

EXIT STATUS

The following exit values are returned:

0 Successful completion. 

non-0 An error occurred. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Availability SUNWcsu

SEE ALSO

pbind(1M), psradm(1M), psrinfo(1M), processor_bind(2), processor_info(2), pset_bind(2), pset_create(2), pset_info(2), sysconf(3C), attributes(5)

DIAGNOSTICS

psrset: cannot query pid 31: No such process
The process specified did not exist or has exited.

psrset: cannot bind pid 31: Not owner
The user does not have permission to bind the process.

psrset: cannot assign processor 4: Not owner
The user does not have permission to assign the processor.

psrset: cannot assign processor 8: Invalid argument
The specified processor is not on-line, or the specified processor does not exist.

psrset: cannot bind pid 67: Device busy
An LWP in the specified process is bound to a processor and cannot be bound to a processor set that does not include that processor. 

psrset: cannot assign processor 7: Device busy
The specified processor could not be added to the processor set. This may be due to bound LWPs on that processor, or because that processor cannot be combined in the same processor set with other processors in that set, or because the processor is the last one in its current processor set. 

SunOS 5.6  —  Last change: 10 Jan 1997

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026