[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 6

wlmassign command

Purpose

Manually assigns processes to a Workload Management class or cancels prior manual assignments for processes.

Syntax

wlmassign [ -s | -S ] [ -u | Class_Name ] [ PID_List ] [ -g Pgid_List ]

Description

The wlmassign command:

The wlmassign command allows to specify processes using a list of PIDs, a list of pgids, or both. The format of these lists is:

pid[,pid[,pid[...]]]

or

pgid[,pgid[,pgid[...]]]

The name of a valid superclass or subclass must be specified to manually assign the target processes to a class. If the target class is a superclass, each process is assigned to one of the subclasses of the specified superclass according to the assignment rules for the subclasses of this superclass.

A manual assignment remains in effect (and a process remains in its manually assigned class) until:

The name of a valid superclass or subclass must be specified to manually assign the target processes to a class. The assignment can be done or canceled at the superclass level, the subclass level or both. When a manual assignment is canceled for a process, or the process calls exec(), the process is then subject to automatic classification; if inheritance is enabled for the class that the process is in, it will remain in that class, otherwise the process will be reclassified according to the assignment rules. The interactions between automatic assignment (inheritance and rules), inheritance and manual assignment are detailed in the concept article in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

For a manual assignment:

wlmassign   super1.sub2  -S  pid1

is equivalent to:

wlmassign super1 pid1

To assign a process to a class or cancel a prior manual assignment, the user must have authority both on the process and on the target class. These constraints translate into the following:

This defines 3 levels of privilege among the persons who can manually assign processes to classes, root being the highest. For a user to modify or terminate a manual assignment, they must have at least the same level of privilege as the person who issued the last manual assignment.

Note
The wlmassign command works with currently loaded WLM configuration. If the current configuration is a set, and the assignment is made to a class which does not exist in all configurations in the set, the assignment will be lost when a configuration that does not contain the class becomes active (class is deleted).

Flags

-g Pgid_list Indicates that the following list is a list of pgids.
-S Specifies that the assignment is to be done or canceled at the superclass level only. This flag is used with a subclass name of the form supername.subname.
-s Specifies that the assignment is to be done or canceled at the subclass level only. This flag is used with a subclass name of the form supername.subname.
-u Cancel any manual assignment in effect for the processes in the pid_list or the pgid_list. If none of the -s or -S flags are used, this cancels the manual assignments for both the superclass and the subclass level.

Related Information

The chclass command, lsclass command, mkclass command, and rmclass command.

The concept article about Worldload Management in AIX 5L Version 5.2 System Management Concepts: Operating System and Devices.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]