5 The DB2 Wire Protocol Driver : Workload Manager (WLM)

Workload Manager (WLM)
The Workload Manager (WLM) is a priority and resource manager within DB2 V9.5 for Linux/UNIX/Windows. On z/OS, the WLM is part of the operating system. WLM prioritizes and matches DB2 workloads with available resources. DB2 workloads allow you to categorize similar types of work. For example, a database administrator can create a DB2 workload named Sales to service all connections that come from Sales applications.
The WLM automatically adjusts server resources, such as CPU and memory, based on the service class associated with a DB2 workload. Therefore, an application’s performance is tied to the DB2 workload to which it is assigned and, ultimately, to the service class associated with that workload. For example, an application that performs batch work nightly when resource usage is low can use the default workload. In contrast, sales updates that need to be processed quickly twice a day need to use a workload that is governed by a high priority service class.
It is important to understand that, unless specified otherwise, all work will run in the default workload that is governed by the default service class. To ensure the best performance, consult with your database administrator to verify that your application is associated with the appropriate DB2 workload and service class.
In addition to workload management, WLM also provides monitoring functionality that is useful for troubleshooting. For example, the database administrator can set threshold limits to detect long-running queries and gather information about those queries.
The DB2 Wire Protocol driver allows your application to set client information in the DB2 database that can be used by the WLM to classify work. If you know that your database environment uses WLM, coordinate with your database administrator to determine which connection options you need to set. These options are located on the Advanced tab of the driver Setup dialog.
On DB2 for z/OS, the driver fully supports WLM Classification. All supported DDF work classification attributes are listed in the following table.
 
Set via AccountingInfo connection option.
DB2 Connect assigns the application program name by default, but application can set via Client Information APIs.
The default is NULLID, but this is configurable via the PackageCollection connection option.
Collection name of the first SQL package accessed by the DRDA requester in the unit of work.
The default initial characters for the ODBC driver packages are DD, but this is configurable via the PackageNamePrefix connection option.
Name of the first DB2 package accessed by the DRDA requester in the unit of Work.
Name of the procedure called as the first request in the unit of work.
Set via ApplicationName connection option.
Client application name by default, but can be set via connection option.
Subsystem Collection name (SSC)
Sybsystem Parameter(SPM)
V8 - assigned the concatenation of client userid/workstation name.