DB2 Version 9.7 for Linux, UNIX, and Windows

agentpri - Priority of agents configuration parameter

This parameter has been deprecated since Version 9.5, but is still being used by pre-Version 9.5 data servers and clients. Any value specified for this configuration parameter will continue to work exactly as it did in previous versions, and this parameter will continue to be fully supported. If this parameter is used for workload management (WLM), then the WLM service class agent priority will be ignored.
Note: The following information applies only to pre-Version 9.5 data servers and clients.
This parameter controls the priority given both to all agents, and to other database manager instance processes and threads, by the operating system scheduler. This priority determines how CPU time is given to the database manager processes, agents, and threads relative to the other processes and threads running on the machine.
Configuration type
Database manager
Applies to
  • Database server with local and remote clients
  • Database server with local clients
  • Partitioned database server with local and remote clients
Parameter type
Configurable
Default [range]
AIX®
-1 (system) [ 41 - 125 ]
Other UNIX
-1 (system) [ 41 - 128 ]
Windows
-1 (system) [ 0 - 6 ]
Solaris
-1 (system) [ 0 - 59 ]
Linux
-1 (system) [ 1 - 99 ]
HP-UX
-1 (system) [ 0 - 31 ]

When the parameter is set to -1 or system, no special action is taken and the database manager is scheduled in the normal way that the operating system schedules all processes and threads. When the parameter is set to a value other than -1 or system, the database manager will create its processes and threads with a static priority set to the value of the parameter. Therefore, this parameter allows you to control the priority with which the database manager processes and threads (in a partitioned database environment, this also includes coordinating and subagents, the parallel system controllers, and the FCM daemons) will execute on your machine.

You can use this parameter to increase database manager throughput. The values for setting this parameter are dependent on the operating system on which the database manager is running. For example, in a Linux or UNIX environment, numerically low values yield high priorities. When the parameter is set to a value between 41 and 125, the database manager creates its agents with a UNIX static priority set to the value of the parameter. This is important in Linux and UNIX environments because numerically low values yield high priorities for the database manager, but other processes (including applications and users) might experience delays because they cannot obtain enough CPU time. You should balance the setting of this parameter with the other activity expected on the machine.

Restrictions:
  • If you set this parameter to a non-default value on Linux and UNIX platforms, you cannot use the governor to alter agent priorities.
  • On the Solaris operating system, you should not change the default value (-1). Changing the default value sets the priority of DB2® processes to real-time, which can monopolize all available resources on the system.

Recommendation: The default value should be used initially. This value provides a good compromise between response time to other users/applications and database manager throughput.

If database performance is a concern, you can use benchmarking techniques to determine the optimum setting for this parameter. You should take care when increasing the priority of the database manager because performance of other user processes can be severely degraded, especially when the CPU utilization is very high. Increasing the priority of the database manager processes and threads can have significant performance benefits.