Add Workload Group (ADDWLCGRP)
|Where allowed to run: All environments (*ALL)
The Add Workload Group (ADDWLCGRP) command adds a workload group for the current system or logical partition. The workload group can be used to limit the processing capacity of a job by setting a limit on the number of processors the job can run on concurrently.
Product entries can be added or removed from a workload group by using the Add Workload Product Entry (ADDWLCPRDE) and Remove Workload Product Entry (RMVWLCPRDE) commands. Products can use these product entries to limit the processing capacity for jobs and threads which use the product's programming interfaces.
- You must have job control (*JOBCTL) special authority to run this command.
- This command is shipped with public *EXCLUDE authority.
|WLCGRP||Workload group||Simple name||Required, Positional 1|
|PRCLMT||Processor limit||1-256, 1||Optional|
Workload group (WLCGRP)
Specifies the workload group being added.
This is a required parameter.
- Specify the name for the workload group. Names of workload groups must be unique on a logical partition.
Processor limit (PRCLMT)
Specifies the processor limit to be used for jobs and threads that will be associated with this workload group.
- Jobs and threads will be limited to run on a single processor even if more processors have been activated.
- Specify the number of processors that jobs and threads associated with this workload group will be allowed to run on concurrently. You can specify a number larger the number of processors currently activated for the system or logical partition.
Example 1: Adding a Group Capable of Running on One Processor
ADDWLCGRP WLCGRP(MYGROUP) PRCLMT(1)
This command adds a workload group named MYGROUP with a processor limit of 1. Jobs or threads associated with this workload group will be limited to run on a single processor even if more processors have been activated.
Example 2: Adding a Group Capable of Running on Multiple Processors
ADDWLCGRP WLCGRP(FASTGROUP) PRCLMT(16)
This command adds a workload group named FASTGROUP with a processor limit of 16. Jobs or threads associated with this workload group will be able to run on up to 16 processors concurrently.
- Workload group &1 already exists.
- &1 special authority is required.